: 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.
: your help is very much appericiated,Thanks in Advance,
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.
Good luck with your project!