Non-Euclidean Doom: what happens to a game when pi is not 3.14159…

Presented at May Contain Hackers (MCH2022), July 24, 2022, 9 p.m. (30 minutes).

We all know that the value of pi is a constant with a particular immutable value. Anyone who has done any graphical programming also knows that visual rendering relies not just on pi but trigonometry more broadly as well as other mathematical techniques. If we look into the source code of the first person shooter Doom we find that the value of pi used in the game is wrong. In this talk I will explore what happens when we subtly and not so subtly break math in the source.

Doom is a well known classic first person shooter game with source code released under the GPL in 1999. In this talk I will begin by exploring what happens to the game when we make the value of pi even more wrong. What about when we change other trigonometric functions and constants to incorrect values? How will our familiar understanding and ability to traverse this virtual world change when we do this. Are there any interesting gaming possibilities with non-Euclidean geometries? A brief segway will cover some optimization tricks made to enable the game to run well on hardware available at the time. At the end I will provide a link to other games and public source code repositories that also use an incorrect value of pi. Pointers will also be provided to allow the audience to compile their own incorrect math version of the game.


Presenters:

  • Luke Gotszling
    Luke Gotszling is a hacker camp regular and a founder of a data insights startup who likes to dabble in AI and sometimes even math. He loves building and experimenting with technology that explores both meaningful and strange problems. You can regularly see Luke on a motorcycle or a kiteboard.

Links:

Similar Presentations: