Why do we need perspective division?

后端 未结 4 1209
独厮守ぢ
独厮守ぢ 2021-02-04 10:33

I know perspective division is done by dividing x,y, and z by w, to get normalized device coordinates. But I am not able to understand the purpose of doing that. Also, does it h

4条回答
  •  [愿得一人]
    2021-02-04 10:52

    I mean why do we need that?

    In layman terms: To make perspective distortion work. In a perspective projection matrix, the Z coordinate gets "mixed" into the W output component. So the smaller the value of the Z coordinate, i.e. the closer to the origin, the more things get scaled up, i.e. bigger on screen.

提交回复
热议问题