Show HN: Splash – A Real-Time Fluid Simulation in Browsers Implemented in WebGPU

Hello,

I’ve deployed a real-time water simulation for browsers. Works on your browsers which support WebGPU.

– demo: https://splash-fluid.netlify.app/

– code: https://github.com/matsuoka-601/Splash

– demo video: https://www.youtube.com/watch?v=9C7DRSdh88g

To my knowledge, this is one of the largest scale fluid simulations for browsers. Around 70,000 particles can be simulated in real-time on my laptop with only an integrated graphics. With a discrete GPU, 180,000 particles can be simulated in real-time.

An algorithm called MLS-MPM (Moving Least Squares Material Point Method) enabled this level of real-time performance in browsers. For real-time rendering of the fluid, a technique Screen-Space Fluid Rendering is used.


Comments URL: https://news.ycombinator.com/item?id=43451057

Points: 1

# Comments: 0