News for hackers. Stuff that matters.
Re:Non-Euclidean Doom: what happens to a game when pi is not... by mysterymath on Friday May 17, 2024 @06:23PM (#40394708)
Duke3D isn't a raycaster; it's a portal-based quad rasterizer. Wall quads are forced vertical, and floor quads are rasterized using a neat trick. The renderer computes successive lines of constant distance along slooped floor surfaces, then draws textures using affine scaling, which is correct along those lines. The portal walls clip the draw of successive sectors, which solves the hidden surface problem.

https://fabiensanglard.net/duke3d/build_engine_internals.php

There are no comments on this comment yet.