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

上传人:宝路 文档编号:48364940 上传时间:2018-07-14 格式:PPT 页数:32 大小:305.76KB
返回 下载 相关 举报
计算机图形学3D图形表示方式_第1页
第1页 / 共32页
计算机图形学3D图形表示方式_第2页
第2页 / 共32页
计算机图形学3D图形表示方式_第3页
第3页 / 共32页
计算机图形学3D图形表示方式_第4页
第4页 / 共32页
计算机图形学3D图形表示方式_第5页
第5页 / 共32页
点击查看更多>>
资源描述

《计算机图形学3D图形表示方式》由会员分享,可在线阅读,更多相关《计算机图形学3D图形表示方式(32页珍藏版)》请在金锄头文库上搜索。

1、Viewing In 3DChapter 5n如何在二维平面上显示三维物体n表示问题n遮挡关系的反映n真实感问题 投影 三维形体的表示 消隐 光照与着色The basic questions of 3D graphics3D viewing processClip against view volumeProject onto projection planeTransform into viewport in 2D device coordinates for display3D world- coordinate output primitivesClipped world coordin

2、ates2D device coordinates primitivesFig. Conceptual model of the 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. ProjectionDefinition:The projection of a 3D object is defined by straight pro

3、jection 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.ProjectionsProjections Parameter : n projection centern projection plane The class of projectionsn Perspective ProjectionThe di

4、stance between the center of projection and the projection plane is finite.nParallel ProjectionThe distance between the center of projection and the projection plane is infinite.The class of projectionsABABCenter of projectionprojectorsProjection plane(a)Fig. (a) perspective projection (b) parallel

5、projection .ABABCenter of projectionprojectorsProjection plane(b)The subclasses of Planar Geometric Projections.Planar geometric projectionsParallel Perspective Orthographic Oblique Top (plan)Front elevation Side elevationAxonometricIsometric Other Other Cabinet Cavalier One-pointThree-pointTwo-poin

6、t. Three Orthographic ProjectionsProjectors for top viewProjection plan (front view)Projectors for side viewProjectors for front viewProjection plan (top view)Projection plan (side view)Three Orthographic Projections(三视图)VUXYYZ主视图侧视图俯视图YZX正平行投影(三视图)VUXYYZ主视图侧视图俯视图tx tztxtytytz (a,b)Front ElevationVU

7、XYYZ主视图侧视图俯视图tx tztxtytytzTop ElevationVUXYYZ主视图侧视图俯视图tx tztxtytytzSide ElevationVUXYYZ主视图侧视图俯视图tx tztxtytytzPerspective Projectionn Vanishing Point.The perspective projections of any set of parallel lines that are not parallel to the projection plane converge to a vanishing point. nAxis Vanishing P

8、ointIf 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 ProjectionPerspective projections are categorized by their number of principal vanishing points and therefore by the number of axes the projection plane cu

9、tsnOne-point perspective projectionProjection-plane cuts only one of three axes.nTwo-point perspective projectionProjection-plane cuts only two of three axes at the same time.nThree-point perspective projectionProjection-plane cuts all of three axes at the same time.The style of Perspective Projecti

10、onOne-point perspective projectionFig. Construction of one-point perspective projection of cube onto plane cutting the z axis. Projection-plane normal is parallel to z axis. xzyCenter of projectionProjection plane normalProjection planeTwo-point and Three-point Perspective ProjectionFig. Two-point a

11、nd three-point perspective projection of a cube. (a) Two-point perspective, the projection plane cuts the x and z axes. (b) Three-point perspective, the projection plane cuts three axes at the same time.(a)xzy(b)The mathematics ofsimple Perspective ProjectionParameter Equation of Line PcP: YZXPc(xc,

12、yc,zc)P(x,y,z)Ps(xs,ys,zs)The intersection of the line PPc with the projection plane at z=0 is in the XOY plane One-point perspective projectionUnder the 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 proj

13、ection point Q,Line Parameter Eq:Transformation ofOne-point perspective projection举例若假定投影参考点为(0,0,0), 即观察坐标系的原点,投影平面 为n=d, 待投影的三维空间中的点是p(up,vp,np),投影点为Q, 则直线方程是:XZ右手用户坐标系0通常,在由三维物体转换成二维图形的假想相机模型中,物体首 先被变换到在观察坐标系中描述,然后再投影到观察平面上成为二 维图形.观察坐标系中的简单一点透视Y右手观察坐标系U0NVUN左手观察坐标系0V在观察坐标系下,仍利用前述的简单一点透视的方法, 可求观察坐

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

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 教学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号