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

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Thu Oct 8 08:08:42 New Zealand Daylight Time 1998


[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 at ami-cg.GraySage.Edmonton.AB.CA




More information about the MUD-Dev mailing list