Raycasting explained – The technique behind the Wolf3D engine

If you’ve always wanted to know how the 3D engine of Wolfenstein 3-D was working, this new tutorial from Lode Vandevenne will be the answer. It explains in details how to create an engine based on the old technique of Raycasting (not to get mixed up with “Raytracing”, which is an advanced modern technique for 3D rendering), which is the base of the 3D engines from the beginning of the 90s, Wolfenstein 3D included.

Based on the position of the player in the horizontal plane, and a map built from a grid either filled with a square wall, or nothing, you’ll be able to rebuild such an engine, and feel like John Carmack for a moment!