Settings

Theme

The mathematical mystery inside the legendary '90s shooter Quake 3

scientificamerican.com

20 points by DamnInteresting 2 months ago · 9 comments

Reader

dcanelhas 2 months ago

https://en.wikipedia.org/wiki/Fast_inverse_square_root for those who just want the info without AI filler

bastscho 2 months ago

It's not a mystery per se.

It's explained exceptionally well here [0].

[0] https://youtu.be/p8u_k2LIZyo?si=loEDS5hPcRGWXk0E

  • bee_rider 2 months ago

    Yeah, it wasn’t a real mystery (as noted in the Wikipedia article, it already existed in the numerical literature). But practically it would have surprised a lot of programmers in the days before Wikipedia, when you’d have had to read a somewhat specialized textbook or a paper to learn about it.

    Plus the exact constant selected and the method used to derive it remains a minor mystery, right? In the sense that it is good but non-optimal.

  • Antibabelic 2 months ago

    The "mystery" being referred to in the title is how the magic number was derived. This is what most of the article talks about.

  • calibas 2 months ago

    Calling it a "mystery" gets suckers like me to click the link.

ginko 2 months ago

The wikipedia article gives a lot more detail and history than this fluff piece:

https://en.wikipedia.org/wiki/Fast_inverse_square_root

tetrisgm 2 months ago

Ignore the clickbait aspect. It is one of the craziest flexes in game development.

The guy had made Doom (nice fast pseudo 3D), Quake (fast 3D), and now made it look great.

Finding obscure math and figuring out that it was the correct fit for his renderer is just so bonkers.

josefritzishere 2 months ago

This could have been a good article except for all the AI slop. The future is bleak.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection