Re: [osg-users] Get camera X rotation angle in rads?
I now wish to get the z rotation angle of the camera in degrees. How do I do it? ive got my : Code: osgGA::TrackballManipulator* man; ... and if i go Code: osg::Matrixd mat = man-getMatrix(); float angle = mat.getRotate().z(); but if i spin my camera doing a 360 the result is not in degrees. What am I doing wrong? Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43901#43901 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Get camera X rotation angle in rads?
On 11/15/2011 2:36 PM, Paul Griffiths wrote: I now wish to get the z rotation angle of the camera in degrees. http://forum.openscenegraph.org/viewtopic.php?t=9073 -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Get camera X rotation angle in rads?
Hi, I wish to get the camera X rotation relative to the scene in rads, any ideas? Thank you! Cheers, Paul -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43833#43833 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org