Jump to content

Procedural generation

From Simple English Wikipedia, the free encyclopedia

Procedural generation is a method of generating content using algorithms and random numbers as opposed to making content manually. Examples of procedural generation include generating infinitely large worlds, as seen in games such as Minecraft, or an infinite amount of worlds seen in games such as Terraria. Other use cases for procedural generation include creating digital textures and materials.

An image of Perlin noise, where 0 is black, and 1 is white, and the values smoothly transition between the two.
An example of Perlin noise, where 0 is black, and 1 is white.

The way games such as Minecraft achieve infinitely large worlds is by using algorithms, with the main one being Perlin noise, which smoothly transitions between values as opposed to using random numbers for everything. For example, a game might make it so any value above 0.5 is land, while below is water.