Hi Robert,
osg::View by default has a head light so you could just use this, or if you wish to use a LightSource in the scene graph then use the LightSource::setReferenceFrame(osg::LightSource::ABSOLUTE_RF) to put the light source in eye coordinates.
I cannot use osg::View's headlight because I need better control over when the headlight is used and when it's disabled, plus I'm using shaders and need to set specific state when that light gets enabled/disabled.
The ABSOLUTE_RF tip was exactly what I was missing, works great. Thanks! J-S -- ______________________________________________________ Jean-Sebastien Guay [EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org