A couple more questions... 1) Are your lat, lon in radians when you call convertLatLongHeightToXYZ? 2) Have you tried viewing your database (terrain.ive) with osgviewer to see what it looks like (osgviewer terrain.ive)? If you can't see your database with osgviewer, then there's a problem with your database.
I use the exact same methods and my stuff works fine for viewing the terrain given a lat,lon,alt with a geocentric database. As for osgdem, the only difference is that I'm using a pagedLOD database and I'm using osgTerrain... Here's the osgdem command I use... osgdem --TERRAIN -PagedLOD --geocentric --whole-globe -t wholeearthtexture -t texturedir -d elevationdir -l 24 -o geodatabase.ive -Shayne -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of deniz diktas Sent: Tuesday, December 28, 2010 2:18 PM To: [email protected] Subject: Re: [osg-users] [vpb] geographic to geocentric coordinatetransformation I am using osg::EllipsoidModel::convertLatLongHeightToXYZ() method to convert the coordinates as such: osg:::EllipsoidModel em; em.convertLatLongHeightToXYZ(_lat,_long,_alt, x,y,z); when building the model I used osgdem with the following parameters: osgdem --geocentric -d dted_dir -o terrain.ive dted_dir contains dted files in a certain directory structure defined in dted-standard. I checked the validty of the dted with a commercial software, the geographic ranges are consistent with osgdem without --geocentric parameter (I looked at the contents of the height field of the first subtile: lod=0) so there is no problem with the input file, I am sure of that. -deniz ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35199#35199 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

