On 16/4/09 8:47 AM, petr srom wrote:
I need to render back face of .ive models, in open GL is the syntax:
glEnable(GL_CULL_FACE);
glCullFace(GL_FRONT);
Is the syntax in OSG these way?
osg::StateSet *myst = new osg::StateSet();
myst->setMode(GL_CULL_FACE, osg::StateAttribute::ON);
myst->setMode(GL_FRONT, osg::StateAttribute::ON);
root->setStateSet(myst);
You're setting them wrong. Use osg::CullFace instead:
osg::CullFace* cf = new osg::CullFace(osg::CullFace::FRONT);
myst->setAttributeAndModes(cf, osg::StateAttribute::ON);
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org