HI Minghong, 2009/4/7 minghongxie <[email protected]>
> Hi Robert, > > Thanks for your suggestion, but maybe I misleaded you to the wrong way. > Please let me re-organize my problems again. > I have built the earth model ( earth.osga ), the region model ( e.g. > Beijing.osga, which created by osgdem with img file and dem file), and the > object models (e.g. car.osg, plane.osg, ...). I want to load the three kinds > of models in one viewer, and locate the Beijing.osga and car.osg, plane.osg, > etc. in specifically position of the earth model (earth.osga) with > Lon/Lat/Height coordinate. How can I do it? > Positioning objects into the scene would simply be done with an osg::MatrixTransform or an osg::PositionAtttitudeTransform, it's just then a case of mapping the lat's and longs to the ECEF coords that the world model will be in. The osg::ElliposoidModel, attached to the CoordianteSystemNode decorating the earth model, has methods for going from lat/long,height to XYZ, and also can provide the local normals. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

