Three.js Fluid render

dli/fluid: Fluid Particles - http://david.li/fluid

How to render this in Three.js? Do you have any demo cases?

1 Like

loyd/sph-mc:WebGL SPH + MC

1 Like

There is a Three demo here. But the author didn’t seem very “open” about sharing the code.
It’s old (2018) and probably not use webGPU despite the title, it could be webGL

The only recent MIT open source is available here (webGPU):
Despite it’s raw JS/TS/WGSL code, It should be possible to adapt it with some work.

Something tell me Babylon.js folks yoinked it from here.

1 Like

Thank you, I have read these. I need the WebGL version first, and then the WebGPU version. For the first one that is not open source and very old