On 9/19/2011 2:43 PM, Poirier, Guillaume wrote:

Hello OSG users,

 

My problem is simple to describe: When in our application we press 's' or 'h' to display either the stats or help, the

lighting changes when it should not.


Check to make sure that all Geometry objects in your scene specify a color array and a normal array. OSG does not provide a default if these are missing, so they inherit the value last set in the OpenGL state machine. Both affect lighting (color affects lighting because OSG's default is to enable GL_COLOR_MATERIAL if no Material StateAttributes are present).
   -Paul



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

Reply via email to