https://github.com/jackgerrits/opengl-car-game
A simple car sandbox implemented using OpenGL and C++
https://github.com/jackgerrits/opengl-car-game
cpp opengl
Last synced: about 2 months ago
JSON representation
A simple car sandbox implemented using OpenGL and C++
- Host: GitHub
- URL: https://github.com/jackgerrits/opengl-car-game
- Owner: jackgerrits
- Created: 2016-06-23T00:48:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-26T23:35:19.000Z (almost 4 years ago)
- Last Synced: 2025-03-18T21:52:07.689Z (2 months ago)
- Topics: cpp, opengl
- Language: C++
- Homepage:
- Size: 443 KB
- Stars: 37
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# opengl-car-game

Simple car game written in C++, using OpenGL 3.3.
Notable features include:
- Shadow mapping
- Water with dynamic reflection and refraction
- Dynamic particle system## Dependencies
##### Ubuntu/Debian
```
sudo apt-get install libglfw3-dev libglm-dev
```##### Vcpkg on Windows
```
vcpkg install --triplet x64-windows glfw3 glm
```## Build
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
```## Usage
```
./opengl-car-game basic|physics
```
__basic__ - No intertia, simple turning__physics__ - uses formula for more realistic driving experience.