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.
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.
Gravacao.do.ecra.2024-06-07.as.15.38.40.mov
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
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.
Copyright © 2024 João Fernandes & Tiago Mendes.
This project is MIT licensed.