Perspective Projection and Depth
A simple perspective camera divides horizontal and vertical camera coordinates by depth and scales them by focal length.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two depths
Using \(x'=fx/z\), an x coordinate two at positive depth two produces \(f\). At depth four it produces \(f/2\) under that convention. Orthographic projection gives a model without that depth scaling.
Check validity of the division
Choose a convention for points in front of the camera and handle the near boundary before projection. The formula is undefined at zero depth. See guard cases.[1]