Skip to content

berkbavas/RaycasterEngine

Repository files navigation

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's tutorials 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

Screenshot_00

Keywords

2D Raycaster, 2D Rendering, Compute Shaders, OpenGL, GLSL, Wolfenstein 3D.

About

2D Raycaster Engine Implemented Using Compute Shaders

Topics

Resources

Stars

Watchers

Forks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy