<div dir="ltr">Hi Gianni,<div><br></div><div>you can do something like</div><div>getOrCreateStateSet()->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS, 0.0, 1.0, false), osg::StateAttribute::ON);<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 10:09 AM, Gianni Ambrosio <span dir="ltr"><<a href="mailto:g.ambrosio+osg@gmail.com" target="_blank">g.ambrosio+osg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sebastian<br>
I tried as follows:<br>
<br>
stateset->setMode(GL_DEPTH, osg::StateAttribute::OVERRIDE | osg::StateAttribute::OFF);<br>
<br>
but it behaves the same. Probably I was not clear but I'm not sure this is something related to depth. Isn't it a matter of light or material?<br>
<br>
Please give a look at the attached movie. Depending on light inclination the wireframe is darker or lighter but at a certain point the wireframe has exactly the same color of the undarlying surface and for that reason it is not visible.<br>
I would like to see always the wireframe, it doesn't matter if it is darker or lighter but always and with the same base color of the underlying 3D surface.<br>
<br>
Hope this is clearer now.<br>
<br>
<br>
Cheers,<br>
<span class="">Gianni<br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=70573#70573" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=70573#<wbr>70573</a><br>
<br>
<br>
<br>
<br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>