OpenGL features deprecated in 3.0 will still work in 3.0, but:
 * They might not be the optimal mechanism for what you are trying to
accomplish -- better techniques exist. That's why it's deprecated; and...
 * Deprecated features might not work correctly when combined with new
functionality; and finally...
 * Deprecated features might be removed in a future rev of OpenGL. At that
point, the features might -- or might not -- still be available as an
extension.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
+1 303 859 9466
 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of alessandro
terenzi
Sent: Wednesday, January 28, 2009 4:37 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Rendering double-sided surfaces.


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

Reply via email to