Archived

This topic is now archived and is closed to further replies.

Random Terrain Generation

This topic is 5872 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The previous poster mentioned heightmaps. There are many ways to generate a random terrain heightmap. One common technique is the diamond-square algorithm. A less-common technique is the fault/crater algorithm. A tutorial on both of these subjects is available here: http://www.lighthouse3d.com/opengl/terrain/. Another technique is to use Perlin noise. There''s a nice tutorial on Perlin noise here: http://freespace.virgin.net/hugo.elias/models/m_perlin.htm. There''s also a site about generating terrain at http://www.geocities.com/Area51/6902/terrain.html which has links to many other papers, articles, and tutorials. Both Perlin noise and the diamond-square algorithm fit into the larger category of Fractal Brownian Motion, or FBM. You may want to try a search or two on Google on FBM; you may find more useful information.

Share this post


Link to post
Share on other sites
Fury, those are nice links...

I''d like to add something to that. If you''d like a static terrain you can also create it as a grayscale indexed mode in photoshop or other drawing program, and then save it as RAW. Then you just load it in your program.

Share this post


Link to post
Share on other sites