]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cysneros, Nelson SPAWAR
Sent: Thursday, February 28, 2008 10:35 AM
To: OpenSceneGraph Users
Subject: [osg-users] Calculating Up Vector
I'm having a problem trying to calculate the UP vector of a node as it
makes a 360 roll.
I'm setting the camera
I'm having a problem trying to calculate the UP vector of a node as it
makes a 360 roll.
I'm setting the camera viewpoint like this:
//Update View
osg::Vec3 eye( cameraX, cameraY, cameraZ);
osg::Vec3 center(nodeX,nodeY,nodeZ);
osg::Vec3 up(nodeX,nodeY,nodeZ);
viewer->getCamera()->setViewMatrix
2 matches
Mail list logo