On Monday 11 April 2005 10:02, senthil kumar wrote: > Hai, > > I have a doubt related to the scenery. I have > fixed my camera as a top view of aircraft (500 m � Camera > position from aircraft) and there is no rotation for camera. > Now the aircraft is in 1000 m height and I want to know if > aircraft position is x (lat), y (lon) what�s the latlon value > at each edge of the screen? > > > > Bye > M.Senthil Kumar
If I understand you correctly, you have set up a down-facing camera/view that is 500m above the aircraft. With no rotations or offsets the camera/view will be 'aiming' at the current lat/lon of the aircraft, which you can obtain from the property tree. I'm not aware of any built-in functions that would allow you to simply 'read-off' the lat/lon co-ordinates of each corner of the view so I think you will have to calculate this. However, I believe that in FlightGear, the Earth is not modelled as a simple sphere but as a pretty accurate oblate spheroid that conforms to established standards and I've also seen mention of routines within the FG/SimGear code base to handle the FG geodesy so you might find that the tools you need to calculate what you need to know are already present. Sorry I can't help you more - it's not really my area of expertise (not that I claim any;)) p.s. hmm... it's just occurred to me that you might find the data you want in the OpenGL stuff... ...any developers out there got any ideas? LeeE _______________________________________________ Flightgear-users mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/flightgear-users 2f585eeea02e2c79d7b1d8c4963bae2d
