← All interactive demos

Rooms Above Rooms — Interactive Demo

From the video "Why couldn't early 3D games stack rooms?" (History of FPS, part 3 of 3). Our own teaching model that draws a "map with heights (one floor and one ceiling per square)" and "a set of 3D blocks" in the same way. It is not a re-implementation of Quake as a whole.

Map (from above) — the orange dot is you

Side cut (along the upper walkway)

Screen (front) — arrow keys ← → to turn, ↑ ↓ to walk (drag on a phone)

Current square - Floor height - -
Task: With "Failure 2" on, climb the stairs to the end of the upper walkway and see what is visible. Then switch to "Block map" and look at the same spot again. With "Failure 1", walk along the lower passage up to just before the bridge.

What it does: the "map with heights" stores only two numbers per square: the floor height and the ceiling height. The "block map" is a set of boxes placed in space (x, y and z ranges), and you can stack as many as you like in the same place. Both draw by projecting the four corners of each block face (a rectangle) onto the screen and, pixel by pixel, keeping the nearer face (this is not the actual Quake procedure). The heights (floor 0, bridge 1.7–2.0, ceiling 3.4) are settings of our own model.
AI was used to make the diagrams and code. No game footage is used. Sources are in the video description.