Advertisement

Landscape Tutorials

Started by May 18, 2001 03:28 PM
7 comments, last by Omid Ghavami 23 years, 9 months ago
Hi, I''m very new to bought C and OpenGL (Just switched from long time usage of DX in VB), but I''ve done some good progress thanx to Nehe And now I''m looking for tutorials on Heightmapped landscapes, I would appreciate if anyone could tell me where I can find such a thing, thanx in advance Regards, /Omid
Best regards, Omid
Hey,
I''m not very good at tutorials... But if you want to examine some source code, goto the "MESSED UP LIGHTING!!!" forum, and goto my source code. Look for the sub "GenerateHeights" or "GenerateHeightmaps" or something like that. It has a routine that simply generates heights using an altered circle algorithm and places the heights in an array. If you''re good at disecting code, that should help.

Walt
Advertisement
On "visualizing heightmaps" or actually generating them?

In case of the latter, I know of a few methods that could be used. E.g. perlin noise, random midpoint displacement fractals (or subdivision plasma) or using using a 2D FFT with an applied 1/f noise (I didn''try this one yet, but it seems like an okay method). Note that I never tried making landscapes using these methods, so I don''t know how well they fit that purpose (perlin noise works fine though).


"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album
To give a name to the latter method the name of it appears to be "Frequency Synthesis". It''s based on observations that fractional Brownian motion (fBm) generates curves and surfaces (as in our case) that looks a lot like coastlines and mountains. Something I know nothing about I''m just "kind-of-quoting" what I''ve read. It involves using a fast fourier transformation as mention above as well as an inverse FFT. I''ve seen "images" created that both resembles cloudscapes and planetary surfaces, so it seems fairly adaptable. (It generates seamless heightfields as well, which is nice if you want to generate nice textures)


"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album
Thanx for your replies, I appreciate your help. Sorry for my late reply, because of a lot of homework I didn''t get a chance to use my computer to other than homework

Regards,
/Omid

Inverted Minds
http://connect.to/invertedminds
http://www.fatech.com/tech/opengl/tutorials.shtml
That should help you.

DN.
Advertisement
Thanx!!! This is just what I was looking for

Regards,
/Omid
Best regards, Omid
Thanx!!! This is just what I was looking for

Regards,
/Omid
Best regards, Omid
Thanx!!! This is just what I was looking for

Regards,
/Omid
Best regards, Omid

This topic is closed to new replies.

Advertisement