Projection in Computer Graphics

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6dd18a74-9191-45cd-ac0d-431c7f012ed1/Untitled.png

Perspective projection vs. orthographic projection

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/88831512-c3fe-4721-a196-65861d8de4ae/Untitled.png

Orthographic Projection 正交投影

方法一

A simple way of understanding

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/536df52b-0f0a-4774-9060-706480f4c0a6/Untitled.png

<aside> 💡 将坐标中的 z 扔掉,如何区分物体的前和后?

</aside>

感兴趣可以参考 Catlikecoding Render 1 中 Orthographic Camera 部分。

方法二

In general, we want to map a cuboid [l, r] x [b, t] x [f, n] to the “canonical (正则、规范、标准)” cube $[-1,1]^{3}$

我们在 $x$ 轴上定义左和右 $[l, r]$ (左比右小),$y$ 轴上定义下和上 $[b, t]$(下比上小),$z$ 轴上定义远和近 $[f, n]$(远比近小)。