> On 6/27/07, Paul Martz <[EMAIL PROTECTED]> wrote: > > I think a lot of the confusion regarding lighting comes > from the fact > > that the OSG default doesn't match the OpenGL default. > > What are the differences you are aware of?
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...) -Paul _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
