计算机图形学3D图形表示方式.ppt

上传人:牧羊曲112 文档编号:6023491 上传时间:2023-09-15 格式:PPT 页数:32 大小:212.50KB
返回 下载 相关 举报
计算机图形学3D图形表示方式.ppt_第1页
第1页 / 共32页
计算机图形学3D图形表示方式.ppt_第2页
第2页 / 共32页
计算机图形学3D图形表示方式.ppt_第3页
第3页 / 共32页
计算机图形学3D图形表示方式.ppt_第4页
第4页 / 共32页
计算机图形学3D图形表示方式.ppt_第5页
第5页 / 共32页
点击查看更多>>
资源描述

《计算机图形学3D图形表示方式.ppt》由会员分享,可在线阅读,更多相关《计算机图形学3D图形表示方式.ppt(32页珍藏版)》请在三一办公上搜索。

1、Viewing In 3D,Chapter 5,如何在二维平面上显示三维物体表示问题遮挡关系的反映真实感问题,投影,三维形体的表示,消隐,光照与着色,The basic questions of 3D graphics,3D viewing process,Conception,Projections transform points in a coordinate system of dimension n into points in a coordinate system of dimension less than n.,Projection,Definition:The projec

2、tion of a 3D object is defined by straight projection rays(called projectors)emanating from a center of projection,passing through each point of the object,and intersecting a projection plane to form the projection.,Projections,Projections Parameter:projection center projection plane,The class of pr

3、ojections,Perspective Projection The distance between the center of projection and the projection plane is finite.Parallel Projection The distance between the center of projection and the projection plane is infinite.,The class of projections,The subclasses of Planar Geometric Projections.,Three Ort

4、hographic Projections,Three Orthographic Projections(三视图),正平行投影(三视图),Front Elevation,Top Elevation,Side Elevation,Perspective Projection,Vanishing Point.The perspective projections of any set of parallel lines that are not parallel to the projection plane converge to a vanishing point.Axis Vanishing

5、 Point If the set of lines is parallel to one of the principal axes,the vanishing point is called an axis vanishing point.,The style of Perspective Projection,Perspective projections are categorized by their number of principal vanishing points and therefore by the number of axes the projection plan

6、e cuts,One-point perspective projection Projection-plane cuts only one of three axes.Two-point perspective projection Projection-plane cuts only two of three axes at the same time.Three-point perspective projection Projection-plane cuts all of three axes at the same time.,The style of Perspective Pr

7、ojection,One-point perspective projection,Two-point and Three-point Perspective Projection,The mathematics of simple Perspective Projection,Parameter Equation of Line PcP:,The intersection of the line PPc with the projection plane at z=0 is in the XOY plane,One-point perspective projection,Under the

8、 viewing-reference coordinate of uvn,Suppose:projection plane n=0,projection reference point(0,0,d),point p(up,vp,np)of three dim space,its projection point Q,Line Parameter Eq:,Transformation of One-point perspective projection,举例,若假定投影参考点为(0,0,0),即观察坐标系的原点,投影平面为n=d,待投影的三维空间中的点是p(up,vp,np),投影点为Q,则直

9、线方程是:,X,Z,右手用户坐标系,0,通常,在由三维物体转换成二维图形的假想相机模型中,物体首先被变换到在观察坐标系中描述,然后再投影到观察平面上成为二维图形.,观察坐标系中的简单一点透视,Y,在观察坐标系下,仍利用前述的简单一点透视的方法,可求观察坐标系上形体的一点(Xe,Ye,Ze)在视平面上的投影(Xs,Ys):,(Xw,Yw,Zw)是用户坐标系下的点(Xe,Ye,Ze)是观察坐标系下的点(X,Y,Z)是投影点,观察坐标系中的简单一点透视,在观察坐标系中,视点为原点,(Xc,Yc,Zc)为(0,0,0),用户坐标系下的点(Xw,Yw,Zw)为(Xe,Ye,Ze),则有:,观察坐标系中的

10、简单一点透视,如何完成从世界坐标系到观察坐标系的变换?,观察变换,完成工作:在世界坐标系下定义出观察坐标系,并推导世界坐标系到观察坐标系的变换矩阵。实现步骤:定义观察坐标系世界坐标系变换到观察坐标系,观察坐标系的定义,VUP:观察正向,观察坐标系是依赖于投影平面(照相机的底片)建立的。,观察坐标系的定义,坐标原点:用户指定的观察点作为观察坐标系原点,记为,Z坐标轴用户指定观察平面法向VPN作为Z轴正向,记为:,通常可令,观察坐标系的定义,观察坐标系的定义:选择向上观察向量VUP向上观察向量只需不与N方向平行即可,记为:V,令:,再令:,显然U同时垂直于N和V矢量。,则U、V、N两两垂直。,令:,定义Ouvn为观察坐标系(右手坐标系)。,u,右手观察坐标系,V,v,n,世界坐标系到观察坐标系,等价于建模变换过程引入观察坐标系记号:,变换矩阵:,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号