Jump to content
The simFlight Network Forums

Recommended Posts

Hello

I know that there is a variable in FSUIPC5 that reads terrain data at specific location which can be used for example in Terrain Radar.

Is there any way to read such data in FS2004?
I personally didn't find any solution except reading data directly form SRTM.

Thanks

Edited by touradg

Share this post


Link to post
Share on other sites

I'm not sure if it works in FS2004, but try offset 31E8. Surface detail request in P3D4 are at 8670, which certainly won't work in FS2004.

Cheers,

John

Share this post


Link to post
Share on other sites
19 hours ago, John Dowson said:

I'm not sure if it works in FS2004, but try offset 31E8. Surface detail request in P3D4 are at 8670, which certainly won't work in FS2004.

Cheers,

John

Hello John

Thank you for reply.This returns ground type (as far as I know) and not what I am looking for.

The thing I am trying to figure out is how to give FSUIPC a Lat/Lon and get its ground altitude at that specific position.Using this I will be able to create a matrix of for example 1000 points in 2D which shows the terrain around aircraft.Each point can then be checked against aircraft altitude and then be pained red,orange and green to simulate GPWS.

The things I am working On is simply A "Terrain On ND" feature.

Thank you

Share this post


Link to post
Share on other sites
Quote

This returns ground type (as far as I know) and not what I am looking for.


Did you read offset 8670 as John described it?

8670 int 32bit Resulting altitude AMSL in meters.      
So the "trigger" (see below)
8674 float 32 Latitude, in degrees
8678 float 32 Longitude, in degrees etc. 

Cheers,
Volker

 

Share this post


Link to post
Share on other sites

Offset 8670 is for P3Dv4 only. This functionality is not available for FS2004 unfortunately. Ground altitude is available at offsets 0b4C and 0020, which would be the ground altitude at aircraft position.

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

×

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.