In OpenGL, GL_LIGHTING and GL_LIGHT0 are both disabled by default. In OSG,
SceneView and osgViewer enable them by default.
For some reason, this leads to confusion in many developers. Perhaps they
think that lighting is some built-in inaccessible capability of
SceneView/osgViewer, rather than simple modes that can be switched on or off
in a StateSet like any other OpenGL fixed-function feature.
(On the other hand, depth test is off in OpenGL by default and on in OSG by
default, and that doesn't seem to create any confusion...)
The defaults in these cases are to do something sensible by default.
No lighting and no depth test by default would lead to a pretty poor
out of the box experience for most users needs.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/