[osg-users] getViewMatrixAsLookAt

Kim C Bale K.Bale at hull.ac.uk
Wed Jul 2 03:23:20 PDT 2008


Ha sorry my mistake.. I though dist was an output parameter.

 

Must think before I speak/post!

 

Kim.

 

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Kim C
Bale
Sent: 02 July 2008 11:16
To: OpenSceneGraph Users
Subject: [osg-users] getViewMatrixAsLookAt

 

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/5824417d/attachment-0003.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/5824417d/attachment-0003.txt>


More information about the osg-users mailing list