Zeki,

Don't transform the root scene (I assume you mean the terrain). Instead
just take the matrix you got
from computeLocalToWorldTransformFromLatLongHeight() and put that into a
MatrixTransform. Then any points under that MatrixTransform are local to
that world point, and you won't have any precision jittering problems.

Glenn Waldron / @glennwaldron


On Tue, Feb 5, 2013 at 9:36 AM, Zeki Yugnak <[email protected]> wrote:

> Hi everyone,
>
> I just started using Openscenegraph. I have some questions regarding
> coordinate systems. I am trying to develop simple debriefing application. I
> am using geographic (lat, long and alt ) coordinates and rotations
> information that were recorded on vehicle to transform objects in 3D space.
>
> I am also using geocentric terrain in order to show vehicle on the correct
> coordinates. I have no problem on terrain displaying phase but the
> transformation is not smooth because of cordinates's higher value. I am
> using world coordinates which are obtained by
> "computeLocalToWorldTransformFromLatLongHeight" to transform and position
> objects. So Can I use local coordinates instead of world coordinates for
> object transformations?  or How can I transform rootscene to the origin
> point?
> ...
> Thank you for any help.
> Regards.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=52387#52387
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to