I cant seem to turn off cullface on the geometry.

I am doing the following:

_stateSet = new osg::StateSet;
_cullFaceState = new osg::CullFace;
_stateSet->setAttributeAndModes(_cullFaceState.get(), osg::StateAttribute::OFF 
| osg::StateAttribute::OVERRIDE);
_someGeometry->setStateSet(_stateSet);

still only renders when i'm on one side of the geometry

ps. i do this in a class which inherits from osg::Group, also tried to just set:

getOrCreateStateSet()->setMode(GL_CULL_FACE, osg::StateAttribute::OFF | 
osg::StateAttribute::OVERRIDE);

in my class..

using: osg2.3.7, SceneView

Erlend
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to