- A c++ project simulating collision between balls in 2D and 3D.
- Built using openGL, glut and glui libraries.
- Glui implements a very simple and sover GUI which allow users to control different attributes of the balls.
-
User can play/pause the scene, change number of balls, change color of balls, increase/drcrease speed of balls.
-
User can select a particular ball by clicking on it and then change its corresponding attributes.
-
If no ball is selected then attributes of all the balls will change.
-
Supports four "Look & Feel" options - Default, Metallic, High Contrast, Pool/Billiard
-
2D and 3D mode.
-
Here is a screenshot of the application in the 2D mode.
- Here is a screenshot of the application in the 3D mode.
For compiling use make command. Once the program is running, following holds,
- Space Bar will toggle Play/Pause.
- In 3D mode, dragging the mouse will change orientation of the cuboid and scrolling will zoom in/out.
- In 3D mode, user can move the cuboid by arrow keys.
- Enter and Esc key will quit the program.
Any further suggestions are welcome. Give your feedback and criticism at - amanbhatia2510@gmail.com