There are no silly questions, only silly answers, lets hope mine isn't too silly:)
On Thu, Mar 5, 2009 at 10:09 AM, BARANGER Emmanuel (via Nabble) - No Reply <[hidden email]> wrote:
I think I'll look pretty silly with my questions but I try my luck ;)
The idea :
use of osgEarth in FlightGear for to have a GPS real-time directly on the panel.
This would be very cool:)
1 - Is it possible to give osgEarth the coordinates, latitude and longitude of the central point of view ?
The scene created by osgEarth contains an osg::CoordinateSystemsNode which can be used convert geocentric coordinates to lat/lon. You should be able to dynamic_cast the node returned by osgDB::readNodeFile to a osg::CoordinateSystemsNode* and use the methods on that CS node to go from geocentric coords to lat/lon.
2 - can be said (for a projection plane) on which object, map projection should be done ?
I believe for this case you would want to render the osgEarth scene to a texture and then texture it onto the quad. See the osgprerender example for an example on how to do this. Running osgprerender with a .earth file works fine and looks very cool:)
3 - Can there be a zoom in the beginning. For example, the width visible on the object (20 meters or 100 meters or 2000 meters ....)
I'm not sure what you are asking here. You can control the position of the camera by setting its view matrix to whatever you want. If you're using the osgprerender example, you can see that the osg::Camera::setViewMatrixAtLookAt is used to position the camera. You can use whatever values you need to provide the effect you are looking for.