Terrain & Heightmap Generation
Procedural terrain generation creates realistic landscapes using mathematical algorithms. Common techniques include Perlin noise, Diamond-Square, and hydraulic erosion. Heightmap Basics A heightmap is a 2D array where each value represents elevation: 1type Heightmap struct { 2 width, height int 3 data [][]float64 4} 5 …
Read MoreWave Function Collapse
Wave Function Collapse (WFC) is a procedural generation algorithm that creates patterns by propagating constraints. Inspired by quantum mechanics, it generates coherent outputs from a set of tiles and their adjacency rules. Core Concept Start with a grid where each cell can be any tile (superposition) Collapse one cell …
Read More