Lecture09-3DTransforms 计算机图形学ppt课件.ppt

Lecture09-3DTransforms 计算机图形学ppt课件.ppt

  1. 1、本文档共42页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Lecture09-3DTransforms 计算机图形学ppt课件

Specific Example: rotate object about the line passing through (1, 3, 2) and (2, 4, 3) by the angle of q Note: Length does not change with R or T Rotation About Arbitrary Axis: example x y z l p1 = (1, 3, 2) p2 = (2, 4, 3) Step 1: Translate point to origin Rotation example (step 1) x y z l p1 = (1, 3, 2) p2 = (2, 4, 3) x y z l p1’ = (0, 0, 0) p2’ = (1, 1, 1) Step 2: Rotate to get line in coordinate plane Rotate a about y to get p2’ into xy plane Rotation example (step 2a) x y z l p1’ = (0, 0, 0) p2’ = (1, 1, 1) x y z l p1’’ = (0, 0, 0) p2’’ = (?,?,?) a What is a? Looking down the y axis: Rotation example (step 2b) x z p1’ = (0, 0, 0) p2’ = (1, 1, 1) a So: What is p2’’? If we apply the rotation matrix to p2’, we get p2’’ Rotation example (step 2c) Giving: Rotation example (step 2d) x y z l Next, rotate about the z axis by b to put p2 on the y axis What angle is b? Rotation example (step 3a) x y z l x y z l b Looking down the z axis: Rotation example (step 3b) x y p1’ = (0, 0, 0) b So: What is p2’’’? If we apply the rotation matrix to p2’’, we get p2’’’ Rotation example (step 3c) Giving: Rotation example (step 3d) x y z l Step 4: Perform the desired rotation about the y axis This is the rotation we originally desired to perform Step 5: Rotate about the z axis an angle of -b This will undo the z rotation performed earlier Step 6: Rotate about the y axis an angle of -a This will undo the y rotation performed earlier Step 7: Translate by -T This will move the object back to it’s appropriate location Rotation example (steps 4-7) Rotation Example (final) The final transformation matrix is: CS 455 – Computer Graphics Three-Dimensional Transformations 3D Space We want to extend the idea of transformations to deal with 3D objects More complex than 2D, but essentially the same ideas work Coordinate systems: We will use a right-handed system Right-handed x y z Left-handed x y z General 3-D Transformations A general 3-D transformation has the form:

文档评论(0)

qiwqpu54 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档