[osg-users] wireframe darker wrt the surface color

Gianni Ambrosio g.ambrosio+osg at gmail.com
Wed Mar 29 01:51:03 PDT 2017


Hi Nick

Trajce Nikolov NICK wrote:
> Hi Gianni,
> 
> you can do something like
> getOrCreateStateSet()->setAttributeAndModes(new osg::Depth(osg::Depth::ALWAYS, 0.0, 1.0, false), osg::StateAttribute::ON);
> 

I tried the line you suggested with lights on or off but I have in every case a gray wireframe. While I would like to have a darker/lighter yellow wireframe on a yellow surface, and a darker/lighter green wireframe on a green surface.

Gianni

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








More information about the osg-users mailing list