> > Just wondering if in OSG there is anywhere I can extract either Yaw pitch > and roll / or XYZ eular angles, too and from either a matrix or a > quaternion? >
The void <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01593.html#a306a73ea16dfe10406725cefb3867dfa> get <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00648.html#a341e0295def3df6e07a014a1ff8195b4> (Matrixd <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00489.html> &matrix) const method lets you convert a Quat to a 4x4 Matrix. void <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01593.html#a306a73ea16dfe10406725cefb3867dfa> decompose <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00489.html#a3aad163d793a9d5af248e42fd2e94dea> (osg::Vec3d <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00972.html> &translation, osg::Quat <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00648.html> &rotation, osg::Vec3d <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00972.html> &scale <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00489.html#a9a9ad7cd3f007df5f559e10d471f1981> , osg::Quat <http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00648.html> &so) const decompose the matrix into translation, rotation, scale and scale orientation. Will extract the trans, rot and scale components out of the matrix. Is that what you want? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775) 623-PIXL [7495]
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org