Ray-Casting

This project recreates the ray-casting method used in classic 3D video games such as DOOM and Wolfenstein 3D. The method involves shooting rays through a 2D array for every vertical row of pixels, where the height of the darkened “wall” is determined by the length of each ray.

This browser doesn't support this canvas
by Timothy Clocksin

Overview

For a detailed technical explanation of the ray-casting technique, refer to Lode Vandevenne’s tutorial.

Controls

Source Code

The source code for the engine can be found here: Download RaycastEngine.js

Processing.js


Additional Resources