> perhaps it is a simple question for you, but I am new and so...
> I have created a spot light, but I think that the 
> illumination is not correct. I realized that there is a light 
> on the camera I think. Now i want to turn this light of, so 
> that the scene is dark and then I want to switch on my spot 
> light. Is that possible?

Robert is contemplating some changes here, but I think for now you can
simply hijack or override the default light, which is GL_LIGHT0. So, when
you create a Light object in your scene to act as a spotlight, just set its
light number to 0 and the result should be effectively the same as if you
turned off the default light and turned on your spotlight.
   -Paul

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

Reply via email to