Jump to content
Sign in to follow this  
Guest GerrishGray

Terrain Following Radar

Recommended Posts

I plan to develop a terrain following radar gauge. I can easily get the ground altitude below the aircraft, but I need to get the ground altitude in front of the aircraft (0.5 or 1 NM ahead).I am not a scenery expert, but if anyone knows how I can get this information from the scenery, I'd be glad to know...Thanks !!

Share this post


Link to post
Share on other sites

I think that will be very hard to do. Or you would have to make your own version of the scenery engine so you can read the BGL :).I think the option is to use some sort of prediction formula, based on the current and previous altitudes, but it will not be perfect (I guess).Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

I don't think I can do a scenery engine that reads the BGL...And your solution to make a prediction from previous altitudes is not good when you fly in mountains.Anyway, thanks for your help !!!

Share this post


Link to post
Share on other sites
Guest GerrishGray

Arno's right, I'm afraid, Rocky - he usually is! There is no way at present to get the ground elevation anywhere other than directly under the aircraft. We don't know how to read the compressed terrain mesh files that contain the data, and the only runtime access is via the global variable that you are already familiar with.The nearest you'll get to TFR in Microsoft's "real as it gets" virtual world is a radar that will need some sort of psychic device for communicating messages to recently-dead pilots to say "Oh dear, that was a cliff you just hit!" - but MSFS has got one of those already :-bigangel CheersGerrish

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...