Hi Gianni, you can do something like getOrCreateStateSet()->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS, 0.0, 1.0, false), osg::StateAttribute::ON);
On Tue, Mar 28, 2017 at 10:09 AM, Gianni Ambrosio <[email protected]> wrote: > Hi Sebastian > I tried as follows: > > stateset->setMode(GL_DEPTH, osg::StateAttribute::OVERRIDE | > osg::StateAttribute::OFF); > > 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? > > 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. > 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. > > Hope this is clearer now. > > > Cheers, > Gianni > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=70573#70573 > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

