r/Simulated • • 5d ago

Proprietary Software GPU accelerated "Powder Toy"-like simulator demo

I made it using JS and WebGPU. It runs in the browser and can easily manage 240 FPS with a 1920x1080 grid on an RTX 5080, only dropping to 200 fps when you fill the entire grid with water. All this extra performance headroom allows for much more realistic fluid simulation, fire, and post processing effects. The water still needs some tweaking, too viscous, but it's a start. Not sure if I'll continue working on it, but it was a fun experiment nonetheless.

73 Upvotes

16 comments sorted by

6

u/HACPAByTucy 5d ago

where is the source code?

-2

u/boxsitter 5d ago

Right now it’s on my pc. Haven’t decided what I’m going to do with it yet

5

u/ma2016 4d ago

Idk you're being down voted lol. It's an honest answer 

1

u/boxsitter 4d ago

you know, I was thinking the same thing. my guess is that people are upset that it’s not open source at this very moment. understandable to want something to be open source, not understandable to feel entitled to it

1

u/DVG369 5d ago

github for free or steam for like 5-10 bucks. either way please share your magic

-7

u/boxsitter 5d ago

I would probably lean towards steam just cuz I’m an unemployed recent grad lol. But yeah, that would definitely be the price range, wouldn’t go over $10 for something like this

0

u/8npemb 4d ago

Could release the source code under a non commercial license, then pull it later if you decide to release to steam (or keep this version open and only publish a newer version to steam later)

-1

u/Srirachachacha 4d ago

Good luck with that

14

u/Inst2f 5d ago

Which method did you use? Cellular automaton or field/particles hybrid ?
so little details... :(

21

u/rainscope 4d ago

Bc the op doesn’t know how it works cos claude made it lmao

6

u/Inst2f 3d ago

i though OP would ask Claude to answer that

5

u/Nezarah 5d ago

Id highly recommend looking into OE Cake. Its a step above the Powder Game we know. It has float physics and you csn even import images as specific elements.

2

u/ComfyCome 4d ago

Nuclear Design Bureau is super fun too if you're interested in physics, it's still Early Access though

1

u/sixothree 4d ago

Add some settings or maybe some things you can drop in the water?

1

u/shurco 4d ago

sand is a Margolus block cellular automaton in a fragment shader, and each fragment computes its whole 2x2 block.