[osg-users] How to get Camera Heading Pitch Roll

Wojtek Kowalski karcios at poczta.onet.pl
Mon May 23 00:40:25 PDT 2016


Hi,

You probably meant getHPRfromQuat(osg::Quat (cam->getProjectionMatrix().getRotate)), but as I know projectionMatrix has nothing to do with this angles, getVIewMatrix.getRotate() gives angles but I assume in world coordinates.

Any Help?


Cheers,
Wojtek

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67195#67195








More information about the osg-users mailing list