Hi Chris, I'd say JP is right, an elevation of 0.0253 sounds like you have a geographic map (x = lon, y = lat, z = meters scaled to degrees).
Rebuilding with --geocentric should get you geocentric coords. Jason On Fri, May 15, 2009 at 2:48 AM, J.P. Delport <[email protected]> wrote: > Hi, > > did you build your DB with --geocentric? > > jp > > Chris 'Xenon' Hanson wrote: > >> I've noticed that when using VPB terrain, the coordinates of the >> OSGViewer Camera as >> determined by Camera::getViewMatrixAsLookAt(eye,dir,up) appear to be in >> the same >> coordinate system as the terrain. For example, my terrain was built from >> Lat/Lon/Elev(m) >> data, and the camera X and Y are showing Latitude and Longitude. >> >> Which is great, but I'm wondering how that happened, as I expected the >> Camera to likely >> be working in ECEF/geocentric Cartesian X/Y/Z coords. Does the camera >> magically just pick >> up the Coordinate System from the first file loaded by osgViewer, or >> what's the rule? >> >> Also, I noticed the elevation/Z of the camera (which I expected to be in >> the 3000m range >> for the Colorado Rocky Mountains) are more like 0.0253 (as confirmed by >> saving an >> animation path from osgViewer). What units is this in, as it doesn't seem >> to jive with >> what I saw elsewhere? >> >> > -- > This message is subject to the CSIR's copyright terms and conditions, > e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at > http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. MailScanner thanks Transtec > Computers for their support. > > > _______________________________________________ > 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

