Reading. Angel. Chapter 5. Optional

Similar documents
Reading. Projections. The 3D synthetic camera model. Imaging with the synthetic camera. Angel. Chapter 5. Optional

Reading. Projections. Projections. Perspective vs. parallel projections. Foley et al. Chapter 6. Optional. Perspective projections pros and cons:

3D Viewing. Introduction to Computer Graphics Torsten Möller / Manfred Klaffenböck. Machiraju/Zhang/Möller

Reading. 8. Projections. 3D Geometry Pipeline. 3D Geometry Pipeline (cont d) Required: w Watt, Section

Graphic Communications

CS475/CS675 Computer Graphics

Introduction to Computer Graphics (CS602) Lecture 19 Projections

Introduction to Projection The art of representing a three-dimensional object or scene in a 2D space is called projection.

3D COMPUTER GRAPHICS

Transform 3D objects on to a 2D plane using projections

3D Viewing I. Acknowledgement: Some slides are from the Dr. Andries van Dam lecture. CMSC 435/634 August D Viewing I # /27

Classical Viewing. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

CS354 Computer Graphics Viewing and Projections

Projections Computer Graphics and Visualization

Projections. Conceptual Model of the 3D viewing process

3D Viewing I. From 3D to 2D: Orthographic and Perspective Projection Part 1

History of projection. Perspective. History of projection. Plane projection in drawing

Perspective. Announcement: CS4450/5450. CS 4620 Lecture 3. Will be MW 8:40 9:55 How many can make the new time?

VIEWING 1. CLASSICAL AND COMPUTER VIEWING. Computer Graphics

ENGINEERING GRAPHICS 1E9

Graphics and Interaction Perspective Geometry

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

Exploring 3D in Flash

3D Viewing. Projections. Perspective A B B. Projectors. Center of Projection. Projection Plane

Perspective. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

Multiviews and Auxiliary Views

Visual Imaging in the Electronic Age. Drawing Perspective Images

Visual Imaging in the Electronic Age. Drawing Perspective Images

Lecture 2 of 41. Viewing 1 of 4: Overview, Projections

Lecture 2 of 41. Viewing 1 of 4: Overview, Projections

Orthographic Projection

11/12/2015 CHAPTER 7. Axonometric Drawings (cont.) Axonometric Drawings (cont.) Isometric Projections (cont.) 1) Axonometric Drawings

AML710 CAD LECTURE Parallel Projections a) Orthographic Projections b) Axonometric Projections 2. Perspective Transformations and Projections

ME 111: Engineering Drawing

Visual Imaging in the Electronic Age. Drawing Perspective Images

Perspective. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 5

Image Formation. World Optics Sensor Signal. Computer Vision. Introduction to. Light (Energy) Source. Surface Imaging Plane. Pinhole Lens.

Perspective in 2D Games

Student Name: Teacher: Date: District: Rowan. Assessment: 9_12 T and I IC61 - Drafting I Test 1. Description: Unit C - Sketching - Test 2.

Isometric Drawing Chapter 26

PROJECTIONS PARALLEL CONICAL PROJECTIONS PROJECTIONS OBLIQUE ORTHOGRAPHIC PROJECTIONS PROJECTIONS

Unit 1: Image Formation

CS337 INTRODUCTION TO COMPUTER GRAPHICS. Viewing. Part I (History and Overview of Projections) Bin Sheng 1 / 46 10/04/2016

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Viewing. Part I (History and Overview of Projections) Andries van Dam 1 / 46 10/05/2017

Engineering Drawing Lecture 5 PROJECTION THEORY

Multiview Drawing. Definition: Graphical representation of a 3- dimensional object on one plane (sheet of paper) using two or more views.

Chapter 5 Pictorial sketching

Perspective in 2D Games

ORTHOGRAPHIC PROJECTIONS. Ms. Sicola

Perspective in 2D Games

How do we see the world?

Dr F. Cuzzolin 1. September 29, 2015

CS-184: Computer Graphics. Today

ENGINEERING DRAWING. 1. Set squares are used to draw different angles. What is the angel a formed by the 45⁰ set square? Give a brief answer.

Dr. Reham Karam. Perspective Drawing. For Artists & Designers. By : Dr.Reham Karam

ORTHOGRAPHIC PROJECTION

DMT113 Engineering Drawing. Chapter 3 Stretch System

