Tuesday, May 5, 2009

Project 3: Boids


For project 3, I decided to implement the 3-d boids algorithm. This allows objects to simulate natural flocking behavior using the 3 rules of alignment, cohesion, and separation. My boids represent fish in a fish tank that travel as a school. I also introduced a predator to the tank which the "fish" avoid. I could not get the obj loader library from processing to work, so they are representsed as cubes for now. Here is a screen shot.

Project 2: OBJ Viewer

For project 2, we had to implement a program that would read and display an OBJ file and allow the user to control the camera using OpenGL and C++. Here are some screen shots: