MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

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



[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




[ Other Periods  | Other mailing lists  | Search  ]