r/truegamedev • u/DV-Gen • Apr 13 '22
Using Wavefunction Collapse for Procedural Terrain
https://www.youtube.com/watch?v=20KHNA9jTsE
61
Upvotes
r/truegamedev • u/DV-Gen • Apr 13 '22
View all comments
Show parent comment
1
u/DV-Gen Apr 13 '22
Thanks. If you have some nice terrain noise, what about running a hydraulic erosion simulation over it? It can shape the terrain, and also tell you where water should go. I've really liked that approach.
I've had some good luck and not good luck with flow of rivers with wave function collapse. It can be tricky to balance the tiles just right. Sometimes wave function collapse will come up with a correct solution, but not one that you want. I think Oscar Stålberg did a lot of work in Bad North to discard and regenerate islands that were correct, but not playable in the way he wanted. Long term, I may have some other method, like a height map, telling wave function collapse things like the overall height of terrain, and approximately where to place water. I think layered generation from multiple algorithms can be really powerful.