google / liquidfun

2D physics engine for games
http://google.github.io/liquidfun
4.72k stars 640 forks source link

Unsatisfactory state #69

Open xiajiaonly opened 8 years ago

xiajiaonly commented 8 years ago

I recently in the study of SPH fluid simulation. Now encountered a very thorny problem. When the liquid depth is larger, the underlying state of particles is not stable, but violent vibration, end up some very not ideal state. I've tested the many programs, such as the OE - Cake, and LiquidFun,And many other implementations. All have the same problem. I want to know whether this is the flaw of SPH algorithm itself or the other? oe-cake liquidfun

tomnielsen commented 8 years ago

In the test app, there are setting for iterations. What values are you using? Have you tried increasing them significantly? I'm not suggesting it will fix the problem, I'm just wondering if you see different behavior.

Example of test app to which I'm referring. This is not my video.