#6 Camera Perspecctive, Viewing, and Culling.ppt

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

#6: Camera Perspecctive, Viewing, and Culling CSE167: Computer Graphics Instructor: Ronen Barzel UCSD, Winter 2006 Outline for today Camera Space Projection View Volumes Culling Bounding Hierarchy 3-D Graphics Rendering Pipeline From modeling to rendering So far, we’ve discussed the following spaces Object space local space World space global space Today we’ll add: Camera space Normalized view space Image space 2D Camera Think of camera itself as a model Place it in 3D space Camera’s frame: origin at eye point -z points in the viewing direction x,y define the film plane x is to the right on the film y is up on the film Remember… Local-to-world matrix, AKA Model Transform Camera Matrix The local-to-world matrix for the camera How to specify camera matrix Can construct it using our existing techniques. Common idiom: “Look-at transformation” Given the eye point, AKA look-from point Given a target point, AKA look-at point Matrix points the camera toward the look-at point Which way is up? There’s a degree of freedom available: spin the camera Specify an up vector in the world, that will point along y in the camera. Camera Look-At setup “Look-at” Matrix calculation Given: look-from: eye at position e look-at: target at position t up-vector: Fill the a,b,c,d columns of the matrix with the world-space coordinates of the camera’s frame: d is position of frame origin, i.e. the eye point: d e c is the z axis of the frame, i.e. the view vector: “Look-at” Matrix calculation a is the camera frame’s x axis. we want it to be perpendicular to the view vector, and also perpendicular to the up vector: b is the camera frame’s y axis. it must be perpendicular to a and c. Notes: cross product order is important to make sure the frame is right-handed since a and c are unit length and perpendicular to each other, we don’t need to normalize b. “Look-at” Matrix calculation, summary Note: The up vector may not end up parallel to the camera y axis The projection of

文档评论(0)

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

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

1亿VIP精品文档

相关文档