Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berkbavas/raycasterengine
2D Raycaster Engine Implemented Using Compute Shaders
https://github.com/berkbavas/raycasterengine
compute-shader compute-shaders opengl qt raycaster raycaster-engine
Last synced: 3 months ago
JSON representation
2D Raycaster Engine Implemented Using Compute Shaders
- Host: GitHub
- URL: https://github.com/berkbavas/raycasterengine
- Owner: berkbavas
- Created: 2022-09-25T19:49:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-09T17:38:48.000Z (3 months ago)
- Last Synced: 2024-11-09T18:29:54.933Z (3 months ago)
- Topics: compute-shader, compute-shaders, opengl, qt, raycaster, raycaster-engine
- Language: C++
- Homepage:
- Size: 6.56 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 2D Raycaster Engine
Traditional 2D raycaster engines run on the CPU, so they have a bottleneck when loading screen textures from the CPU to the GPU for each frame.
This raycaster engine is implemented using compute shaders, allowing it to avoid this bottleneck since it runs on the GPU.Textures belong to `Wolfenstein 3D`.
Raycaster codes are taken from [Lode Vandevenne](https://lodev.org/)'s [tutorials](https://lodev.org/cgtutor/raycasting.html) and adopted.
## Build
1) Install `CMake 3.25.1` or above.
2) Install `Visual Studio 2022` and `MSVC C++ v143 Compiler`.
3) Install `Qt 6.7.3 MSVC2022 64bit` kit.
4) Set environment variable `Qt6_DIR` as `C:\Qt\6.7.3\msvc2022_64`.
5) Clone the repo `git clone https://github.com/berkbavas/RaycasterEngine.git`.
6) Create a folder `mkdir Build`.
7) Enter the folder `cd Build`.
8) Run CMake `cmake ..`.
9) Open `RaycasterEngine.sln` with `Visual Studio 2022`.
10) Build with `Release` config.## Screenshot
## Keywords
`2D Raycaster`,
`2D Rendering`,
`Compute Shaders`,
`OpenGL`,
`GLSL`,
`Wolfenstein 3D`.