The title asks it all, and could someone please also explain the formula as well? Thanks.
How are 3D coordinates transformed to 2D coordinates that can be displayed on the screen? What is the formula for this?
5
$\begingroup$
3d
coordinate-systems
-
3short answer : divide by $z$. If $x$ is horizontal, $y$ vertical and $z$ the distance orthogonal to the screen (from your eye) then coordinates will be $s\cdot \frac xz$ and $s\cdot \frac yz$ with $s$ a scaling factor proportional to (say) vertical resolution of screen. This because an object $n$ times farther will appear $n$ times smaller (or because you compute the intersection of every line from your eye to the screen plane). – 2012-03-11
-
0https://en.wikipedia.org/wiki/3D_projection#Perspective_projection – 2013-08-28