Procedural Generation

Mathematics as the ultimate creator. Discover how algorithms build vast universes, intricate landscapes, and living ecosystems from a single seed.

Structured Principles
  1. PART I: THE RAW MATERIAL
    1. Coherent Noise & Perlin Streams
    2. Fractal Brown Motion (fBm)
  2. PART II: ORGANIC STRUCTURES
    1. Cellular Automata: Cave Systems
    2. The Rules of Emergence
  3. PART III: THE BOTANY OF CHANCE
    1. L-Systems & Fractal Flora
  4. PART V: ARCHITECTURAL SPACE
    1. Binary Space Partitioning

The Geometry of Noise

True randomness is chaotic—a "white noise" of static. But for games, we need Coherent Noise. Imagine a landscape where every point is related to its neighbor. This is the foundation of digital terrain, clouds, and textures.

Interactive Perlin Map

Adjust the octaves and scale to see how simple gradients layer into complex terrain.

The Caves of Life

How do we create natural-looking cave systems? We use Cellular Automata. By applying simple rules repeatedly—like "if a pixel has more than 4 neighbors, it becomes a wall"—we can transform chaos into organic structures that mimic the carving of water or the growth of mold.

Cave Evolution Simulation

Watch how simple local rules emerge into a global structural network.

The Alchemy of Flora

Plants don't grow randomly; they follow recursive grammars. Lindenmayer Systems (L-Systems) use string replacement rules to simulate the branching patterns of trees, ferns, and coral. A single "seed" string grows into a complex, infinite fractal.

L-System Recursive Growth

Each iteration applies a geometric rule to every branch, creating organic symmetry.

Wave Function Collapse

How do we build complex, rule-based levels like cities or dungeons? Wave Function Collapse (WFC) treats every tile as a "superposition" of possibilities. By observing (choosing) one tile, we force its neighbors to "collapse" into states that satisfy local constraints, creating a perfectly coherent world from a set of simple tiles.

Tile Constraint Solver

Tiles are Grass, Water, Coast, and Road. Watch how choosing one tile propagates constraints across the grid.

The Architecture of Chaos

How do games like Doom or Rogue create balanced, structured dungeons? Binary Space Partitioning (BSP) recursively divides a large space into smaller "containers." By placing rooms within these leaf nodes and carving corridors to connect siblings, we generate layouts that feel intentional and organized rather than purely random.

Recursive Dungeon Architect

Watch how the infinite void is carved into a hierarchy of rooms and corridors.