Traditional 2D raycaster engines run on CPU so they have a bottleneck on loading screen texture from CPU to GPU for each frame.
This raycaster engine is implemented using compute shaders so it does not have this bottleneck as it runs on GPU.
Textures belong to Wolfenstein 3D
.
Raycaster codes are taken from Lode Vandevenne's tutorials and adopted.
- Install
CMake 3.25.1
or above. - Install
Visual Studio 2022
andMSVC C++ v143 Compiler
. - Install
Qt 5.x.y MSVC2019 64bit
kit. - Set environment variable
Qt5_DIR
asC:\Qt\5.x.y\msvc2019_64
. - Clone the repo
git clone https://github.com/berkbavas/RaycasterEngine.git
. - Create a folder
mkdir Build
. - Enter the folder
cd Build
. - Run CMake
cmake ..
. - Open
RaycasterEngine.sln
withVisual Studio 2022
. - Build & Run with
Release
config.
2D Raycaster
,
2D Rendering
,
Compute Shaders
,
OpenGL
,
GLSL
,
Wolfenstein 3D
.