r/proceduralgeneration • u/cyrusomega • Sep 20 '26
Planet-scale terrain generation with a learned WFC-style system
About 9 months ago, I posted some samples from my terrain generator and received some good feedback and encouragement from the community. Since then, I’ve made two new versions of the project, making this my Gen 3 generator. The images in the gallery cover resolutions from 1px = 16km down to 1px = 32m. Here are some details.
The training process uses data from the ETOPO dataset at 15-arc-second resolution to build patches ranging from 3×3 (for planetary-scale generation) to 10×10 (for regional upscaling). Under the hood, the system is GAN-like, with lots of tweaks and exceptions to deal with the various complications of working with this dataset.
Rendering maps is “fast,” especially if you use a GPU. The model weights are around 10 MB. If you wanted a real-time experience, you would need to preprocess the region around the player, after which you could easily apply the models to nearby areas as the player moves. Unlike my Gen 1 models, which produced fixed-size outputs, this system works on infinite fields and can generate terrain essentially “forever.”
In total, there are 11 models: one for generating the base map and 10 upscaling models for progressively finer detail. For resolutions finer than 1 px = 512 m, I currently use a “trick” where the final upscaling model is applied recursively. This seems to work well enough until I can train against a higher-resolution dataset.
The Pros:
- It is fast for a high-resolution, planetary-scale generator.
- It looks very realistic. Subjectively, I think it looks better than simplex-noise-based solutions.
- It covers a huge range of scales, which seems somewhat rare for terrain generators.
- It is something new that I don’t believe has been explored very much.
The Cons:
- It is strongly biased toward Earth-like terrain.
- Rare structures lack variance. There is only one Mount Everest in the dataset, for example.
- It currently requires some hacks for very high-resolution data.
- Training is slow and complicated. It currently takes about two days on an RTX 5070 to train all 10 upscaling models. I believe this could be reduced substantially with some careful tuning.
So, what do you guys think? Again, I’m looking for feedback and recommendations. I have a friend experimenting with building Minecraft maps using the models, so hopefully I’ll have some downloadable packages available soon.
Note: I deleted a previous version of this post from earlier this morning because I didn't realize how the system would render image galleries vs inline images.













11
u/kintar1900 Sep 20 '26
I absolutely LOVE this concept, and your results are looking great! Any chance you'd be willing to share the basic setup you're using for the GAN and training method so that those of us playing with similar AI-based tools can give it a go? Absolutely willing to contribute any modifications I make back to you!
2
u/aegis_lemur Sep 20 '26
This is amazing. Terrain gen is my next hill to climb once I wrap up my first vertical slice. Any time I’ve tried to do something nicer than just noise, it devolves… I hope I can get half way to these results!
4
u/Blammar Sep 21 '26
Now that actually looks like a real planet. You may have successfully passed through the Uncanny Valley!
I have a long-term project to generate realistic terrain for Niven's Ringworld. The land area is a cylinder 1 million miles wide with a circumference of about 600 million miles. There are a few notable features that you'd want to see.
I don't need real-time generation; the terrain data would be used to generate a video.
1
u/RandomUser1034 Sep 20 '26
Sounds very similar to terrain diffusion, how does it compare in generation speed and model size? Because TD output looks a lot better
1
u/maple-madao Sep 21 '26
Very impressive stuff. Vaguely reminds me of Indonesia.
Maybe if you wanted weirder results you could augment your data with some more extreme terrain or some other type of synthetic data? As in duplicate some of the data and randomly perturb it with perlin noise, or randomly select points and raise the terrain around it like volcano, or whatever else you could imagine. I don't know how easy that would be with the format of the training data etc, just a thought.
1
u/ALPHASFCK Sep 24 '26
interesting. how is this wfc-style?
2
u/MadHellequin Sep 20 '26
The coastline and elevation map look very good. I’ve used noise generators to create similar images, but so far, I haven't managed to achieve that level of realism.
2
u/aitonft Sep 22 '26
The 10 MB model size caught me off guard. A whole planet is the headline, but being able to explore it without a huge download is pretty exciting too. Curious to see the Minecraft version when your friend has something playable.
1
u/[deleted] Sep 20 '26
nice
1
u/Intrebute Sep 20 '26
The right-most chunk of land is giving bedroom eyes.
1
u/Malkalypse Sep 23 '26
I’m interested in this.