Minecraft Maps / Land Structure

Simple Heightmap Generator

  • 3,721 views, 1 today
  • 2
  • 0
  • 1
_nyancat's Avatar _nyancat
Level 19 : Journeyman Miner
Recently, I've been experimenting with procedural generation in JavaScript. After some toiling and idiotic mistakes, I've managed to create a basic terrain generator, which works via Simplex noise.

How does simplex noise work?

Simplex Noise is a type of gradient noise. A set of values is spread out along an X/Y coordinate plane. Then, when the elevation for a certain X/Z on the map is needed, the point on the coordinate plane is located. Then, the dot product of the nearby values is found. This means that instead of ugly spikes, you get a rather smooth hilly terrain.

The terrain generator outputs in a height map; this is basically a black-and-white (monochrome) image, where black is higher elevation and white is low elevation. Using tools such as WorldPainter, you can convert heightmaps to Minecraft worlds. The height map generator is available online here.

The picture above was after exporting with WorldPainter.
Progress100% complete

Create an account or sign in to comment.

• 04/06/2017 12:41 am
• Level 19 : Journeyman Miner
_nyancat's Avatar