My second try: I got/created a StateSet from my model root and then, as suggested by Frank, I did:
osg::ref_ptr< osg::LightModel > pLightModel = new osg::LightModel(); pLightModel->setTwoSided( true ); pState->setAttributeAndModes( pLightModel.get(), osg::StateAttribute::ON ); Doing this solved the problem. I did not added also the material setting as in the Frank's example because my models already have materials and textures applied. Paul said that this way to solve the problem is deprecated in OpenGL 3.0, but will it keep working anyway? Thank you very much for helping. Alessandro
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

