This is a series on fluid simulation for games. This article describes how to approximate buoyant & gravitational forces on a body immersed in a varying density fluid. Bodies immersed within the fluid float or sink depending on mass of fluid displaced.
vorticity
Fluid Simulation for Video Games (Part 8)
This is a series on fluid simulation for video games. This article explains how a vortex-based fluid simulation handles variable density in a fluid. The fluid flow includes motion because of buoyancy-heavier fluid sinks, and lighter fluid rises.
Fluid Simulation for Video Games (part 7)
This is a series on fluid simulation for video games. This article explains how to integrate a fluid simulation into a typical particle system and introduces motion resulting from arbitrary external affectors (such as wind and forces).
Fluid Simulation for Video Games (part 6)
This is a series of articles on fluid simulation for video games. This article describes a radically different technique for computing velocity from vorticity, one of the cornerstones of the fluid simulation presented in these articles.
