1 Projection. 2 Model Transform Viewing Transform Modelview Matrix world coordinates Pipeline Review Focus of this lecture.

Slides:



Advertisements
Similar presentations
Three Dimensional Viewing
Advertisements

Projection.
ENGINEERING GRAPHICS 1E7
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
Lecture 3 Sunday, 03 May ENGINEERING GRAPHICS 1E7 Lecture 3: Orthographic Projections.
Engineering Design and Presentation Introduction to Pictorials, Specifically Isometrics Copyright © Texas Education Agency, All rights reserved.
SDC PUBLICATIONS © 2012 Chapter 6 Pictorials and Sketching Objectives:  Understand the importance of Freehand Sketching.  Understand the terminology.
Engineering Design and Presentation
ENGINEERING GRAPHICS 1E9
正投影圖 3D object is projected onto a plane orthogonally
ENGINEERING GRAPHICS 1E9
Lecture 5 Monday, 29 June ENGINEERING GRAPHICS 1E7 Lecture 5: Isometric Projections.
Classical Viewing CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
IT- 601: Computer Graphics Lecture-11 Mathematics of Projection Jesmin Akhter Lecturer,IIT Jahangirnagar University, Savar, Dhaka,Bangladesh.
Visualization and Graphics Introduction
Engineering Drawing and Design Chapter 15 Pictorial Drawings
GMED UNIT 1 Pictorial Drawings.
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 Classical Viewing. 2 Objectives Introduce the classical views Compare and contrast image formation by computer with how images have been formed by architects,
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Bing-Yu Chen National Taiwan University.
Pictorial Drawings and Technical Illustrations
Fundamental principles of technical sketching and visualization techniques Unit B, Objective 4.01.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
Perspective Drawing Techniques
Basic Projections 2D to 3D
CS5500 Computer Graphics March 12, 2007.
University of North Carolina at Greensboro
2003CS Hons RW778 Graphics1 Chapter 7: Three-Dimensional Viewing Chapter 5: Camera with parallel projection Chapter 5: Camera with parallel projection.
Computer Graphics Lecture 08 Fasih ur Rehman. Last Class Ray Tracing.
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,
Perspective Drawing for Technical Illustration References: 11, 2, 323.
SANTANA DRAFTING MULTIVIEWS 1 An introduction Mr. Fitzgerald Rm
Projection.
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.
TA 101: Technical Arts II Dr. Prishati Raychowdhury Department of Civil Engineering IIT Kanpur Office: FB 330; Phone: 6692
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Section 2 Drafting Techniques and Skills
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Introduction to Pictorials, Specifically Isometrics Copyright © Texas Education Agency, All rights reserved.
◦ Are the group of rules and geometric methods to define the shape of three dimensional objects on a plane. ◦ They give us information about the measurement.
Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi
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,
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
University of North Carolina at Greensboro
Projection Our 3-D scenes are all specified in 3-D world coordinates
MULTIVIEWS 1 An introduction
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
CSCE 441 Computer Graphics 3-D Viewing
CSC461: Lecture 18 Classical Viewing
Engineering Communications GL2 Geometric modelling Projection Systems
Orthographic Projection
Classical Viewing Ed Angel
Orthographic Projection
Isaac Gang University of Mary Hardin-Baylor
Three Dimensional Viewing
Planar Geometric Projection Classes
3D Graphics.
Viewing (Projections)
Viewing (Projections)
University of New Mexico
Isaac Gang University of Mary Hardin-Baylor
Presentation transcript:

1 Projection

2 Model Transform Viewing Transform Modelview Matrix world coordinates Pipeline Review Focus of this lecture

3 Review (Lines in R 2 )

4 Parallel Projection Projection (R 2 ) viewpoint viewline

5 Perspective Projection ~ ~

6 Parallel Projection ~ ~

7 Projection (R 3 ) See handout for proof!

8 Example Vertices (0,0,0), (2,0,0), (2,3,0), (0,3,0) (1,1,1), (1,2,1) Parallel projection: onto z = 0 plane v = (0,0,1,0) T, n = (0,0,1,0) T

