Hi Dave, When you create geocentric databases with osgdem it puts on osg::CoordinateSystem node at the top of the scene graph, this provides an osg::EllipsoidModel that you can use to go between lat/long and earth centered, earth fixed X,Y,Z coords and back.
Robert. On 10/26/06, Rudnick, Dave (con) <[EMAIL PROTECTED]> wrote:
I am a newbie to OSG and think I just need a little pointing in the right direction. I have managed to build and install OSG with no problems on a WinXP target. On following the provided examples I have managed to create a small viewer application that can load terrain and a couple of vehicle models and have the vehicles move around on the terrain. So far very straight forward. I have also managed to use osgdem to build a terrain model from imagery and DTED2 data. Thank you for the wonderful support tools provided with OSG for being able to do this and many other geographic based tasks. I seem to have run into a stumbling block in trying to figure out how to reference my scene using geographic lat/lon coordinates. Currently I am positioning the models and such with what appear to be unit less values around an origin of (0, 0, 0). I would like to be able to position my models on the terrain using lat/lon coordinates and to also center my view on the terrain using lat/lon coordinates. I plan on using a single geographic Datum "WGS84" and Lat/Lon in decimal degrees. Could anyone point me in the direction of a Tutorial, Sample or explanation on how to do this? Thanks in advance for any help on this. Dave _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
