为什么我们需要透视划分? [英] Why do we need perspective division?

查看:86
本文介绍了为什么我们需要透视划分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道透视划分是通过将x,y和z除以w来获得标准化的设备坐标的.但是我不明白这样做的目的.另外,它与剪辑有关吗?

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 have anything to do with clipping?

推荐答案

我的意思是为什么我们需要那个?

I mean why do we need that?

用通俗易懂的话说:使透视变形起作用.在透视投影矩阵中,Z坐标被混合"到W输出分量中.因此,Z坐标的值越小,即越接近原点,则缩放的内容就越多,即在屏幕上越大.

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.

这篇关于为什么我们需要透视划分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