[Flightgear-devel] view/ground intersection question

2005-07-20 Thread Josh Babcock
How difficult would it be to make a nasal function call that would
return the lat/lon/alt of the point on the ground under the cursor? I am
trying to make a nasal system to lock the view onto the end of the
runway, or any arbitrary point, and I need a way to get the coords so
that I can tell the nasal code where to point the view.

I think that I could define a lookat view instead of th nasal stuff, but
I don't want to use one of the pre-existing views, and adding a 7th view
tends to cause compatibility issues with just about anything that
touches the view system. Either way, I still need a way to get the coords.

Josh

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] view/ground intersection question

2005-07-20 Thread Andy Ross
Josh Babcock wrote:
 How difficult would it be to make a nasal function call that would
 return the lat/lon/alt of the point on the ground under the cursor?

You certainly can't do it in Nasal alone.  Code would have to be
written to project a line between the eyepoint and the cursor location
and intersect this with the scene graph, convert to the global
cartesian coordinate system, then to a WGS84 coordinate.  Non-trivial,
sadly.  But not impossible.

Andy

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d