投影变换Projection Transformation学习笔记 | 您所在的位置:网站首页 › transformation和transfer › 投影变换Projection Transformation学习笔记 |
概述
投影 :数学术语,指图形的影子投到一个面或一条线上。 在计算机图形学中,投影变换是把3D几何体转换成一种可作为二维图像渲染的方法。其中最常用的两种投影方式为正交投影和透视投影。 正交投影(Orthographics Projection)the view volume is an axis-aligned box, and we’ll name the coordinates of its sides so that the view volume is [l, r] × [b, t] × [f, n] shown in Figure 7.4. ——《Fundamentals of Computer Graphics 4th》P142 书中认为,当我们将摄像机固定为坐标原点、看向-z轴方向并以y轴为上方时,令视图体是一个轴向对齐的框,我们将命名它的边的坐标为[l, r] x [b, t] x [f, n](其中0>n>f),就像Figure7.5中展示的那样(原书中为7.4) 将其转换为每个边的边长都为2、中心点在原点的正方形,于是书中直接得出了一个正交变换矩阵(一个显然我要推一下才能看懂,是我太菜了)。 The key property of perspective is that the size of an object on the screen is proportional to 1/z for an eye at the origin looking up the negative z-axis. This can be expressed more precisely in an equation for the geometry in Figure 7.8: where y is the distance of the point along the y-axis, and ys is where the point should be drawn on the screen.
通过透视变换我们获得了一个长方体,下面就可以进行正交变换了。 有Mper = Morth·P |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |