The Math behind (most) 3D games - Perspective Projection
Perspective matrices have been used behind the scenes since the inception of 3D gaming, and the majority of vector libraries will have built-in helper functions to construct them for you. But what if you wanted to know the reasoning behind how these matrices are constructed.
I start off with a brief introduction of computer graphics and the key ideas behind 3D rendering. I differentiate between Image Order Rasterization typically used by Ray tracers, and object order rasterization as used in most video games. I then present an animated walkthrough showing the full derivation of both the orthographic and perspective projection matrices.
My derivation here is focused on the Vulkan API, but the reasoning applies just as well to other API’s such as OpenGL or direct X, with the only notable differences being the size of the canonical viewing volumes, and the handedness and conventions of the xyz coordinate systems.
0:00 How does 3D graphics work?
2:05 Image versus object order rendering
2:51 The Orthographic
1 view
4113
1541
3 weeks ago 00:03:30 1
АНЧЕЛОТТИ В ГНЕВЕ УНИЧТОЖИЛ ИГРОКОВ РЕАЛА НАЗВАВ ИХ БАРАНАМИ ПОСЛЕ МАТЧА РЕАЛ МАДРИД 2-5 БАРСЕЛОНА
3 weeks ago 00:11:51 1
GOAL FEST IN EL CLASICO 🤯 Real Madrid vs. Barcelona | Spanish Supercopa Final Highlights | ESPN FC
4 weeks ago 01:00:00 2
Argent Tournament - Music & Ambience - World of Warcraft
4 weeks ago 03:04:09 1
OAR vs. GER - Full Men’s Ice Hockey Final | PyeongChang 2018 Replays
4 weeks ago 00:03:58 1
Marissa Nadler - Was It A Dream (Official Video)
4 weeks ago 00:05:14 1
Ons Jabeur vs. Mirra Andreeva | 2025 Brisbane Quarterfinals | WTA Match Highlights
4 weeks ago 00:09:23 2
Aryna Sabalenka v Yulia Putintseva - Brisbane International Highlights | Wide World of Sports
1 month ago 00:26:52 1
Кибергулаг: от электронных повесток до слежки в Сети | ВПН, Госуслуги и видеонаблюдение
1 month ago 01:02:42 1
Udio AI - Shadows and Whispers Vol.2 (Full Album, 2024)