[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

8276: [MUD-Dev] Re: Terrain/Landmass & GIF/BMP

[Full Header] [Plain Text]
From: Chris Gray <cg@ami-cg.GraySage.Edmonton.AB.CA>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 8 Oct 1998 08:08:42 -0600
Organization: Kanga.Nu
[Niklas Elmqvist:]

 >The basics of fractal terrain generation are quite simple and can be
 >contrived by just about anyone. Think "subdivision" and "recursion" and
 >you're home free. What you do is that you start out with an empty
 >matrix and initialize its corners to a random height. Then call the
 >recursive subdivide procedure on the matrix, which will compute the
 >average heights, plot them into the matrix and then call itself
 >recursively on the four subsquares (there are many variations on this).

Yep. And, if you want your world to be a torus (wrapping around in both
directions), just start the four corners at the same value (like 0), and
it will work out.

--
Chris Gray     cg@ami-cg.GraySage.Edmonton.AB.CA