Saturday, December 28, 2019

How to render 2D particles as fluid?



Suppose you have a nice way to move your 2D particles in order to simulate a fluid (like water). Any ideas on how to render it?


This is for a 2D game, where the perspective is from the side, like this. The water will be contained in boxes that can be broken in order to let it fall down and interact with other objects. The simplest way that comes to my mind is to use a small image for each particle. I am interested in hearing more ways of rendering water.



Answer



Check out how PixelJunk Shooter did it (including simulation) in this presentation (PDF) at GDC2010.




Sample PixelJunk Shooter Image


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...