Thank you all for your help...that got me going in the right direction.
Essentially what I did was traverse the scene graph to find my
osg::CoordinateSystemNode, get the osg::EllipsoidModel from it and then use it
to transform my desired LLA point to world coordinates:
Code:
double lat =
Pardon the elementary question...I'm a newbie with OSG and VPB. I've search
around but haven't found a simple example that illustrates what I'd like to do.
Essentially, I've built a VPB whole-earth database and got it loaded in my
application. There are two things I'd like to do at this
Re #1: Your whole-earth database is in geocentric (earth-centered XYZ)
coordinates. In the class osg::EllipsoidModel (in osg/CoordinateSystemNode)
there are functions to convert from lat/long to geocentric and back. You can
these to calcuate the XYZ at which to place your model. Then use the XYZ
-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Glenn
Waldron
Sent: Saturday, February 28, 2009 3:04 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Coordinates in VPB database
Re #1: Your whole-earth database is in geocentric
4 matches
Mail list logo