<div dir="ltr">Hi Judy,<div><br></div><div>you do something like this:</div><div><br></div><div>osg::Matrixd mx = view->getCamera()->getInverseViewMatrix();</div><div>osg::Quad q = mx.getRotate();</div><div><br></div><div>and you can use hpr = fromQuat(q) </div><div>fromQuat can be found here</div><div><br></div><div><a href="https://github.com/CCSI-CSSI/MuseOpenIG/blob/master/Core-Base/Mathematics.cpp">https://github.com/CCSI-CSSI/MuseOpenIG/blob/master/Core-Base/Mathematics.cpp</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 1, 2017 at 10:39 AM, Judy <span dir="ltr"><<a href="mailto:515415812@qq.com" target="_blank">515415812@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Robert,</div><div>As a beginner of openscenegraph,I have an urgent question that how to get the camera's heading pitch and yaw ?</div><div>could you give me some suggestion about this question?</div><div>Best regards!</div><div>Judy Fan.</div><div><br></div><br>______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>