Hi, I am using osgdem to generate a terrain from a set of dted-files in geocentric coordinates. What I am trying to do next is to navigate the camera along a path given in geographic coordinates (lat, long, alt).
However, when I try to convert a geographic coordinate (of which I am sure from where the terrain is visible) to geocentric coordinates, and place my camera there I do not get to see anything. I transform the coordinates using osg:EllipsoidModel. I also realized that I am getting weird output results from the Ellipsoid transformation: when I construct a bounding sphere bounding the whole terrain (built in geocentric coord-sys) and test a point at the center of the terrain (converted from geographic to geocentric coordinates) to see if it is included in this bonding sphere, it turns out that this point in geocentric coordinates is not included inside this bounding sphere - which is a contradiction. am I missing something when performing the transformation from geographic to geocentric coordinates? are there other transformations I have to incorporate into my calculation? or am I building my terrain database with the wrong parameters ? I use --geocentric option and I pass the root directory of all dted files. I use osg-version 2.9.5 and virtual-planet-builder-v11. any help is greatly appreciated.. Thank you! Cheers, deniz ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35183#35183 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

