Fluid Simulation for Games

Every once in a while, it disturbs me that there are parts of the computer graphics world that I rarely delve into, and simulation near the top of the list. I did spend some time fifteen years ago trying to understand inverse kinematics and the like, mostly in the context of robot motion planning, but all that knowledge has long faded. Still every once in a while, I try to dust off my brain and read a few papers on topics I’m not comfortable with, and maybe even stare at some code.

Fluid in a BoxLuckily for me (and many others) there is a lot of good work being done and published. In the world of fluid simulation, some of the most accessible work has been done by Jos Stam, who kindly made his publications, notes, and code available on his webpage. His demo code is about 100 lines of C, includes nothing all that mysterious, and can be adapted to do more complex fluid flows. Check out this short movie to see it in operation. I’m thinking of adapting it to make a spiffy screensaver, mostly as an excuse to delve into its mysteries.

2 thoughts on “Fluid Simulation for Games”

  1. I am doing an report of the physics of gaming and fluid simulation has come up alot in my research, but im not really shore what it is, caould you please tell be or give me an hyperlink to an useful site

    many thanks,

    David

Comments are closed.