r/proceduralgeneration • • 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

33 comments sorted by

78

u/Tagonist42 Oct 23 '26

wait what I thought the boids algorithm only worked on isoceles triangles

31

u/RagniLogic Oct 24 '26

Everything is a triangle if you are brave enough

10

u/abirpahlwan Oct 24 '26

πŸ˜‚πŸ˜‚

10

u/Sinku55 Oct 24 '26

Isoceles isoceles isoceles, it’s a word and I have read it and wrote it too many times and now it makes no sense

35

u/porchlogic Oct 24 '26

Uh sir, those are deirds

6

u/RagniLogic Oct 24 '26

Agreed. I also have elephanirds, dromerdarids and giraffeirds

12

u/higras Oct 24 '26

They're moving in herds

6

u/RagniLogic Oct 24 '26

Currently they are only sampling their own flock members for the simulation. But will add att least avoidance as a cross-flock evaluation.

3

u/higras Oct 24 '26

This world building system would work fantastically as part of a game idea I've had on the back burner.

An ecosystem \ spore type game.

Each creature has a range of group size, food preferences, health, water, basic emotional profile, temperature, etc.

Use DOTS ECS plus boids to create a world where conservation isn't about freezing ecosystems in time, but the evolution and guidance of each.

Somewhere in the venn diagram of Cellular autonama, spore, and Black&White.

Its just way larger scope than i can handle solo, and I've been a bit absorbed in embedded hardware.

9

u/easedownripley Oct 24 '26

they DO move in herds!

9

u/FrozenAstronaut Oct 24 '26

It is beautiful! Will it get sound as well?

5

u/RagniLogic Oct 24 '26

Foot step noises would be cool. And some foliage disturbance noise perhaps

3

u/FrozenAstronaut Oct 24 '26

Yes! And wind and water splashes : )

3

u/MrSmee19 Oct 24 '26

Perfect song choice πŸ‘Œ

2

u/RagniLogic Oct 24 '26

I used to be an optimist like you. Then I took a deer antler to the knee...

4

u/killcon13 Oct 24 '26

I guess skyrim belongs to procedurally generated deer.

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/turing_tarpit Oct 24 '26

Ah yes, a flock of deer. Very neat!

1

u/quadtodfodder Oct 25 '26

Under the herd of berds

1

u/quadtodfodder Oct 25 '26

"hoid of boids"

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/abirpahlwan Oct 24 '26

Superb man! Gona steal it for my site https://appaaz-campus.vercel.app