logoalt Hacker News

odo1242 • today at 3:55 PM • 3 replies • view on HN

What is Doom if it isn’t a real 3D engine? Is it faking it somehow?


Replies

deathanatos • today at 4:59 PM

It's like 2.5D, maybe like 2.75D or so. Technically, every map in vanilla Doom is a 2D map, with various "sectors" in the map having height; they're rendered in a sort of pseudo 3D, but crucially the map will never have one floor about another¹. I don't think I'd argue the 2D maps technically make it "not 3D", though.

However, Doom also renders textures using an algorithm that sort of paints walls as like vertical lines of sorts. The exact algorithm it uses makes it hard to look up (to pitch), and I think impossible to roll the camera. See <https://en.wikipedia.org/wiki/Doom_engine#Rendering> — it has a good animated graphic of what happens if you do look up, and the differences between the output of Doom's software renderer's algorithm and something actually rendering 3D.

¹modern ports have ways to accomplish this, and even before there were direct ways of doing it, clever map layout and instantaneous teleporting can get pretty close.

krapp • today at 4:00 PM

Modern Doom games are real 3D, but the original was using an advanced form of raycasting[0].

[0]https://doomwiki.org/wiki/Doom_rendering_engine

➕ show 1 reply