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.

Click here to download

Soft Body Physics

This was written as part of my B.E seminar on physics simulations. It implements a simple 2 dimensional soft body physics simulation using Euler's method (very inaccurate) to solve differential equations of spring mass systems. The download includes the source code, executables, and the seminar report detailing how the code is written.

Click here to download

ChaosFX2: Particle System

ChaosFX2 is a generic particle simulator. It was written to practice Object Oriented programming in C++. It is based on the emitter-spacewarp model of 3DS-Max. The image below shows the particle system being used to simulate fluid in a 2D container. The simulation used here is based on n-body attraction/repulsion.

Click here to download

Sudoku Solver

This app was built during an initial sudoku puzzle craze. It uses a brute-force backtracking method to solve the board. It can solve any 9x9 sudoku puzzle, and even solves the supposedly 'hardest' puzzle to solve for a brute-force algorithm, in about 5-10 seconds.

Click here to download