Quantcast
Channel: digitalerr0r » DirectX11
Viewing all articles
Browse latest Browse all 15

Procedural landscapes using Perlin Noise

$
0
0

landscape1
A few years ago I read the article “Generating Complex Procedural Terrains Using the GPU” in GPU Gems 3. It covers a way to implement random landscapes using Noise, a great read if you are interested.

I’m just in the start phase, able to render some interesting landscape, but no texturing and so on.

The general algorithm is really simple. Just create a few layers of Perlin Noise on a plane.

I start by rendering a simple plane at the position –3 in the Y-axis:
image

Then, I add a few octaves of Noise to create an interesting landscape pattern:

image
1 octave

image
2 octaves

image
4 octaves

imageimage
8 octaves

As you can see, after only 8 octaves, the landscape is getting very interesting. You can play with the parameters for each layer, like amplitude, to create a mystical, evil looking landscape.

Next, I added another plane that’s just “straight” at Y = –3.2 to add a waterlevel:
image

A flight through the landscape can be seen below, enjoy. Smilefjes



Viewing all articles
Browse latest Browse all 15

Trending Articles