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

 

Must think before I speak/post!

 

Kim.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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.

 

*****************************************************************************************
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to