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's tutorials and adopted.
- Install
CMake 3.25.1
or above. - Install
Visual Studio 2022
andMSVC C++ v143 Compiler
. - Install
Qt 6.7.3 MSVC2022 64bit
kit. - Set environment variable
Qt6_DIR
asC:\Qt\6.7.3\msvc2022_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 with
Release
config.
2D Raycaster
,
2D Rendering
,
Compute Shaders
,
OpenGL
,
GLSL
,
Wolfenstein 3D
.