A password will be e-mailed to you.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

Pages: [1]
Author Topic: Terrain data
Naruto-kun
New User
Posts: 16
Send Message
Post Terrain data
on: April 29, 2012, 00:42

Hi

Im trying to parse the terrain.dll (hope im looking at the right dll?) to read terrain data in real time for a terrain following radar and its associated E-scope display but not having much luck with figuring out how to do it. Anyone here have some tips?

Thanks

Naruto-kun
New User
Posts: 16
Send Message
Post Re: Terrain data
on: May 2, 2012, 11:37

Doesnt anyone have an answer or have I asked a forbidden question? Just wanna be sure...

Burkhard
Professional
Posts: 175
Send Message
Post Re: Terrain data
on: May 3, 2012, 04:18

Look into the simconnect manual, there is a call to get the terrain height of a location. Parsing dlls isn't the right start.

DevSim
Professional
Posts: 138
Send Message
Post Re: Terrain data
on: May 3, 2012, 04:19

Burkhard,

Have you had any success with SimConnect_RequestGroundInfo()? I haven't received any data back from my requests sent so far.

Thanks
DevSim

Burkhard
Professional
Posts: 175
Send Message
Post Re: Terrain data
on: May 3, 2012, 06:24

No, I didn't try this out yet, as long as I don't get bathymmetry compiled whatever I tried up to now I have no need for it.

Naruto-kun
New User
Posts: 16
Send Message
Post Re: Terrain data
on: May 3, 2012, 10:15

apologies i should have mentioned this from the start although i thought i would need to go the same route for P3D since i missed that RequestGroundInfo during my dives into the P3D simconnect SDK. Im doing this for FSX not P3D although i would be happy to make it for P3D as well....IF i can get it for FSX.

FSMP
Professional
Posts: 637
Send Message
Post Re: Terrain data
on: May 3, 2012, 10:22

Quote from Naruto-kun on May 3, 2012, 10:15
apologies i should have mentioned this from the start although i thought i would need to go the same route for P3D since i missed that ground info thing. Im doing this for FSX not P3D although i would be happy to make it for P3D as well....IF i can get it for FSX.

Check out the FSdeveloper website. There is a lot of technical documention there on reading BGL files etc.
This might be a better approach, than trying to do it through simconect ?? (or maybe not :) )

In any case, FSdeveloper is a great resouce, and there are many GOOD technical people there, always willing to help and share infomrmation.

Geoff

Naruto-kun
New User
Posts: 16
Send Message
Post Re: Terrain data
on: May 3, 2012, 10:25

Only problem is when i have asked around there no one has been able to answer or they have been unwilling to answer because as far as they are concerned its a special secret that they are keeping to themselves. The reason i came here is because i was hoping that someone from the P3D team might be able to help me out since they know whats going on in the sim.

N4GIX
Professional
Posts: 115
Send Message
Post Re: Terrain data
on: May 3, 2012, 11:22

As far as I can remember, the technique used involves setting some number of fwd "probe objects" and reading the radar height returns, then using those to interpolate terrain "shape" from evaluating the returned data.

Naruto-kun
New User
Posts: 16
Send Message
Post Re: Terrain data
on: May 3, 2012, 11:29

Thats if you go via simconnect rather than parsing the terrain.dll. And it is a rather resource intensive process....especially if you are planning to create a accurate rendition of a E-Scope. Cuz IRL the antenna is scanning up and down and simply returning the distance and angle to the terrain that it detects. Now to get the kind of accuracy that im looking for...will turn the sim into a slide show.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.31 ; Page loaded in: 0.162 seconds.