Hi Zeki, On 6 February 2013 10:08, Zeki Yugnak <[email protected]> wrote: > I have no problem on terrain displaying but the transformation is not smooth > because of higher value of the coordinates. World coordinates which are > obtained by "computeLocalToWorldTransformFromLatLongHeight" are very high > values. I try to convert recorded object coordinates according to a origin > point and transform terrain to this origin. But terrain and object is not > correlated.
It's very hard to know what you mean and thus what to recommend. What do you mean the "transformation is not smooth because of height value of coordinates?" Could it be that you have float precision problems? The OSG by default uses double for all camera and all internal scene graph transform nodes to avoid jitter problems caused by float. > - How can I use middle coordinate system for object and terrain > transformations? Again, don't know what you mean by "middle coordinate system". For geocentric terrain databases VirtualPlanetBuilder and osgEarth both arrange the tiles such that they have a local origin and are in the units of meters, and place these tiles under MatrixTransform that place them in ECEF (Earth Center Earth Fixed). The CoorindateSystemNode/Terrain(which subclasses from CoordinateSystemNode) nodes are used to decorate terrain subgraphs and provide a EllipsoidModel object that can convert from ECEF to lats/long/height. Does this make sense? Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

