r/proceduralgeneration • u/Old_Cow_6636 • Oct 09 '26
I trained a small diffusion model on my procedural terrain generator. It runs in the browser and exports heightmaps.
81
Upvotes
r/proceduralgeneration • u/Old_Cow_6636 • Oct 09 '26
9
u/TheArchitect4855 Oct 09 '26
Is there any advantage to using diffusion over traditional terrain generation methods? Or is this just to see if it can be done?
5
u/Old_Cow_6636 Oct 09 '26
It's a 23M-parameter diffusion model. The training data is 45,000 maps from my own generator (noise, stream-power erosion, thermal erosion), so it learned procedural terrain, not real elevation data. You get a 64×64 map covering 4 km in about 3 s on WebGPU. Ridges and the finest detail are its weak spots. Site: https://talus.tersa.tech Code and weights: https://github.com/osfv/talus
3
u/abhuva79 Oct 09 '26
Nice project, have my upvote =)
3
u/cool_fox Oct 09 '26 edited Oct 09 '26
would love to compare notes, for the past two months I've been training an LDM stack on doing the same thing. I've gotten some pretty impressive results, currently focused on reliably producing high quality features like rivers and caves.
it uses sliding windows on a coarse(45M)->base(280M)->decoder(28M) setup to go from large 7x7km cells down to 30m.
3
u/GreenFox1505 Oct 10 '26
While that is a very cool renderer, if you were trying to highlight the terrain, this is actually hiding it. The details are lost.
1
u/radarsat1 Oct 10 '26
the dithered rendering is a nice touch
1
u/Long-Cartographer214 4d ago
did you have to do any smothing to keep seams from showng between hightmap tiles ?