Hi Dominic,

node->getOrCreateStateSet()->setMode( GL_CULL_FACE, osg::StateAttribute::OFF );
thanks but this didn't work. We applied the mode on a loaded osg file. Is this a problem?

If the osg file contains a stateset which sets GL_CULL_FACE to ON below the root node where you set it to OFF, it will be overridden and will be ON for the drawables (state is inherited down into the leaf nodes).

If you want to force GL_CULL_FACE to OFF for all nodes below the root of your .osg file, use osg::StateAttribute::OFF|osg::StateAttribute::OVERRIDE.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to