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

Slides:



Advertisements
Similar presentations
Computer Graphics - Viewing -
Advertisements

Three Dimensional Viewing
Projection.
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
IT- 601: Computer Graphics Lecture-11 Mathematics of Projection Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006 (Slide set originally by Greg Humphreys)
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.
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.
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.
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.
Computer Graphics (fall 2009)
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 21 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CG Basics 1 of 8: MathCIS 636/736: (Introduction to) Computer Graphics CIS 636 Introduction to.
Transformation & Projection Feng Yu Proseminar Computer Graphics :
Computer Graphics I, Fall 2010 Classical Viewing.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 E. Angel and D. Shreiner : Interactive Computer Graphics 6E © Addison-Wesley 2012 Classical Viewing Sai-Keung Wong ( 黃世強 ) Computer Science National.
1 Classical Viewing. 2 Objectives Introduce the classical views Compare and contrast image formation by computer with how images have been formed by architects,
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 16, D Viewing I 3D Viewing I.
C O M P U T E R G R A P H I C S Jian Chen January 15, D Viewing I 1/40 3D Viewing I By Andries van Dam.
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Bing-Yu Chen National Taiwan University.
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.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 5.
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 5 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
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 3D Viewing I CIS 736 Computer Graphics Review of Basics 2 of 5: 3D Viewing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.
CS5500 Computer Graphics March 12, 2007.
Three-Dimensional Viewing
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 9, 2000 William H. Hsu Department.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Taxonomy of Projections FVFHP Figure Taxonomy of Projections.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, 12 April 2006 William H. Hsu Department.
CS 376 Introduction to Computer Graphics 02 / 21 / 2007 Instructor: Michael Eckmann.
2D Transformation Homogenous Coordinates Scale/Rotate/Reflect/Shear: X’ = XT Translate: X’ = X + T Multiple values for the same point e.g., (2, 3, 6)
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 17 April 2006 William H. Hsu Department of.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Projection. Conceptual model of 3D viewing process.
Computer Graphics Projections.
PROJECTIONS PROJECTIONS 1. Transform 3D objects on to a 2D plane using projections 2 types of projections Perspective Parallel In parallel projection,
COMPUTER GRAPHICS 1/36 Viewing 1 Viewing: Types of Projections Computer Graphics.
Rendering Pipeline Fall, 2015.
Projection Our 3-D scenes are all specified in 3-D world coordinates
3D Viewing cgvr.korea.ac.kr.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
CSCE 441 Computer Graphics 3-D Viewing
CSC461: Lecture 18 Classical Viewing
Classical Viewing Ed Angel
Introduction to Computer Graphics with WebGL
Three Dimensional Viewing
Planar Geometric Projection Classes
3D Graphics.
Viewing (Projections)
Viewing (Projections)
University of New Mexico
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: / Public mirror web site: Instructor home page: Readings: Today: Sections – 2.2.4, 2.8, Eberly 2 e – see Next class: Section 2.3 (esp ), FVFH slides Appendices 1-4, Foley, J. D., VanDam, A., Feiner, S. K., & Hughes, J. F. (1991). Computer Graphics, Principles and Practice, Second Edition in C. Viewing 1 of 4: Overview, Projections Lecture 2 of 41

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Lecture Outline Reading for Last Class: Sections 2.1, – 2.2.2, Eberly 2 e Reading for Today: Sections – 2.2.4, 2.8 Eberly 2 e Reading for Next Class: Section 2.3 (esp ), Foley et al. Slides Last Time: Math Foundations, Matrix Transformations  Precalculus review: parametric equations of lines  Vector spaces and affine spaces  Linear systems, linear independence, bases, orthonormality  Cumulative Transformation Matrices (CTMs)  Translation  Rotation  Scaling Today: Basic Viewing Principles  Projections: definitions, history  Perspective: optical principles, terminology Next Class: Viewing and Normalizing Transformations (VT/NT)

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

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 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 2 of 41 Background: Basic Linear Algebra for CG Reference: Appendix A.1 – A.4, Foley et al A.1 Vector Spaces and Affine Spaces  Equations of lines, planes  Vector subspaces and affine subspaces A.2 Standard Constructions in Vector Spaces  Linear independence and spans  Coordinate systems and bases A.3 Dot Products and Distances  Dot product in R n  Norms in R n A.4 Matrices  Binary matrix operations: basic arithmetic  Unary matrix operations: transpose and inverse Application: Transformations and Change of Coordinate Systems Affine transformations © 2005 Trevor McCauley (Senocular)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Review: Basic T, R, S Transformations T: Translation (see  Given  Point to be moved – e.g., vertex of polygon or polyhedron  Displacement vector (also represented as point)  Return: new, displaced (translated) point of rigid body R: Rotation (see  Given  Point to be rotated about axis  Axis of rotation  Degrees to be rotated  Return: new, displaced (rotated) point of rigid body S: Scaling (see  Given  Set of points centered at origin  Scaling factor  Return: new, displaced (scaled) point General:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Review: Lab 0 Warm-Up Lab  Account set-up  Linux environment  Simple OpenGL exercise Basic Account Set-Up  See to understand KSU Department of CIS setuphttp://support.cis.ksu.edu  Make sure your CIS department account is set up  If not, use SelfServ: Linux Environment  Make sure your CIS department account is set up  Learn how to navigate, set your shell (see KSOL,  Lab 1 and first homeworks will ask you to render to local XWindows server Simple OpenGL exercise  Watch OpenGL Primer Part 1 as needed  Follow intro tutorials on “NeHe” ( as instructedhttp://nehe.gamedev.net  Turn in: source code, screenshot as instructed in Lab 0 handout

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Projections From 3-D to 2-D: Orthographic & Perspective 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 2 of 41 Drawing as Projection 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 2 of 41 Early Examples of Perspective 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 2 of 41 Key Features of Linear Perspective 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 2 of 41 Early Perspective: Ad Hoc 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 2 of 41 Historical Setting for Invention of Perspective 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 2 of 41 Brunelleschi and Vermeer 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 2 of 41 Stork vs. Hockney 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 2 of 41 Alberti 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 2 of 41 Visual Pyramid and Similar Triangles [1] 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 2 of 41 Visual Pyramid and Similar Triangles [2] 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 2 of 41 Dürer 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 2 of 41 Las Meninas (1656) By Diego Velàzquez 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 2 of 41 Robert Campin The Annunciation Triptych (c. 1425) 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 2 of 41 Piero della Francesca The Resurrection (1460) 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 2 of 41 Leonardo da Vinci The Last Supper (1495) 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 2 of 41 Geometrical Construction 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 2 of 41 Planar Geometric Projection 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 2 of 41 Planar Geometric Projection 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 2 of 41 Types of Projection 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 2 of 41 Logical Relationships Among 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 2 of 41 Multiview Orthographic 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 2 of 41 Axonometric 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 2 of 41 Isometric Projection [1] 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 2 of 41 Isometric Projection [2] 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 2 of 41 Oblique 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 2 of 41 View Camera Adapted from slides © 1997 – 2010 van Dam et al., Brown University Reused with permission. Source:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Examples of Oblique 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 2 of 41 Examples of Oblique 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 2 of 41 Main Types of Oblique 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 2 of 41 Examples of Orthographic And Oblique 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 2 of 41 Summary of Parallel 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 2 of 41 Perspective 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 2 of 41 Vanishing Points [1] 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 2 of 41 Vanishing Points [2] 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 2 of 41 Vanishing Points and The View Point [1] 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 2 of 41 Vanishing Points and The View Point [2] 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 2 of 41 Vanishing Points and The View Point [3] 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 2 of 41 Next Time: Projection in Computer Graphics 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 2 of 41 Summary A Brief History of Viewing  Ancient and classical views of projections: orthographic, pseudo-perspective  Perspective and the Renaissance  The Enlightenment and optics Taxonomy of Projections  Multiview orthographic  Parallel  Orthographic: top, front, side; axonometric (iso- di-, tri-metric)  Oblique: cabinet, cavalier  Perspective: one-, two-, three-point Projections and Viewing  Projectors  Vanishing points  Center of projection (COP = eye/camera)  Direction of projection (DOP) vs. view plane normal (VPN) Next: View Volumes, Viewing and Normalizing Transformations

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 2 of 41 Terminology Points and Vectors  Center of projection (COP = eye/camera)  Direction of projection (DOP) vs. view plane normal (VPN) Kinds of Projections  Parallel – no foreshortening, projectors stay parallel  Perspective – foreshortening, projectors converge on vanishing point(s) Parallel Projections  Orthographic: “dead on”, i.e., (DOP || VPN)  Oblique: “at an angle”, i.e.,  (DOP || VPN) Orthographic Projections  Multiview: top, front, side  Isometric (one measure): 120° angles among each pair of axes  Other axonometic: dimetric (two different angles), trimetric (three different) Perspective Projection  Projectors – lines running parallel to DOP (enclosing view volume)  Vanishing point(s) – intersection(s) of COP baseline & projection plane