I'm trying to do fluid simulation using particles in 2d game. I have larger particles, which interactive each other physically, those particles collide with environment (e.g wall,obstacles) to simulate fluid.
However drawing things doesn't go well. I'm trying to figure out how to render the circles without the gaps in between. I've tried blurring the circles like so:
But the gaps remain. Also, blurring the particles causes the particles dimension to change visually every frame. Meaning the physics shape and the visual shape don't match up.
How can I render these objects as one?
finally, i got some effect like this, even artefacts exists:
here is my solution, steps as following: 1.draw water or fluid with SPH. 2. blur all of it. 3. does metaball with it.