Abstract
Generating realistic 3D terrains that adhere to specific user constraints remains a challenge in digital content creation. We present the Terrain Diffusion Network (TDN), a novel diffusion-based framework that synthesizes geologically plausible landscapes from simple user sketches. Unlike traditional methods that struggle with the "fidelity-diversity trade-off," TDN utilizes a multi-level denoising scheme to capture both high-level structural layouts and fine-grained climatic details, such as erosion patterns. Our approach significantly outperforms state-of-the-art GANs and general-purpose diffusion models in both structural accuracy and visual realism.
Introduction
The creation of realistic digital landscapes is essential for industries ranging from game development to film production. Traditional approaches, such as procedural generation and physical simulation, often fail to provide sufficient user control or are computationally prohibitive. While Generative Adversarial Networks (GANs) have offered a deep-learning alternative, they frequently struggle to balance precise sketch adherence with the complex, fine-grained textures resulting from millions of years of geological activity—a process known as climatic morphogenesis.
The Terrain Diffusion Network addresses these limitations by moving away from monolithic denoising processes. Instead, it employs a stratified approach that ensures the generated terrain is both geologically authentic and strictly aligned with user intent.
Methodology
The core of the TDN architecture is a multi-level synthesis pipeline designed to handle different geological scales independently.
Latent Space Representation
To optimize computational efficiency, TDN operates within a compressed latent space. Pre-trained U-Net autoencoders transform high-resolution heightmaps and user sketches into lower-dimensional representations, allowing the diffusion process to focus on semantic features rather than pixel-level noise.
Multi-Level Synthesizer
The denoising process is divided into three specialized stages:
- Structural Level: Focuses on the primary layout and "bones" of the landscape, such as major mountain ranges and valley systems.
- Intermediate Level: Manages the transition between large-scale shapes and secondary features.
- Fine-Grained Level: Specifically targets climatic factors, including erosion and weathering patterns, to ensure geological realism.
Direct Sketch Guidance
Rather than relying on cross-attention mechanisms common in text-to-image models, TDN utilizes direct latent concatenation. User-provided sketches (representing ridges, rivers, basins, and peaks) are concatenated directly with the noise-perturbed terrain latent. This ensures a high degree of structural correspondence between the input sketch and the output terrain.
Datasets and Training
The model was trained on a custom dataset derived from NASA Topology Images.
- Data Source: Digital Elevation Maps (DEM) at a 1:6400 meter scale.
- Feature Extraction: The
Pyshedslibrary was used to extract ground-truth sketches (basins, peaks, rivers, and ridges) from real-world terrain data. - Volume: The final dataset comprised 10,446 training samples and 2,611 testing samples, each represented as 144x144 elevation maps.
Results and Evaluation
TDN was evaluated against several state-of-the-art methods, including GAN-based architectures and general diffusion models like ControlNet and GLIGEN.
Quantitative Performance
TDN achieved a Frechet Inception Distance (FID) of 0.44023, representing a nearly tenfold improvement over the best-performing GAN (FID: 4.65986). Furthermore, its Mean Squared Error (MSE) of 0.00590 demonstrates superior structural accuracy in following user sketches.
Qualitative Analysis
Visual comparisons indicate that TDN produces sharper, more realistic ridges and valleys compared to GANs, which often ignore sketch details or produce blurry artifacts. The model also demonstrates "geological intelligence," finding plausible compromises when presented with conflicting user inputs (e.g., a peak placed within a basin).
Conclusion and Future Work
The Terrain Diffusion Network sets a new benchmark for sketch-based terrain generation by integrating climatic awareness into a multi-level diffusion framework. While the current model is limited by its training distribution and an inference time of approximately 11 seconds on an RTX 3090, it paves the way for more advanced systems. Future research will explore the integration of text-to-terrain prompts and expanding the variety of supported sketch categories to further enhance creative flexibility.
Summary updated