Simple car game written in C++, using OpenGL 3.3.
Notable features include:
- Shadow mapping
- Water with dynamic reflection and refraction
- Dynamic particle system
sudo apt-get install libglfw3-dev libglm-dev
vcpkg install --triplet x64-windows glfw3 glm
If dependencies are visible to CMake by default, can build like so:
git lfs pull
mkdir build
cd build
cmake ..
make
Otherwise, you'll need to point CMake to the Vcpkg toolchain file to find the dependencies and specify the triplet. For example on Windows:
git lfs pull
cmake .. -DCMAKE_TOOLCHAIN_FILE="[vcpkg root]\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows
.\opengl-car-game.sln
./opengl-car-game basic|physics
basic - No intertia, simple turning
physics - uses formula for more realistic driving experience.