Hi,

If you want a positional light at the eye point you must set the
position to Vec4(0,0,0,1).  Note that the position is in homogenous
coords, hence the 1 for the w value at the end.  The LightSource
should also be set to ABSOLTE_RF.

You could however us a direction light coming from behind the eye
point, in which case you'll want to set the position to Vec4(0,0,1,0),
not w is now 0, setting position off an infinity.

Please read up on OpenGL glLgith docs for details about OpenGL lighting set up.

Robert.

On 2/11/07, UnSeal <[EMAIL PROTECTED]> wrote:
I want light relative to eye coordinates. Better to whole camera (eye)
matrix. I try use ABSOLUTE_RF. But the light works magically. When I
move with camera (eye), the light is not moving. It is only rotating.
Must I set the position of light, if I want it to be at position of the
camera (eye)?
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to