|
Hi, All,
I want to get the light position of
osg::Lightsource. However, I donot know in what coordinate system the
position defines. If I use ABSOLUTE_REF, It seems the position is
defined in Eye Coordinate Space. If I use RELATIVE_REF,
it just can be looked as a normal node to
get the world coordinates ( which root node lies). Is it
correct? I need caculate the lighting by myself.
Another question about directional light.
Normally we define glLightPosition( 0, 0, 1, 0) as the head light. Is it
defined in Eye coordinate space? the light direction is from (0, 1, 0) to
(0, 0, 0)? Is the correct? for every directional light, the direction is
from the defined position point to (0, 0, 0).
Thanks for your reply.
|
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
