Hi Robert,

Yes I used OSG itself and can switch off the lighting, but then I can’t use 
OpenGL to switch on the lighting from exterior……
Does the OSG only use itself to control lighting? 
Is there any other way to use OpenGL code to control OSG lighting on and off?


-----Original Message----- 
From: Robert Osfield <robert.osfield_at_gmail.com> 
Date: Tue Jul 10 2007 - 03:27:27 PDT

HI Wangzhu, 

The OSG controls OpenGL state itself including modes like lighting so 
use the OSG itself to switch off lighting. Something like: 

  node->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF); 

Robert.
--------------------------

--wangzhu
2007-07-11
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to