/Bouncing-Ball-Animation

A c++ project built using openGL, simulating collision between balls in 2D and 3D.

Primary LanguageC

Bouncing-Ball-Animation

  • 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.

Features

  • 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.

alt text

  • Here is a screenshot of the application in the 3D mode.

alt text

Instructions

For compiling use make command. Once the program is running, following holds,

  1. Space Bar will toggle Play/Pause.
  2. In 3D mode, dragging the mouse will change orientation of the cuboid and scrolling will zoom in/out.
  3. In 3D mode, user can move the cuboid by arrow keys.
  4. Enter and Esc key will quit the program.

Any further suggestions are welcome. Give your feedback and criticism at - amanbhatia2510@gmail.com