Isometric Projection Drawing CHAPTER 6

MEM: Intro to Robotics. Assignment 3I. Due: Wednesday 10/15 11:59 EST

(Ans:d) a. A0 b. A1 c. A2 d. A3. (Ans:b) (Ans:a) (Ans:d) (Ans:d)

Auxiliary view KCEC1101

CLASS views from detail on a grid paper. (use appropriate line types to show features) - Optional views. Turn in for grading on class 6 (06/04)

TSBB09 Image Sensors 2018-HT2. Image Formation Part 1

1 st Subject: Types of Pictorial Drawings (Isometric, Oblique, and Perspective)

Cameras. CSE 455, Winter 2010 January 25, 2010

IMAGE FORMATION. Light source properties. Sensor characteristics Surface. Surface reflectance properties. Optics

Pictorial Drawings. DFTG-1305 Technical Drafting Prepared by Francis Ha, Instructor

Graphical Communication for Engineering ENSC 204 Final Exam

UNIT 5a STANDARD ORTHOGRAPHIC VIEW DRAWINGS

Two strategies for realistic rendering capture real world data synthesize from bottom up

I B.TECH- I SEMESTER DEPARTMENT OF MECHANICAL ENGINEERING ENGINEERING DRAWING

Intorduction to light sources, pinhole cameras, and lenses

ME1105 Engineering Drawing & Design

Lecture 7: homogeneous coordinates

Drawing: technical drawing TECHNOLOGY

Single-view Metrology and Cameras

Chapter 3 Mirrors. The most common and familiar optical device

Projections Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

Lecture 02 Image Formation 1

60 Most Important Engineering Drawing Questions

Overview. Image formation - 1

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

King Saud University College of Science Physics & Astronomy Dept.

6.098 Digital and Computational Photography Advanced Computational Photography. Bill Freeman Frédo Durand MIT - EECS

Viewing. Perspective views. Parallel l views. Finite COP (center of projection) COP at infinity DOP (direction of projection) Parallel View

LENSES. A lens is any glass, plastic or transparent refractive medium with two opposite faces, and at least one of the faces must be curved.

Viewing. Perspective views. Parallel l views. Finite COP (center of projection) COP at infinity DOP (direction of projection) Parallel View

Section 3. Imaging With A Thin Lens

Chapter 5. Drawing a cube. 5.1 One and two-point perspective. Math 4520, Spring 2015

Waves & Oscillations

Copyrighted Material. Copyrighted Material. Copyrighted. Copyrighted. Material

Chapter 8. Technical Drawings

Projection. Readings. Szeliski 2.1. Wednesday, October 23, 13

ORTHOGRAPHIC PROJECTION

Chapter 36. Image Formation

Volume 1 - Module 6 Geometry of Aerial Photography. I. Classification of Photographs. Vertical

UNIT SUMMARY: Electromagnetic Spectrum, Color, & Light Name: Date:

Engineering Graphics, Class 13 Descriptive Geometry. Mohammad I. Kilani. Mechanical Engineering Department University of Jordan

CS6670: Computer Vision

Chapters 1 & 2. Definitions and applications Conceptual basis of photogrammetric processing

Transcription:

Projections

Reading Angel. Chapter 5 Optional David F. Rogers and J. Alan Adams, Mathematical Elements for Computer Graphics, Second edition, McGraw-Hill, New York, 1990, Chapter 3.

The 3D synthetic camera model The synthetic camera model involves two components, specified independently: w objects (a.k.a. geometry) w viewer (a.k.a. camera)

Imaging with the synthetic camera The image is rendered onto an image plane or projection plane (usually in front of the camera). Projectors emanate from the center of projection (COP) at the center of the lens (or pinhole). The image of an object point P is at the intersection of the projector through P and the image plane.

Specifying a viewer Camera specification requires four kinds of parameters: w Position: the COP. w Orientation: rotations about axes with origin at the COP. w Focal length: determines the size of the image on the film plane, or the field of view. w Film plane: its width and height, and possibly orientation.

3D Geometry Pipeline

Projections Projections transform points in n-space to m-space, where m < n. In 3D, we map points from 3-space to the projection plane (PP) along projectors emanating from the center of projection (COP). PP COP There are two basic types of projections: w w Perspective - distance from COP to PP finite Parallel - distance from COP to PP infinite

