Water height-field simulation
This is a demo that I wrote during my 6th and 7th semester B.E exams. It simulates a water height field using cellular automata. A low-res height field is simulated over an image, and bilinearly interpolated to get height at all points of the image. You can drag the mouse pointer around to affect the height field. There are currently two versions of this program, water8 and water9 (which actually implies that I was jobless enough to write 7 prior versions). Both differ only in the way ray-tracing occurs. Water8 uses a cheap approximation while water9 uses snells law of refraction to calculate the refraction due to water.