Talus: a 23M-parameter diffusion model for game terrain, evaluated against a real-vs-real noise floor, running in the browser on WebGPU [P]
Talus generates 64x64 heightmaps (4 km, up to 1,200 m) conditioned on a terrain type and any subset of five measured properties: mean elevation, relief, mean slope, water fraction and spectral slope. I trained it from scratch on one RTX 5060 (8 GB), about 4.5 hours in total across versions.
This article introduces Talus, a 23M-parameter diffusion model designed for generating game terrain heightmaps with specific geological properties, trained on consumer-grade hardware and deployable in web browsers.
What happened
The article presents Talus, a diffusion model for terrain generation that accepts geological parameters as input, is trained on a consumer GPU, and demonstrates browser-based inference. It includes technical details about training methodology, evaluation metrics, and implementation challenges.
Why it matters
The model demonstrates the feasibility of deploying complex AI terrain generation in web environments, which could impact game development workflows and real-time procedural content creation.
- Diffusion models can be effectively trained on consumer GPUs for specialized tasks
- Browser-based AI inference requires careful model optimization and quantization
- Terrain generation benefits from conditional inputs and statistical normalization
- Open challenges remain in capturing fine-scale geological features
The bigger picture
The work shows how diffusion models can be optimized for low-latency web deployment while maintaining geological fidelity, potentially influencing procedural content generation in games and simulations.
Talus demonstrates a practical approach to terrain generation using diffusion models, combining efficient training, web deployment, and geological conditioning while highlighting remaining technical challenges.
Technical details
- Pixel-space U-Net architecture with v-prediction
- DDIM sampler with 50 steps and quadratic spacing
- Classifier-free guidance (2.0)
- ONNX export with fp16 weights and WebGPU acceleration
- Relative height normalization using training set statistics
FAQ
What hardware was used to train Talus?
The model was trained on a single RTX 5060 (8 GB) GPU over 4.5 hours total across versions.
How is Talus evaluated against real terrain data?
It uses W1 distance metrics, power spectrum analysis, and slope distributions compared to real map subsets, normalized against a 'noise floor' benchmark.
What are the main limitations of the current model?
The model struggles with ridge generation, fine spectral bands, and achieving appropriate graininess in plains and mountain textures.
How is Talus made available for web use?
It uses ONNX Runtime Web with WebGPU acceleration, achieving 3-second generation times on GPU and CPU fallback.
What geological properties can be conditioned on?
The model accepts terrain type and any subset of five properties: mean elevation, relief, mean slope, water fraction, and spectral slope.
This summary and analysis were generated with AI from the original article and may contain errors. Read the original for the full story.
Read the full story
Originally published by Reddit - r/ML on Oct 9, 2026.
Comments
Sign in to join the discussion.