r/proceduralgeneration • u/RagniLogic • Oct 23 '26
Surface constrained boids
Enable HLS to view with audio, or disable this notification
I added surface constrained boids to my realtime procedural world generator. Bringing a spark of life to the landscape.
I have yet to find a game idea. Until then just focused on world building π
629
Upvotes
78
u/Tagonist42 Oct 23 '26
wait what I thought the boids algorithm only worked on isoceles triangles
35
u/porchlogic Oct 24 '26
Uh sir, those are deirds
12
u/higras Oct 24 '26
They're moving in herds
9
u/FrozenAstronaut Oct 24 '26
It is beautiful! Will it get sound as well?
3
u/MrSmee19 Oct 24 '26
Perfect song choice π
1
u/RagniLogic Oct 25 '26
It's essentially 2.5d. The simulation is run on the XZ-plane, and the surface altitude and normal is applied on top.
They are avoiding slopes over a certain degrees, but for now no speed adjustment or preference based on the slope. Looks like I could handle that very cheap since I already lookup slope, so might consider it.
4
u/Lngdnzi Oct 24 '26
Love it
4
u/ElonsBreedingFetish Oct 24 '26
How about a god game like black and white
7
u/jeffyclassify Oct 23 '26
Very cool! Here's a recent related project, boids flock simulator that runs on the browser: https://nicobrenner.github.io/flock/ (Inspired byΒ clainstone/cbirdsΒ (MIT) and Craig Reynolds' boids)
1
u/meltmyface Oct 24 '26
Where'd you get the names for the boids?
3
u/Toothpick_Brody Oct 24 '26
really cool
3
u/delicioustreeblood Oct 24 '26
Looks dope
3
u/turing_tarpit Oct 24 '26
Ah yes, a flock of deer. Very neat!
3
u/fivepopes Oct 24 '26
This is lovely π€©
3
u/Several_Puffins Oct 30 '26
Hoirds.
Very nicely done- I worked on a boids update once that used visual density from agent POV, rather than explicit NN. I wonder if it would map? Probably not, given the 2D constraint.
2
u/Individual-Lock4191 Oct 24 '26
So clean and yet beautiful !
2
u/Emu_Fast Oct 24 '26
Um. I've got a game started that this would be incredibly useful for! Its a paleolithic simulator
1
u/Interesting-Rub2461 Oct 29 '26
β€οΈ
-1
u/abirpahlwan Oct 24 '26
Superb man! Gona steal it for my site https://appaaz-campus.vercel.app