<div dir="ltr">Hi,<div><br></div><div>Here you can find some snippets:</div><div><a href="https://github.com/CCSI-CSSI/MuseOpenIG/blob/master/Plugin-CIGI/IGPluginCIGI.cpp">https://github.com/CCSI-CSSI/MuseOpenIG/blob/master/Plugin-CIGI/IGPluginCIGI.cpp</a><br></div><div><br></div><div>but you rotate it normaly as in flat earth and then apply the transofrmation for that geo location:</div><div><br></div><div><div>osg::Matrixd l2w;</div><div>osg::EllipsoidModel em;</div><div>em.computeLocalToWorldTransformFromLatLongHeight(osg::DegreesToRadians(lat),osg::DegreesToRadians(lon),alt,l2w);</div><div><br></div><div>osg::Quat hpr;</div><div>osg::Matrixd finalMatrix = osg::Matrixd::rotate(hpr) * l2w;</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 29, 2017 at 7:03 AM, Vinoth Rajendran <span dir="ltr"><<a href="mailto:vinothrajendran4pro@gmail.com" target="_blank">vinothrajendran4pro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
...<br>
<br>
yaa,Now i am getting the Up Vector.But i unable to rotate correctly my object(entity) in scene with respect to Particular Axis.<br>
<br>
if it is not geocentric(flat),if i want change the heading i can make rotate with respect to Z-axis,same pitch <a href="http://w.r.to" rel="noreferrer" target="_blank">w.r.to</a> X-Axis and Roll <a href="http://w.r.to" rel="noreferrer" target="_blank">w.r.to</a> Y-Axis.<br>
<br>
But in geocentric how i can change heading,Pitch and Roll of my Entity ?<br>
Can anyone explain me please ?<br>
<span class=""><br>
Thank you!<br>
<br>
Cheers,<br>
Vinoth<br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=70861#70861" rel="noreferrer" target="_blank">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=70861#<wbr>70861</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>