Projections and Perspectives

Slides:



Advertisements
Similar presentations
Transforming graphs of functions
Advertisements

Three Dimensional Viewing
Three Dimensional Modeling Transformations
Camera calibration and epipolar geometry
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Part I: Basics of Computer Graphics Viewing Transformation and Coordinate Systems Chapter
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
2D transformations and homogeneous coordinates Dr Nicolas Holzschuch University of Cape Town Modified.
Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL.
UNIT - 5 3D transformation and viewing. 3D Point  We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented.
Viewing and Projections
776 Computer Vision Jan-Michael Frahm Fall Camera.
Defining complex objects Dr Nicolas Holzschuch University of Cape Town Modified by Longin Jan Latecki.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
1 Fundamentals of Robotics Linking perception to action 2. Motion of Rigid Bodies 南台科技大學電機工程系謝銘原.
3D transformations Dr Nicolas Holzschuch University of Cape Town Modified by Longin Jan Latecki
Plenoptic Modeling: An Image-Based Rendering System Leonard McMillan & Gary Bishop SIGGRAPH 1995 presented by Dave Edwards 10/12/2000.
Viewing CS418 Computer Graphics John C. Hart. Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords.
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
© 97 N. Holzschuch 3D objects representation and data structure Dr Nicolas Holzschuch University of Cape Town
Projections and Perspectives Dr Nicolas Holzschuch University of Cape Town Modified by Longin Jan Latecki.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
©2005, Lee Iverson Lee Iverson UBC Dept. of ECE EECE 478 Viewing and Projection.
Graphics CSCI 343, Fall 2015 Lecture 16 Viewing I
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
3-D Transformational Geometry CS418 Computer Graphics John C. Hart.
Transformations: Projection CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Viewing and Projection. The topics Interior parameters Projection type Field of view Clipping Frustum… Exterior parameters Camera position Camera orientation.
MASKS © 2004 Invitation to 3D vision Lecture 6 Introduction to Algebra & Rigid-Body Motion Allen Y. Yang September 18 th, 2006.
PROJECTIONS PROJECTIONS 1. Transform 3D objects on to a 2D plane using projections 2 types of projections Perspective Parallel In parallel projection,
Instructor: Dr. Shereen Aly Taie Basic Two-Dimensional Geometric Transformation 5.2 Matrix Representations and Homogeneous Coordinates 5.3 Inverse.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Nazar Khan PUCIT Lecture 19
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Viewing Viewing and viewing space (camera space)
Rendering Pipeline Fall, 2015.
Section 12-4 Compositions of Reflections SPI 32D: determine whether the plane figure has been translated given a diagram.
Computer Graphics CC416 Week 15 3D Graphics.
3D Viewing cgvr.korea.ac.kr.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
CSCE 441 Computer Graphics 3-D Viewing
From: The effect of perceived surface orientation on perceived surface albedo in binocularly viewed scenes Journal of Vision. 2003;3(8):2. doi: /3.8.2.
Modeling 101 For the moment assume that all geometry consists of points, lines and faces Line: A segment between two endpoints Face: A planar area bounded.
Three Dimensional Viewing
OpenGL 2D Viewing Pipeline
Computer Graphics Imaging
Planar Geometric Projection Classes
Three-Dimensional Viewing
Chapter V Vertex Processing
Last Time Canonical view pipeline Projection Local Coordinate Space
2D Geometric Transformations
3D Graphics.
Camera Calibration Coordinate change Translation P’ = P – O
Reflections in Coordinate Plane
THREE-DIMENSIONAL VIEWING
3D transformations Dr Nicolas Holzschuch University of Cape Town
Transformations 2 University of British Columbia
Maps one figure onto another figure in a plane.
The Pinhole Camera Model
Presentation transcript:

Projections and Perspectives Dr Nicolas Holzschuch University of Cape Town e-mail: holzschu@cs.uct.ac.za Modified by Longin Jan Latecki latecki@temple.edu Sep. 11, 2002

Projections and Perspectives We have to display our 3D model Screen is 2D Transformation from 3D model coordinates to 2D pixels coordinates. 2D Pixel Coordinates 3D Model

Projections Representation of a 3D scene, for a virtual observer One viewpoint: position of the observer One direction of view: direction where the observer is looking One “up vector”: vertical for the observer

Different projections Parallel projections: no shortening due to distance several kinds, depending on orientation: isometric, cavalier,… Perspective projections: shortening of objects in the distance several kind, depending on orientation: one, two, three vanishing points

Parallel Projection Matrix Parallel projection onto z=0 plane: x’=x, y’=y, w’=w Matrix for this projection:

Perspective Projection Matrix Projection onto plane z=0, with center of projection at z=-d:

Distance to projection plane Center of Projection Projection Plane

Field of view Distance to projection plane not intuitive Easier notion: field of view FOV= angle, in degrees Expresses how wide is my vision

Field of view d Center of Projection 1 a -1 Projection Plane

Homogeneous coordinates Essential for perspective projection Note the shortening of distances uses w Impossible to do without homogeneous

Other viewpoints If we are viewing from another point? Translations: until viewpoint is at origin Rotations: until direction of viewing is on z-axis Back to the previous case

Canonical Coordinates 3D Model Coordinates Canonical 3D coord. 2D Pixel Translate Rotate Projection After translation, before projection: canonical 3D coordinates.

Projections: discussion Projections have several goals: exactitude (e.g. plans for architects) realism (view of a scene, VR) visualization artistic view: non-linear perspectives (e.g. Rubber Soul) An important part of realism in 3D rendering