Sunday, February 13, 2011

Liquid Colors

One of my "Game Physics" course assignments was about fluid dynamics and I developed an interesting study using this topic.

Program is written in java so it works on PC, Mac and Linux platforms. Program presents the user a surface which holds a color density field and a velocity field. User is able to control these fields. By this way he or she can create interesting visuals. The color density acts as particles and moves along the velocity field. While particles with different color densities moving each other, some diffusion occurs. So in some parts, colors may blend. Jos Stam’s paper is taken as base model for implementing the fluid dynamics methodology, but since it is for smoke simulation it is not directly used. Related parts are used and some changes are done.

You can add color density and velocity to the surface by the help of mouse. Right click for velocity, Left click for color density. You can select a color and continue to work on the surface with that color. Selected color is shown at the bottom of the window. You can change the selected color by clicking on it. After you select a color, the points you drop onto the surface by left mouse clicks will have that color tone.


ps:This project is given as term project on another course Game Aesthetics (GATE 511)

0 comments:

Post a Comment