9 Vertices (0,0,0), (2,0,0), (2,3,0), (0,3,0) (1,1,1), (1,2,1) Perspective projection: onto z = 0 plane from viewpoint (1,5,3) v = (1,5,3,1) T, n = (0,0,1,0) T

10 p’ p”O Viewplane Coordinate Mapping

11 Determine Viewplane Transform by Homogeneous Transformation K 4×3

12 L L L: left inverse of K

13 Example Viewplane origin (1,2,0) u-axis (3,4,0) v-axis (-4,3,0)

14 Orthographic Projection Def: direction of projection  viewplane v n … is a parallel projection

15 Definitions Direction cosine (ref)ref Foreshortening ratio = (length of projected segment)/(length of original segment)

16 Theorem If the direction cosines of the plane normal (in world coordinate system) are n 1, n 2, and n 3, the foreshortening ratios in the x-, y-, and z- directions are (n n 3 2 ) 1/2, (n n 3 2 ) 1/2, and (n n 2 2 ) 1/2, respectively. Front, side, top views: n = (1,0,0,0), (0,1,0,0), or (0,0,1,0) as in engineering drawings

17 Types of Orthographic Projections Axonometric projections: attempts to portray general 3D shape –Isometric projection: all foreshortening ratio are the same –Dimetric projection: exactly two are the same –Trimetric projection: all foreshortening ratio are different

18 Axonometric Projections IsometricDimetricTrimetric f: foreshortening ratios

19 Example (Dimetric)

20

21 Oblique Projection A particular parallel projection where direction of projection is not perpendicular to viewplane v n Oblique projection not available in OpenGL

22 Cavalier Projection Lines  viewplane have f = 1 Planar faces  viewplane appear thicker v  /4 n Properties: viewplane

23 Cabinet Projection To overcome ‘thickness’ problem, choose f  viewplane to be 1/2 Properties:  = arccot(2) v n

24 Perspective Projection A perspective projection maps parallel lines in the space to parallel lines in the viewplane IFF the lines are parallel to the viewplane.

25 Otherwise, they meet

26 Vanishing Point Suppose (x i, y i, z i ) i =1,2,3 are a set of mutually perpendicular vectors. The viewplane normal (n 1, n 2, n 3 ) of a perspective projection can be perpendicular to (a) none (b) one (c) two of the vectors. (a) (b)(c) n n n

27 Vanishing Point If a perspective projection maps a point-at- infinity (x,y,z,0) to a finite point (x’,y’,z’,1) on the viewplane, the lines in the direction (x,y,z) appear as lines converging to point on the (Cartesian) viewplane. The point (x’,y’,z’) is called the vanishing point in the direction (x,y,z).

28 Three-point perspective Two-point perspective One-point perspective Vanishing point

29 IMAGE FORMATION – Perspective Imaging Image courtesy of C. Taylor “The Scholar of Athens,” Raphael, 1518

30 Example Determine (and verify it is indeed so) the vanishing point of an OpenGL setting. Eye = [15,0,0] Eye = [15,0,15]

31 Numeric Example How about (1,0,1,0)? Viewpoint (15,0,15,1) Viewplane: x + z + 1 = 0

32 Summary Projection –Parallel projection –Perspective projection Parallel projection –Orthographic Isometric Dimetric Trimetric –Oblique Cavalier Cabinet Perspective projection –Three-point perspective –Two-point perspective –One-point perspective Understand how they are differentiated

33 Fig. 8. Constructing a perspective image of a house. (a) Drawing the floor plan and defining the viewing conditions (observer position and image plane). (b) Constructing a perspective view of the floor. (c) A reference height (in this case the height of an external wall) is drawn from the ground line and the first wall is constructed in perspective by joining the reference end points to the horizontal vanishing point v2. (d) All four external walls are constructed. (e) The elevations of all other objects (the door, windows and roofs) are first defined on the reference segment and then constructed in the rendered perspective view.

34 Exercise Hand sketch a perspective drawing of a house Use Maxima to compute 2-point perspective projection, setting viewplane coordinate system

35 Cross Ratio The cross-ratio of every set of four collinear points shown in this figure has the same value Cross ratio is preserved in projective geometry (ratio is NOT preserved) z1z1 z2z2 z3z3 z4z4