this post was submitted on 16 Jul 2025
17 points (100.0% liked)
Procedural Generation
161 readers
7 users here now
A community to discuss and share anything procedural generation related, for example game worlds and assets, or simulations whether scientific or ludic.
From Wikipedia:
Procedural generation is a method of creating data algorithmically as opposed to manually, typically through a combination of human-generated assets and algorithms coupled with computer-generated randomness and processing power.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, swiggle is pretty much exactly that. The coordinates, amplitudes, and radius are randomized (based on the map seed, so it is reproducible). It makes a good distortion on top of things like mountain range positions. You don't see the swirls in practice.
Yeah, I mathematically compute a gradient vector. Which is actually one of the very easy things to do in python. I then bias Voronoi cell centre point density based on the amplitude of the local gradient.
The same gradient calculations would be used in a real erosion/deposition model. Where the gradient is high, erode. Move those particles down gradient. Deposit particles where gradient is less steep. Repeat a thousand times. Marvel at emergent phenomenon like river valleys and deltas. It's the "repeat a thousand times" that python really struggles with. It's fine to run it once and wait. But I don't want it to be days of modeling per map :)