Jun 15, 2011

Terrain Generation: A sneak peak :p

I've been working on terrain generation for a few weeks and thought I'd share an early image of the results:

Click image for a larger version.

Since the first scenario I'll be supporting is a desert island, my terrain generation has focussed on islands. The terrain above is about 0.7 square km in size in the game, and is about 300m high at the top of the hill I believe.

I won't go into much detail about the technique in this post, as I'll write up more detailed ones later that go through the full process. However, to build the terrain I generated a Voronoi diagram to produce the shape of the coast, then calculated a signed distance field to produce the heightmap seen above.

In my current dev build I've added perlin noise to rough up the terrain somewhat, and results are looking good.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.