[osg-users] wireframe darker wrt the surface color

Gianni Ambrosio g.ambrosio+osg at gmail.com
Mon Mar 27 03:39:38 PDT 2017


The point is that if I simply use:


Code:
   osg::Material* material = new osg::Material;
   stateset->setMode(GL_LIGHTING, osg::StateAttribute::OVERRIDE | osg::StateAttribute::OFF);
   stateset->setAttributeAndModes(material, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON);




then, I get the wireframe of the same color of the surface but when I rotate the 3D object the wireframe disappears at a certain position.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70554#70554



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 27496 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170327/5ea90aed/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 34839 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170327/5ea90aed/attachment-0007.png>


More information about the osg-users mailing list