[osg-users] wireframe darker wrt the surface color

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Tue Mar 28 08:22:19 PDT 2017


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 <g.ambrosio+osg at gmail.com>
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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170328/71f0cb65/attachment-0003.htm>


More information about the osg-users mailing list