Terrain Diffusion Network: Climatic-Aware Terrain Generation with Geological Sketch Guidance

Zexin Hu, Kun Hu, Clinton Mo, Lei Pan, Zhiyong Wang

Introduction

Generating realistic 3D terrains for virtual environments—such as video games and simulations—presents a persistent challenge in computer graphics. Developers typically choose between procedural generation, which is fast but often lacks geological character, and simulation-based methods, which are physically accurate but computationally intensive and difficult to control. While Deep Learning models like Generative Adversarial Networks (GANs) have attempted to bridge this gap, they often struggle with a "fidelity-controllability trade-off," where user-provided sketches result in artificial-looking outputs or are ignored in favor of realism.

The Terrain Diffusion Network (TDN) addresses these issues by introducing a multi-level diffusion process designed to capture "climatic morphogenesis"—the complex patterns created by environmental forces like erosion and tectonic shifts.

Overview of the TDN pipeline, showing the transition from multi-channel sketch guidance to a generated heightmap and the final rendered 3D view.

Methodology: Multi-Level Synthesis

The core innovation of TDN is its departure from monolithic denoising. Instead of a single network attempting to generate all details at once, TDN employs three specialized synthesizers:

  1. Structural Level: Establishes the primary layout, defining the placement of major mountain ranges and basins.
  2. Intermediate Level: Refines the coarse structural data to balance the overall terrain layout.
  3. Fine-Grained Level: Injects "climatic" details, such as small ridges and erosion patterns, which are essential for geological realism.

Latent Space and Direct Guidance

To maintain efficiency, TDN operates within a compressed latent space using specialized Terrain and Sketch Autoencoders. Unlike standard diffusion models that use cross-attention for conditioning—which can lead to spatial inaccuracies—TDN utilizes Direct Sketch Guidance. By concatenating user sketches directly with the noise-perturbed terrain data, the model ensures that geological features like rivers and peaks strictly adhere to the user's intended geometry.

The TDN sketch guidance system utilizes four distinct geological channels: ridges, rivers, peaks, and basins to guide the generation process.

Data and Training

The model was trained on a comprehensive dataset derived from NASA Topology Images, consisting of over 10,000 samples at a 1:6400 meter scale. To create the training pairs, the researchers used the Pysheds tool to extract ground-truth geological features (basins, peaks, rivers, and ridges) from raw elevation maps. This allows the model to learn the inherent relationship between structural sketches and realistic surface textures.

Results and Performance

TDN demonstrates significant improvements over existing state-of-the-art methods, including GANs and ControlNet:

  • Fidelity: TDN achieved a Frechet Inception Distance (FID) of 0.4402, outperforming traditional GANs (4.6599) and Stable Diffusion-based approaches (8.2326).
  • Controllability: The model reached a Structural Similarity Index (SSIM) of 0.8289, indicating high alignment with user sketches compared to ControlNet (0.4508).
  • Visual Realism: Qualitative analysis shows that TDN successfully replicates realistic weathering and drainage patterns that align with the underlying topography, avoiding the "blobby" textures common in GAN-based generation.

Conclusion and Future Directions

The Terrain Diffusion Network provides a powerful tool for artists and developers, offering a high degree of control without sacrificing geological realism. While the current model is limited by its training data and a fixed set of guidance types, future iterations may incorporate text-based descriptions or video guidance to further enhance creative flexibility. Despite an inference time of approximately 11 seconds for a standard map, TDN represents a major step toward automated, high-fidelity terrain authoring.

Summary updated

BibTeX
@inproceedings{hu2024terrain,
  author = {Zexin Hu and Kun Hu and Clinton Mo and Lei Pan and Zhiyong Wang},
  title = {{Terrain Diffusion Network: Climatic-Aware Terrain Generation with Geological Sketch Guidance}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i11.29150},
}
Figure