Real Time 3D Fluid Dynamics Simulation

Should i do the simulation on the client or the server because rn im doing it with a serverscript.

That is incredible. 20ms frame time with 500 particles

2 Likes

Could i see? just curious around here.

1 Like

Kinda dont want to make another video. once i have more to show off

1 Like

This looks great! Nice job on this!

1 Like

Client, unless you want the same physics being applied to everyone.

Have you found a way to stop fluid droplets from clipping trough surfaces? Like intersection of 4 balls?

What do you mean by that. I mean it doesn’t clip through terrain. I haven’t make them squish if that’s what you mean. Can you clarify more?

I tried to simulate an ocean and just jumped and this happened.
Screenshot 2024-07-04 181752

3 Likes

You should implement XPBD, it’s by the same author in the paper you mentioned

Try to place 4 spheres with radius of 25 at following positions:
15, 0, 15; 15, 0, -15; -15, 0, -15, -15, 0, 15
And then spawn water ± in the middle with 1-2 studs offset.
This test case ruined my water system, and I haven’t found fix for it.

Is this for fluids or soft-bodies and cloth?

Anything that involves deformation can be implemented using XPBD and the use of constraints. So fluids, soft bodies, cloths, ropes, and even rigidbodies I’ve heard

Hmm, seems like a multipurposed tool. Im using the one currently so i can simulate oceans.

Simulating ocean is not going too well

nvm going better

I suggest not using glass material, as it uses more memory.

Do you plan on open-sourcing this?

I’ve had a few ideas with possible editablemesh implementations but haven’t gotten to them due to my lack of knowledge in creating fluid dynamics solvers (or just fluid dynamics in general…).

I have been looking for ways to use editable mesh since I don’t know how to use it, but I don’t plan on open-sourcing this project.

This Chat will be migrated to