Terrain Diffusion: A Diffusion-Based Successor to Perlin Noise in Infinite, Real-Time Terrain Generation
Alexander Goslin
TL;DR
Terrain Diffusion presents a diffusion-based approach to infinite, seed-consistent terrain generation, addressing the limitations of traditional procedural noise and bounded diffusion. It introduces InfiniteDiffusion to enable unbounded, region-based querying with lazy evaluation and an open Infinite Tensor framework for unbounded inference. A hierarchical stack combines coarse planetary conditioning with high-resolution local detail, stabilized by a signed-square-root transform and Laplacian encodings, enabling coherent, real-time synthesis across planetary scales. Empirical results show real-time latency suitable for streaming and high-fidelity, globally coherent terrain, demonstrated through in-game integration and diverse landscape outputs. The work establishes diffusion models as a practical foundation for procedural worldbuilding at planetary scales, with clear directions for future extension and domain applicability.
Abstract
For decades, procedural worlds have been built on procedural noise functions such as Perlin noise, which are fast and infinite, yet fundamentally limited in realism and large-scale coherence. We introduce Terrain Diffusion, an AI-era successor to Perlin noise that bridges the fidelity of diffusion models with the properties that made procedural noise indispensable: seamless infinite extent, seed-consistency, and constant-time random access. At its core is InfiniteDiffusion, a novel algorithm for infinite generation, enabling seamless, real-time synthesis of boundless landscapes. A hierarchical stack of diffusion models couples planetary context with local detail, while a compact Laplacian encoding stabilizes outputs across Earth-scale dynamic ranges. An open-source infinite-tensor framework supports constant-memory manipulation of unbounded tensors, and few-step consistency distillation enables efficient generation. Together, these components establish diffusion models as a practical foundation for procedural world generation, capable of synthesizing entire planets coherently, controllably, and without limits.