Parallel and Perspective Projection

Perspective vs. parallel projections Perspective projections pros and cons: + Size varies inversely with distance - looks realistic Distance and angles are not (in general) preserved Parallel lines do not (in general) remain parallel Parallel projection pros and cons: Less realistic looking + Good for exact measurements + Parallel lines remain parallel Angles not (in general) preserved

Parallel projections For parallel projections, we specify a direction of projection (DOP) instead of a COP. There are two types of parallel projections: w Orthographic projection DOP perpendicular to PP w Oblique projection DOP not perpendicular to PP

Orthographic Projections

Orthographic transformation For parallel projections, we specify a direction of projection (DOP) instead of a COP. We can write orthographic projection onto the z=0 plane with a simple matrix. x x ' 1 0 0 0 y y ' = 0 1 0 0 z 1 0 0 0 1 1 Normally, we do not drop the z value right away. Why not?

Oblique Projections

Oblique projections Two standard oblique projections: w Cavalier projection DOP makes 45 angle with PP Does not foreshorten lines perpendicular to PP w Cabinet projection DOP makes 63.4 angle with PP Foreshortens lines perpendicular to PP by one-half

Projection taxonomy

Properties of projections The perspective projection is an example of a projective transformation. Here are some properties of projective transformations: w Lines map to lines w Parallel lines don t necessarily remain parallel w Ratios are not preserved

A typical eye space w w Eye Acts as the COP Placed at the origin Looks down the z-axis Screen Lies in the PP Perpendicular to z-axis At distance d from the eye Centered on z-axis, with radius s Q: Which objects are visible?

Eye space è screen space Q: How do we perform the perspective projection from eye space into screen space? Using similar triangles gives: x xʹ (x,y,z) d z

Eye space è screen space, cont. We can write this transformation in matrix form: X 1 0 0 0 x x Y 0 1 0 0 y y = MP = = Z 0 0 1 0z z W 0 0 1/ d 0 1 z/ d Perspective divide: x X / W z/ d Y / W y = Z/ W z/ d W / W d 1

Projective Normalization After perspective transformation and perspective divide, we apply parallel projection (drop the z) to get a 2D image.

Perspective depth Q: What did our perspective projection do to z? Often, it s useful to have a z around e.g., for hidden surface calculations.

Vanishing points Under perspective projections, any set of parallel lines that are not parallel to the PP will converge to a vanishing point. Vanishing points of lines parallel to a principal axis x, y, or z are called principal vanishing points. How many of these can there be?

The equation for a line is: px vx p y v y l= p+ tv = + t pz vz 1 0 Vanishing points After perspective transformation we get: x' px + tvx y' py tv = + y w' ( pz + tvz)/ d

Vanishing points (cont'd) Dividing by w: Letting t go to infinity: We get a point! What happens to the line l = q + tv? Each set of parallel lines intersect at a vanishing point on the PP. Q: How many vanishing points are there? ' ' ' 1 x x z z y y z z p tv d p tv x p tv y d p tv w + + + = + ' lim ' ' 1 t x z y z v d v x v y d v w =

Vanishing Points

Types of perspective drawing If we define a set of principal axes in world coordinates, i.e., the x w, y w, and z w axes, then it's possible to choose the viewpoint such that these axes will converge to different vanishing points. The vanishing points of the principal axes are called the principal vanishing points. Perspective drawings are often classified by the number of principal vanishing points. w One-point perspective simplest to draw w Two-point perspective gives better impression of depth w Three-point perspective most difficult to draw All three types are equally simple with computer graphics.

In general, the matrix General perspective projection 1 p 1 q 1 r s performs a perspective projection into the plane px + qy + rz + s = 1. Q: Suppose we have a cube C whose edges are aligned with the principal axes. Which matrices give drawings of C with w one-point perspective? w two-point perspective? w three-point perspective?

General Projections Suppose you have a camera with COP c, and x, y, and z axes are unit vectors i, j and k respectively. How do we compute the projection?

World Space Camera

Hither and yon planes In order to preserve depth, we set up two planes: w The hither (near) plane w The yon (far) plane

Projection taxonomy

Summary Here s what you should take home from this lecture: w The classification of different types of projections. w The concepts of vanishing points and one-, two-, and three-point perspective. w An appreciation for the various coordinate systems used in computer graphics. w How the perspective transformation works.