Animation
Alethea Bair
Assignment
The animation program was assigned as the third machine problem for Introduction to Computer Graphics. It was written in C++, and uses OpenGL, and the GFX library written by Prof. Michael Garland.
The program allows the user to move around in a scene where motion of objects can either be defined by splines, or particle dynamics. Hermite splines were used, and three types of particle (water, fire, and bouncyball) were implemented. These differ in their reactions to hitting a boundary. A force was defined in the downward direction, and the water particles were given a positive mass, while the fire particles have a negative mass.
Try It Out
Works with Windows 2000 or newer, and is rather slow without a graphics accelerator.
Download animation.zip (400KB).
Go the the view menu, and select animate.
Use the arrow keys to move forward and back, and turn left and right.
Use u, j, h, k to move up, down, left, right. Pressing the Alt key, and then using the arrows does the same thing, but this doesn't work well when the animation runs very slowly.