Terrain Rendering For Flight Simualtion - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Terrain Rendering For Flight Simualtion

Posts: 1Member
Hi all,

Kindly help Me to implement ROAM algorithm for Rendering Terrain in Delphi/OpenGL.

Please Let me Know if there are any Good Sites for Getting information regarding Same.

Regards

Santosh.

• Posts: 168Member
: Hi all,
:
: Kindly help Me to implement ROAM algorithm for Rendering Terrain in Delphi/OpenGL.
:
: Please Let me Know if there are any Good Sites for Getting information regarding Same.
:
:
: Regards
:
: Santosh.
:
Hmmm...

I dunno a shit on how one could render graphics for a flightsim, but let me elaborate on how one can create the terrain.

One way that you can create a landscape is basically by having a grid of say 16 x 16 floats where each float value indicates the altitude below and over the sea level where 0 is the lowest sea ground and 1 is as high as heaven. Say that you have the sea level at 0.25 then each point above it is equivalent to land.

Now to continue you gotta specify how wide in pixels the grid is, say that you specify 1024 x 1024 as the amount of pixels per gridsquare then you have 16384 x 16384 pixels. Now all you need to do is to draw a picmap of the area you want to render and apply as a texture on top of it.

Next; calculate the heights for each pixel in the grid. Either this can be done by leting pixel 0,0 determin the hight of all pixels wich gives a bulky look, or smoothly calculate each pixel from 0,0, to 1023,1023. Then you have to do the same proess for all the squares in the grid wich will take some time to do, but the end result will look quite good.

Don't ask for any code on how to do this, just me elaborating a bit on how the engine could be constructed. And if you follow my advices then please add in the credits:

Terrain render mechanism
suggested by JoBro Media.