Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing.

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 5: Viewing
Viewing Doug James’ CG Slides, Rich Riesenfeld’s CG Slides, Shirley, Fundamentals of Computer Graphics, Chap 7 Wen-Chieh (Steve) Lin Institute of Multimedia.
1 of 23 New Lecture And Lab Information Lectures: –Thursday 12:00 – 13:00 (room tba) –Friday 15:00 – 16:00 (A28) Labs: –Wednesday 10:00 – 11:00 (A305)
Introduction to 3D Graphics Lecture 3: General Camera Model Anthony Steed University College London.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 23 of 41 William H. Hsu Department of Computing.
12.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 12 – 3D Graphics Transformation Pipeline: Projection and Clipping.
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 3: Transformations 1
Computing & Information Sciences Kansas State University CIS 536/636 & 736 (Introduction to) Computer Graphics Lecture 1 of 41 William H. Hsu Department.
Computing & Information Sciences Kansas State University Advanced CG 1 of 8: TexturingCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam September 23, D Viewing III 3D Viewing III.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics William H. Hsu Department of Computing and Information.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 26 January 2004 William H. Hsu Department of.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics CG Basics 1 of 10: Math William H. Hsu Department.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam September 22, D Viewing III Kansas State University CIS 636 Fundamentals.
Computing & Information Sciences Kansas State University CG Basics 4 of 8: ViewingCIS 636/736: (Introduction to) Computer Graphics CIS 636 Introduction.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, January 19, 2000 William H. Hsu Department.
Viewing and Projections
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 7 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 22 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 17 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 21 of 41 William H. Hsu Department of Computing.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 23, 2000 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 27 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 27 of 42 Wednesday, 02.
Computing & Information Sciences Kansas State University CG Basics 1 of 8: MathCIS 636/736: (Introduction to) Computer Graphics CIS 636 Introduction to.
ICS201 Lecture 12 : Gentle Introduction to Computer Graphics II King Fahd University of Petroleum & Minerals College of Computer Science & Engineering.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
C O M P U T E R G R A P H I C S Jian Chen January 15, 2010 Viewing III 1/42 3D Viewing III By Andries van Dam.
CS-378: Game Technology Lecture #2.1: Projection Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney, Zoran Popovic, Jessica.
C O M P U T E R G R A P H I C S Jian Chen January 15, 2010 Mechanics 1/8 Mechanics.
CIS 636/736Wed 30 Jan 20084/42 CIS 636/736: (Introduction to) Computer Graphics Lecture 4 of 42 Viewing 3: Graphics Pipeline Monday, 30 January 2008 Adapted.
Computing & Information Sciences Kansas State University Lecture 15 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 15 of 42 William H. Hsu.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
Computing & Information Sciences Kansas State University Paper Review Guidelines KDD Lab Course Supplement William H. Hsu Kansas State University Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 3 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 4 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 8 of 42 CIS 530 / 730 Artificial Intelligence Lecture 8 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
CS 325 Introduction to Computer Graphics 02 / 26 / 2010 Instructor: Michael Eckmann.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
OpenGL The Viewing Pipeline: Definition: a series of operations that are applied to the OpenGL matrices, in order to create a 2D representation from 3D.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 William H. Hsu Department of Computing.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 9, 2000 William H. Hsu Department.
Handle By, S.JENILA AP/IT
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
Computing & Information Sciences Kansas State University Advanced CG 2 of 8: MappingsCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Viewing and Projection
Lecture 5: Introduction to 3D
Many of the figures from this book may be reproduced free of charge in scholarly articles, proceedings, and presentations, provided only that the following.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, March 1, 2000 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Friday, January 21, 2000 William H. Hsu Department.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S CIS 736 Computer Graphics Lecture 5 of 42 Review of Basics 4 of 5: 3-D Viewing III and Intro.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Monday, 28 November 2005 William.
Perspective projection
Rendering Pipeline Fall, 2015.
CSCE 441 Computer Graphics 3-D Viewing
Projection in 3-D Glenn G. Chappell
Andries van Dam September 18, D Viewing III
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: / Public mirror web site: Instructor home page: Readings: Today: Section 2.3 (esp ), 2.6, 2.7, Eberly 2 e – see Next class: This week: FVFH slides on Viewing Viewing 3 of 4: Normalizing Transformation and Fixed-Function Graphics Pipeline Lecture 5 of 41

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Lecture Outline Reading for Last Class: Chapters 2, 16, Eberly 2 e ; Foley et al. Slides Reading for Today: Section 2.3 (esp ), 2.6, 2.7, Eberly 2 e Reading for Next Class: §2.5.1, 3.1 Eberly 2 e Last Time: Basic Viewing Principles  Projections: definitions, history  Perspective: optical principles, terminology Today: View Volume Specification and Viewing Transformation  View volumes: ideal vs. approximated  Frustum in computer graphics (CG)  Specifying view volume in CG: Look and Up vectors  Aspect ratio, view angle, front/back clipping planes  Focal length  Parallel (cuboid) view volume & perspective frustum  Normalizing transformation (NT) & viewing transformation (VT) Next Time: Fixed-Function Graphics Pipeline

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Where We Are

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Acknowledgements James D. Foley Georgia Tech Andries van Dam Brown University Steven K. Feiner Columbia University John F. Hughes Brown University Andy van Dam T. J. Watson University Professor of Technology and Education & Professor of Computer Science Brown University Steve Feiner Professor of Computer Science & Director, Computer Graphics and User Interfaces Laboratory Columbia University John F. Hughes Associate Professor of Computer Science Brown University Jim Foley Professor, College of Computing & Stephen Fleming Chair in Telecommunications Georgia Institute of Technology

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Review: Types of Projections Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission.

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Review: Synthetic Camera for 3-D Viewing Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission.

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Review: Look and Up Vectors Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission.

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Review: View Volume for Parallel Projection

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Review: View Volume for Perspective Projection

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Viewing in Three Dimensions: Mathematics of Projections

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Stage 1: Specifying View Volume

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Examples of View Volume [1]: Perspective (Frustum)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Examples of View Volume [2]: Parallel (Cuboid)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Viewing Transformation: World (x, y, z) to Camera (u, v, w)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Arbitrary View Volume Too Complex

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Stage 2: Normalizing to Canonical View Volume

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Viewing Transformation  Normalizing Transformation

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Building Viewing Transformation From View Specification

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Rotation [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Rotation [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Rotation [3]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Rotation [4]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Construction of Orientation Matrix

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Finding (u, v, w) from Position, Look, and Up [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Finding (u, v, w) from Position, Look, and Up [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Finding (u, v, w) from Position, Look, and Up [3]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Finding (u, v, w) from Position, Look, and Up [4]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Finding (u, v, w) from Position, Look, and Up [5]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Transforming to Canonical View

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Overview

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 1

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 2

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 3

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 4

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 5

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 6

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 7

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Step 8

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Normalizing View Volume: Results

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation [1]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation [2]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation [3]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation [4]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation [5]

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Perspective Transformation: End Result

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Stage 3: Making 2-D Image

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Clipping

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Final Projection: Viewport Mapping

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Fixed Function Graphics Pipeline: Composite Transformation Matrix

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Putting It All Together: Coordinate Spaces & Transformations

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Summary Last Time: View Volume Specification and Viewing Transformation  View volumes: ideal vs. approximated  Specifying view volume in CG: Look and Up vectors  Aspect ratio, view angle, front/back clipping planes, focal length Today  Viewing transformation (NT)  Rotation  Finding camera coordinates (u, v, w) from Look, Up  Normalizing transformation (NT)  Perspective transformation D  Overall CTM of fixed-function pipeline  Intro to clipping Coming Week  Lab: OpenGL basics  Drawing lines, polygons  Parametric clipping

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 Terminology Today: View Volumes, Viewing Transformation  Parallel projection (cuboid) view volume vs. perspective projection frustum  Front/back (near/far) clipping planes  World coordinates (canonical): (x, y, z)  User coordinates (arbitary): (u, v, w), aka (u, v, n) or (R, U, D) in Eberly  Perspective transformation D: “morphs” frustum into cuboid  Normalizing transformation: inverse of viewing transformation (easier) Other Topics  Clipping  Given view volume  Problem of determining visible elements of scene  Cumulative Transformation Matrices (CTM)  Translation, Rotation, Scaling (TRS)  Used to map arbitrary view to canonical view  Then “ready to take picture”