Worlds from Noise
No one draws every mountain by hand. Games grow whole worlds from a little math. Here is the trick.
No one draws every mountain by hand. Games grow whole worlds from a little math. Here is the trick.
What if every point in the land got a totally random height? Press the button a few times. You get jagged static, like a broken TV, not a landscape. Real mountains are random and smooth.
Randomness alone has no memory. Each point ignores its neighbors, so nothing flows. Nature does not work that way. A mountain slope knows where it was a step ago.
The fix is noise: pick random heights far apart, then smoothly blend between them. Drag the slider from rough to smooth and watch the static settle into rolling hills.
The most famous version is Perlin noise, invented by Ken Perlin in 1983 for the movie Tron. It won him an Academy Award. Almost every game world since uses some flavor of it.
One layer of noise gives smooth hills, but real land has big shapes and tiny bumps. So we add layers: big slow noise for mountains, plus smaller faster noise for rocks and ridges. Add layers and watch detail appear.
Each layer is called an "octave," like in music. Doubling the frequency each time is exactly how musical octaves work. Terrain and melodies are built the same way.
Last step: turn heights into a world. Color each point by how high it is. Below sea level is water; then sand, grass, rock, and snow on the peaks. Raise and lower the sea and watch islands and continents appear.
Minecraft, No Man's Sky, and countless games generate their worlds this exact way. No Man's Sky fits over 18 quintillion planets into a tiny download, because it stores the recipe, not the worlds.
You saw how random numbers, once smoothed and layered, become mountains, coastlines, and continents. This is procedural generation: the same idea behind the endless worlds in your favorite games. Now go grow your own.
If every point gets a totally random height, you get spiky static, not a landscape. Nature is random but smooth.
Noise picks random heights, then blends between them. The result looks like rolling hills instead of a bar chart.
Add small noise on top of big noise. Big waves become mountains; small waves become bumps and rocks. Layering is what makes it believable.
Color each point by its height: low is water, higher is grass, then rock, then snow. A height map plus color rules is a world.
Put your new knowledge into practice!