Hi all,

Does the depth test has an effect over osg::Text ?

I have disabled the depth test on a node with*

   setMode ( GL_DEPTH_TEST, osg::StateAttribute::OFF );*

In my understanding with depth test disabled, the last thing drawed will be
over all other.
But i want to draw 2D labels constitued by an osg::Text over a background
textured quad.

So if i add childs to the node with disabled depth test in following order :
label1Background , label1Text, label2Background, label2Text
i should obtain the label2 over the label1 ... it is ok for backgrounds, but
any osg::Text go always over every background quads.

Is there any reason to this behavior ?

Thanks for your attention,
Regards,
Harold
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to