/Mini-Billiard

🎱 A small billiard project created for the 3D Programming class with OpenGL.

Primary LanguageC++MIT LicenseMIT

🥢🎱 Mini Billiard

🔖 Description

This project was designed for a practical assignment for the subject “3D Programming”, which consists of creating a scene with a table and billiard balls, using the contents of OpenGL with VAOs, VBOs, EBOs/IBOs, Shaders, etc.., and then applying collisions and animations to the balls to simulate a shot.

⌨️ Keys

The keys are very simple, here is a list of the keys that is being listened:

  • Mouse - Left Click + Drag: To rotate the camera depending on which side you are dragging.
  • Mouse Scroll: To change the zoom of the scene.
  • Space: To animate a random ball.
  • Key 1: To enable/disable the ambient light.
  • Key 2: To enable/disable the directional light.
  • Key 3: To enable/disable the point light.
  • Key 4: To enable/disable the spot light.

🕹 Images & Videos

1 2

Gravacao.do.ecra.2024-06-07.as.15.38.40.mov

⚙️ How to build the project

git clone https://github.com/0rangeFox/Mini-Billiard.git
cd Mini-Billiard
git submodule update --init
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make && sudo make install

📁 Materials

The materials provided in the project are for testing purposes only and were made available by the teacher. I don't know their origin, only the shaders were made by us. If any of the respective files are not authorized to be published, please let me know so that I can make the necessary changes accordingly.

📝 License

Copyright © 2024 João Fernandes & Tiago Mendes.
This project is MIT licensed.