5
$\begingroup$

The title asks it all, and could someone please also explain the formula as well? Thanks.

  • 3
    short 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
  • 0
    https://en.wikipedia.org/wiki/3D_projection#Perspective_projection2013-08-28

2 Answers 2