[osg-users] [forum] Lat & Lons
Robert Osfield
robert.osfield at gmail.com
Mon Dec 5 00:48:56 PST 2016
On 5 December 2016 at 06:33, Bhanu Chandra <bhanuchandra151 at gmail.com> wrote:
> How to load models using lat and Lon positions to the plane Earth ?
What do you mean by "plane Earth"?
A flat earth projection? Earth Centered Earth Fixed (ECEF)?
Given I can't guess what you really mean I can only provide general
pointers. First up the models normally just load up in the their own
local coordinate frame and require the user to create a transform node
which you place above them and then attach this transform to the scene
graph. This transform node is set up to the correct matrix using the
osg::EllipsoidModel helper class. Look at the osgsimulation example
for code that does this for place the loaded cessna into ECEF.
Robert.
More information about the osg-users
mailing list