3 ms·
How Doom works in a nutshell: - Every enclosed polygon has a ceiling height and a floor height That's it. - The table in the middle of the room? It's just a
by nailer 11y ago
How Doom works in a nutshell:
- Every enclosed polygon has a ceiling height and a floor height
That's it.
- The table in the middle of the room? It's just a polygon with a higher floor. The room around it has a comparatively lower floor.
- A door is just a polygon with a ceiling height that matches the floor height. When you use the door, the ceiling raises. Combined with the textures being pinned, this makes the door seem like it's going up.
Super simple. Also: play my wad, it's awesome. I did most of the level design on my 386, my buddy stitched them together on his 486:
Screenshots:
http://mikemaccana.com/images/work/screenshots/doom-the-path-0.png http://mikemaccana.com/images/work/screenshots/doom-the-path...
http://mikemaccana.com/images/work/screenshots/doom-the-path-1.png http://mikemaccana.com/images/work/screenshots/doom-the-path...
http://mikemaccana.com/images/work/screenshots/doom-the-path-2.png http://mikemaccana.com/images/work/screenshots/doom-the-path...
http://mikemaccana.com/images/work/screenshots/doom-the-path-3.png http://mikemaccana.com/images/work/screenshots/doom-the-path...
(yes, that's a working toilet)
Download: https://www.doomworld.com/idgames/levels/doom2/s-u/thepath https://www.doomworld.com/idgames/levels/doom2/s-u/thepath
- tdicola 11y agoDon't forget the BSP tree, that's what really made Doom work and be playable with huge maps on a 386 & 486. By cutting the game map into sections in front and behind the player it could very quickly figure out a small set of sectors that are visible and just render them instead of the entire world (which would be way too slow on computers of the time). Fabien Sanglard has a great analysis of how Doom worked: http://fabiensanglard.net/doomIphone/doomClassicRenderer.php http://fabiensanglard.net/doomIphone/doomClassicRenderer.php
- viperscape 11y agoI thought bsp came in when they made quake, interesting to know! Is this how Wolfenstien and Commander Keen worked too?
- pjc50 11y agoWolfenstein was grid-based (you couldn't have arbitary wall angles), and Keen was a 2D side scrolling platformer.
- douche 11y ago+1 for mentioning Fabien's stuff. Now, if he just had time to do the book he was going to write... I'd seriously pay $100