WaterSim is “realistic” water simulation program in real time. It is based on the work done by James F. O’Brien and Jessica K. Hodgins. It features OpenGL rendering of fluid motion, and in addition you can drop objects in water! The method uses pipes connecting columns of fluid. The implementation in C++ is fairly straightforward, there is plenty of room for optimization. Part of sources are available for download.

Here is a list of active keys: