Skip to content

Comment on Liquidfun – 2D physics engine for gamesparent

Comments

Yep, those kind of 2d metaballs are indeed doable in GLSL - I have a WebGL proof-of-concept lying around. I really struggled to get good performance, though my shader-fu isn't up to much.

Metaballs are too expensive for more than a few particles. There are probably some other algorithms that would work better, or not doing metaballs strictly.

I found metaballs as very efficient when using pixel shader. I did port my js fluid simulation to C++ and used cocos2dx with shaders to do it for iphone. Works good.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.