🔫 DOOM RAYCASTER

Free · Browser · No Download · No Account · 3D
⬡ Open full screen →
HOW TO PLAY
  • W/S or Up/Down arrows to move forward/backward.
  • A/D or Left/Right arrows to rotate your view.
  • Navigate through the 3D corridor rendered using raycasting.
  • The technique is the same one used in Wolfenstein 3D (1992) and DOOM (1993).

Raycasting is a rendering technique that creates the illusion of a 3D environment from a 2D map. Instead of fully modelling a three-dimensional scene, the engine casts one horizontal ray per column of pixels and measures how far it travels before hitting a wall. Closer walls appear taller on screen; distant walls appear shorter. The result is a convincing pseudo-3D perspective from a top-down grid map.

The technique was pioneered in commercial games by John Carmack at id Software. Wolfenstein 3D (1992) was the first mainstream game to use it, followed by DOOM (1993), which added floor/ceiling height variation and made the technique a cultural phenomenon. Carmack later described raycasting as a "hack" — technically incorrect 3D — but acknowledged that the perceptual result was compelling enough to define an era.

A key insight in Carmack's implementation was the use of the Digital Differential Analyzer (DDA) algorithm, which efficiently calculates ray-wall intersections without testing every cell in a grid. This allowed DOOM to run in real-time on 1993 consumer hardware (486 processors) that had no dedicated graphics acceleration.

This browser implementation uses the same DDA algorithm running in JavaScript. The map is a hand-crafted corridor with textured walls. Move through it using WASD or arrow keys and observe the perspective calculation updating in real-time — the same calculation that powered one of the most influential games in history, now running at 60fps in a browser tab.

Why Raycasting Matters in Computer Graphics History

Frequently Asked Questions

Is this real 3D?
No — raycasting creates a pseudo-3D effect from a 2D grid map. True 3D games (like modern FPS titles) render geometry in three-dimensional space. Raycasting is a clever perceptual trick.
Is this how DOOM actually worked?
DOOM used a similar technique but was more advanced — it allowed variable floor and ceiling heights, which pure raycasting doesn't support. Id Software called DOOM's engine '2.5D' as a result.
Can I shoot things?
This version is a raycasting demonstration — movement and rendering only. A combat update is planned for a future session.
What's the frame rate?
The engine targets 60fps. Performance depends on your device; modern phones and laptops should run it smoothly.

MORE CLASSIC GAMES: