Live data from Hacker News

Fast real time fluid simulator based on MPM algorithm

kotsoft.github.io

21–30 of 56 posts

Re: Fast real time fluid simulator based on MPM algorithm

#21
Let me highlight some positive things about this:

Love the interesting density stratification and the little bubbles that move around. Very foamy or multi-fluid looking.

Not sure if it's intentional but the fact a click/touch only sort of locks the nearby particles is very satisfying. The fact I can slowly absorb particles into the click region, that the particles still engage in the slow, sticky motion and evolve inside the region and that I can then fling them off is bizarrely good.

Sure it could use a bit of optimisation and tweaking to make it move and look more like a fluid but I think this is a fantastic proof of concept of this particular method as an online, interactive example.

Re: Fast real time fluid simulator based on MPM algorithm

#23

1. Doesn't look like fluid at all 2. Goes down to 40 FPS on my computer Granted this is web, but I think I can simulate that many particles with a simple loop in java on 60 FPS.

1. It does to me, but then again:

2. Goes down to 15 FPS on my old laptop.

3. The proof is in the pudding: please post the link to your Java code.

Re: Fast real time fluid simulator based on MPM algorithm

#26

It's neat, but also it's unstable and hyper-energetic. Particles go flying off into space for no reason even long after gross motion has settled on mobile. Two particles falling downward past each other impart upward momentum somehow. Also the fluids appear to be extremely compressible as to appear bouncy, like the whole thing is breathing, so not liquids, but also non-mixing and with surface tension, so not gasses?…

> Particles go flying off into space for no reason even long after gross motion has settled on mobile.

My intuition tells me this is how evaporation works.

Re: Fast real time fluid simulator based on MPM algorithm

#27

It's neat, but also it's unstable and hyper-energetic. Particles go flying off into space for no reason even long after gross motion has settled on mobile. Two particles falling downward past each other impart upward momentum somehow. Also the fluids appear to be extremely compressible as to appear bouncy, like the whole thing is breathing, so not liquids, but also non-mixing and with surface tension, so not gasses?…

My problem with it is that the substances coalesce into bubbles, but not into layers depending on weights.

Re: Fast real time fluid simulator based on MPM algorithm

#29

It's neat, but also it's unstable and hyper-energetic. Particles go flying off into space for no reason even long after gross motion has settled on mobile. Two particles falling downward past each other impart upward momentum somehow. Also the fluids appear to be extremely compressible as to appear bouncy, like the whole thing is breathing, so not liquids, but also non-mixing and with surface tension, so not gasses?…

My problem with it is that the substances coalesce into bubbles, but not into layers depending on weights.

They do actually. Red > orange > green > blue. Let it settle.

Re: Fast real time fluid simulator based on MPM algorithm

#30
post #26

It's neat, but also it's unstable and hyper-energetic. Particles go flying off into space for no reason even long after gross motion has settled on mobile. Two particles falling downward past each other impart upward momentum somehow. Also the fluids appear to be extremely compressible as to appear bouncy, like the whole thing is breathing, so not liquids, but also non-mixing and with surface tension, so not gasses?…

> Particles go flying off into space for no reason even long after gross motion has settled on mobile. My intuition tells me this is how evaporation works.

Except that it doesn't happen like evaporation at all, and it happens differently on mobile vs desktop.
Post reply on HN