HI Mangu? Liok?  Could you please sign your posts with your name so we
know how to address you.

On Mon, Apr 27, 2009 at 12:00 PM, Mangu Liok <[email protected]> wrote:
> Hi,
>
> If I want to know the normal of my screen (for lighting issues) does using 
> viewer.getCamera->getViewMatrixAsLookAt(eye,center,up) will give it to me as 
> 'eye'??

The *LookAt method gives the eye, center and up vector as per
gluLookAt.  The eye is obviously the up point, the center is the what
your are looking at, and the up is the up vector, all in world
coordinates.

The look vector is effectively (center-eye).   If you normalize this
you will effectively have the normal of the screen in world coords.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to