[osg-users] getViewMatrixAsLookAt
Kim C Bale
K.Bale at hull.ac.uk
Wed Jul 2 03:16:08 PDT 2008
Hi all,
Just a quick one for you.. when I use the following code:
osg::Vec3 eye, centre, up;
float dist = 0.f;
viewer.getCamera()->getViewMatrixAsLookAt( eye, centre, up, dist );
I seem to get the same value for both eye and centre. Is that supposed
to happen? If so how can I get the view vector from the camera?
Regards,
Kim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080702/5595a01e/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080702/5595a01e/attachment.txt>
More information about the osg-users
mailing list