5,321
edits
Line 107: | Line 107: | ||
===Perspective Projection Matrix=== | ===Perspective Projection Matrix=== | ||
[https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/building-basic-perspective-projection-matrix https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/building-basic-perspective-projection-matrix] | [https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/building-basic-perspective-projection-matrix https://www.scratchapixel.com/lessons/3d-basic-rendering/perspective-and-orthographic-projection-matrix/building-basic-perspective-projection-matrix] | ||
The projection matrix applies a perspective projection based on the FOV of the camera. This is done dividing the x,y view coordinates by the z-coordinate so that further object appear closer to the center. Note that the output is typically in normalized device coordinates [-1, 1] rather than pixel coordinates. | |||
Notes: In computer vision, this is called the calibration matrix <math>K</math>. | Notes: In computer vision, this is called the calibration matrix <math>K</math>. |