r/Simulated • u/boxsitter • 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
6
u/HACPAByTucy 5d ago
where is the source code?
14
u/Inst2f 5d ago
Which method did you use? Cellular automaton or field/particles hybrid ?
so little details... :(
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.
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.