Found this nice little set of articles on Fluid simulation. Some of the concepts might be of some use.
(Parts 2-15 linked from within the original article - all articles available as PDF's and plenty of code examples).
http://software.intel.com/en-us/articles/fluid-simulation-for-video-games-part-1Enjoy!
WhiteTree Games - Home, home on the web, where the bits and bytes they do play!
#MakeABetterGame! "Never give up, Never
NEVER give up!" -
Winston Churchill
Comments
And about fluid simulation, there are two popular particle based approaches: SPH (Smoothed-particle hydrodynamics) and PIC/FLIP (Particle-in-cell/Fluid-implicit particles). Although there are more information about SPH on internet, my favorite is PIC/FLIP.
Here is an efficient and complete and ready to use 2d PIC/FLIP water simulation code from Robert Bridson:
http://www.cs.ubc.ca/~rbridson/download/simple_flip2d.tar.gz
http://www.cs.ubc.ca/~rbridson/
And here is a 2d PIC/FLIP fluid simulation binary from Ryoichi Ando to play with:
http://vacation.aid.design.kyushu-u.ac.jp/~and/sheetflip/sheetflip_bin.zip
http://vacation.aid.design.kyushu-u.ac.jp/~and/sheetflip/
And here is a 3d PIC/FLIP fluid solver again from Ryoichi Ando: http://code.google.com/p/flip3d/
Also afaik this iPad game http://www.liquidsketch.com/ uses PIC/FLIP.
Likes: phongtt, techdojo, deniz