17
Aug
2006
johan

Balls, balls, balls

This project was completed for the course "Simulation and Modelling" in 2003 together with four other students. Despite the obviously funny name, this was a serious project. This was my first real exposure to C++ and OpenGL, yet I'm rather pleased with the result.

We set out to make a real-time simulation of an "ocean-of-balls" similar to those one can find at McDonalds where children can play. The complexity grows as the number of balls increase. Therefore this project mostly came to deal with optimization of the code and datastructures.

With the faster PC:s of the time we could simulate around 500-600 balls in real-time (25 frames a second).

Even if this was a relatively simple problem, collisions between spheres aren't exactly complicated, I learned a lot about omptimization and code efficiensy.