MESA: Text-Driven Terrain Generation Using Latent Diffusion and Global Copernicus Data

Paul Borne-Pons, Mikolaj Czerkawski, Rosalie Martin, Romain RouffetWorkshops @ CVPR 2025

Abstract

MESA (Modeling of Elevation and Surface Appearance) is a novel generative model that produces realistic 2.5D terrain—simultaneous optical imagery and elevation maps—from natural language text prompts. By training a latent diffusion model on a massive, newly released global dataset of Copernicus and Sentinel-2 data, MESA provides a scalable, data-driven alternative to traditional procedural terrain generation.

Introduction

In the fields of video games and visual effects (VFX), creating realistic terrain is a complex and resource-intensive task. Traditionally, artists have relied on procedural techniques, such as noise functions, or physical simulations of erosion and tectonics. While effective, these methods require deep domain expertise, are computationally expensive, and often fail to capture the vast diversity of real-world landscapes.

Existing deep learning approaches have primarily focused on terrain "authoring" or editing. MESA aims to bridge this gap by treating terrain generation as a multimodal text-to-image problem. The model generates both the visual surface appearance (RGB) and the underlying physical shape (Digital Elevation Model, or DEM) from intuitive text controls.

Methodology

MESA is built upon the foundation of Stable Diffusion 2.1, adapted for 2.5D output. The architecture incorporates several key technical innovations:

  • Multimodal Latent Space: A standard Variational Autoencoder (VAE) encodes both RGB imagery and elevation data into a shared latent space. Elevation maps are treated as 3-channel inputs to maintain compatibility with pre-trained weights.
  • Modified U-Net Architecture: The core diffusion model utilizes a shared backbone to ensure perfect alignment between visuals and topography (e.g., ensuring shadows correspond to terrain features). Modality-specific heads—the final UpBlocks of the U-Net—allow the model to specialize in the unique characteristics of optical versus elevation data.
  • Masked Loss and Shadow Correction: To handle noisy satellite data, the authors employed cloud and "no-data" masks during training. Furthermore, applying shadow correction to the training data was found to significantly improve the quality and "re-lightability" of the generated terrains.
  • Geographical Prompting: Captions are procedurally generated from geographical metadata, including biome, geological features, country, and month (e.g., "A Sentinel-2 image of temperate forests and mountains in New Zealand in November").
Overview of the MESA pipeline, transforming text prompts into synchronized RGB and DEM outputs.

Datasets: Major TOM Core-DEM

The researchers introduced the Major TOM Core-DEM dataset, an extension of the Major TOM dataset. It pairs Sentinel-2 optical multispectral data (10m resolution) with Copernicus Digital Elevation Model data (30m resolution). The training set consists of 1.3 million 10x10 km² tiles, covering nearly the entire Earth's land surface (excluding Antarctica and open oceans), making it one of the largest open-source generative datasets for Earth observation.

Key Insights and Results

A primary finding of the study is that joint learning of RGB and DEM is essential for "semantic coherence." By training on both modalities simultaneously, the model learns the physical relationship between light and shape. For instance, a "mountain" prompt correctly produces both a high-altitude spike in the DEM and the appropriate visual texture in the RGB output.

Qualitative results demonstrate MESA's capabilities in terms of diversity and prompt adherence:

  • Diversity: Using different random seeds for the same prompt yields varied but equally plausible landscapes.
  • Prompt Adherence: The model accurately reflects complex descriptions of vegetation (e.g., broadleaf vs. conifer) and topography (e.g., plains vs. mountains).
Qualitative results showing terrain diversity and prompt adherence across different random seeds.

Limitations and Future Work

Despite its successes, MESA faces several challenges. There is an inherent resolution mismatch between the 10m optical data and 30m elevation data. Additionally, some generated samples inherit artifacts from the underlying Sentinel-2 processing. Finally, the lack of standard benchmarks for text-driven terrain generation makes quantitative comparison difficult. Future work will focus on developing metrics for geographical accuracy and physical plausibility.

The inference code and model weights have been released publicly to encourage further community-driven development in text-to-terrain generation.

Summary updated

BibTeX
@inproceedings{bornepons2025mesa,
  author = {Paul Borne-Pons and Mikolaj Czerkawski and Rosalie Martin and Romain Rouffet},
  title = {{MESA: Text-Driven Terrain Generation Using Latent Diffusion and Global Copernicus Data}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure