Loading video...

Video Failed to Load

Go Home

Ah, all the artifacts were fixed by replacing one '<' with '<=', duh. It all works now, particle life completely on WebGPU! There are 2^18 (~260k) particles here; my PC struggles after about half a million particles. Will probably try to optimize it a bit later.

131,512 views • 1 year ago •via X (Twitter)

11 Comments

Tailcalled (@tailcalled.bsky.social)'s profile picture
Tailcalled (@tailcalled.bsky.social)1 year ago

I always feel like this sort of thing is more accurately called "artificial chemistry" than "artificial life", since it's lacking genetics and metabolism. Unfortunately seems too computationally intractable to have a chemically reductive life simulation.

Nikita Lisitsa's profile picture
Nikita Lisitsa1 year ago

Well, it's not me who coined the name "particle life" for it! Not sure about "artificial chemistry" either - the model lacks any chemical reactions. Anyway, it's more of a toy rather than serious research, and it does look "life-like", so I'm happy with calling it that!

RedDeer.Games's profile picture
RedDeer.Games2 years ago

We can't spill the beans about the release date of Maki: Paw of Fury, but make no mistake, things are happening! 🫘😎 We remind you that the game is coming to #NintendoSwitch and #PC #Steam and you can play the demo on PC, here ⤵️ >>> Have a great day!

Federico Marino's profile picture
Federico Marino1 year ago

very interesting. I wonder how you handle particle interactions. Do you use some acceleration structure like KD Trees to check neighbour particles?

Nikita Lisitsa's profile picture
Nikita Lisitsa1 year ago

I used a k-d tree in my CPU implementation, but it's hard to port to GPU. Here I'm using spatial binning (put particles in a grid, only traverse neighbouring cells for interactions)

kache's profile picture
kache1 year ago

thanks for sharing, this is awesome cc @benrayfield

Luca's profile picture
Luca1 year ago

you planning something with this or is this good ol'fashion recreational programming (which i fully endorse ofc)

Nikita Lisitsa's profile picture
Nikita Lisitsa1 year ago

Recreational mostly, yep! Hope to optimize it a bit and maybe make a 3D version, but we'll see...

Shalin Shodhan's profile picture
Shalin Shodhan1 year ago

That reminds me of the cell stage in Spore

Elliott's profile picture
Elliott1 year ago

That’s so mesmerizing…are you sharing the code anywhere?

Nikita Lisitsa's profile picture
Nikita Lisitsa1 year ago

Sure:

Related Videos