Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.

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.
1 Projection. 2 Model Transform Viewing Transform Modelview Matrix world coordinates Pipeline Review Focus of this lecture.
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.
1 Chapter 5 Viewing. 2 Perspective Projection 3 Parallel Projection.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006 (Slide set originally by Greg Humphreys)
Projection Projection - the transformation of points from a coordinate system in n dimensions to a coordinate system in m dimensions where m
Viewing and Projections
Computer Graphics (fall 2009)
Advanced Computer Graphics Three Dimensional Viewing
Transformation & Projection Feng Yu Proseminar Computer Graphics :
1 2D Transformations 几何变换. 2 What is a transformation? A transformation is an operation that transforms or changes a shape (line, drawing etc.) There.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Texture Mapping 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics I, Fall 2010 Classical Viewing.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
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,
Computer Graphics Bing-Yu Chen National Taiwan University.
3D Viewing ( From 3D to 2D) Some of the material in these slides have been adapted from the lecture notes of Prof. Tao Ju from Washington University in.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 5.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 2D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 3 of 41 William H. Hsu Department of Computing.
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
Basic Projections 2D to 3D
3D Polygon Rendering Pipeline 원본 – ( Thomas Funkhouser (Princeton.
University of North Carolina at Greensboro
Graphics Graphics Korea University kucg.korea.ac.kr Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
Three-Dimensional Viewing
Three-Dimensional Viewing Hearn & Baker Chapter 7
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Graphics CSCI 343, Fall 2015 Lecture 16 Viewing I
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.
3D Geometric Transformation
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.
Projections Angel: Interactive Computer Graphics.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Graphics Graphics Korea University cgvr.korea.ac.kr Introduction to Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Lecture 19 PROJECTIONS I Taqdees A. Siddiqi
Outline 3D Viewing Required readings: HB 10-1 to 10-10
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,
3D Viewing and Clipping Ming Ouhyoung 歐陽明 Professor Dept. of CSIE and GINM NTU.
3D Rendering 2016, Fall.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Rendering Pipeline Fall, 2015.
University of North Carolina at Greensboro
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
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.
3D Transformation Pipeline
Three Dimensional Viewing
OpenGL 2D Viewing Pipeline
3D Graphics.
Viewing (Projections)
Viewing (Projections)
THREE-DIMENSIONAL VIEWING
Presentation transcript:

Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실

CGVR Graphics Korea University cgvr.korea.ac.kr 3d Rendering Pipeline Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion 3D Primitives Image This is a pipelined sequence of operations to draw a 3D primitive into a 2D image for direct illumination

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system Transform into 2D viewing coordinate system 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system Transform into 2D viewing coordinate system Clip primitives outside window’s view 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system Transform into 2D viewing coordinate system Clip primitives outside window’s view Transform into viewport 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr In Pipeline Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system Transform into 2D viewing coordinate system Clip primitives outside window’s view Transform into viewport Draw pixels(includes texturing, hidden surface etc.) 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr Transformation Transform into3d world coordinate system Model Transformation Lighting Viewing Transformation Projection Transformation Clipping Viewport Transformation Scan Conversion Image Illustrate according to lighting and reflectance Transform into 3D viewing coordinate system Transform into 2D viewing coordinate system Clip primitives outside window’s view Transform into viewport Draw pixels(includes texturing, hidden surface etc.) 3D Primitives

CGVR Graphics Korea University cgvr.korea.ac.kr Transformation 3D Object Coordinate Model Transformation Viewing Transformation Projection Transformation Viewport Transformation p(x’, y’) P(x, y, z) 3D World Coordinate 3D Viewing Coordinate 2D Projection Coordinate 2D Device Coordinate 3D Viewing Coordinate 3D Object Coordinate 3D World Coordinate

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Transformation 3D Object Coordinate Model Transformation Viewing Transformation Projection Transformation Viewport Transformation p(x’, y’) P(x, y, z) 3D World Coordinate Viewing Transformation 3D Viewing Coordinate 2D Projection Coordinate 2D Device Coordinate

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Transformation Mapping from world to Viewing coordinates Origin moves to eye position Up vector maps to Y axis Right vector maps to X axis X Y Z Camera

CGVR Graphics Korea University cgvr.korea.ac.kr Transformation from WC to VC Transformation sequences 1. Translate the view reference point to the origin of the WC system 2. Apply rotations to align the x v, y v, and z v axes with the world axes General sequence of translate-rotate transformation

CGVR Graphics Korea University cgvr.korea.ac.kr Transformation from WC to VC (cont’) Translation view reference point(x 0, y 0, z 0 ) Rotation rotate around the world x w axis to bring z v into the x w z w plane rotate around the world y w axis to align the z w and z v axis final rotation is about the z w axis to align the y w and y v axis

CGVR Graphics Korea University cgvr.korea.ac.kr Transformation from WC to VC (cont’) Rotation by uvn system Calculate unit uvn vectors  N : view-plane normal vector  V : view-up vector  U : perpendicular to both N and V Form the composite rotation matrix

CGVR Graphics Korea University cgvr.korea.ac.kr Camera Models The most common model is pin-hole camera All captured light rays arrive along paths toward focal point without lens distortion (everything is in focus) Sensor response proportional to radiance Other models consider…  Depth of field  Motion blur  Lens distortion

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Parameters Position Eye position(px, py, pz) Orientation View direction(dx, dy, dz) Up direction(ux, uy, uz) Aperture Field of view(xfov, yfov) Film plane “look at” point View plane normal

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Coordinate Canonical coordinate system Convention is right-handed (looking down – z axis) Convention for projection, clipping, etc. X Y Viewing up vector maps to Y axis Viewing right vector maps to X axis Viewing back vector maps to Z axis (potting out of page)

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Transformation Transformation matrix maps camera basis vectors to canonical vectors in viewing coordinate system Right UpBack Eye (0, 0, 1) (0, 1, 0) (1, 0, 0) Matrix

CGVR Graphics Korea University cgvr.korea.ac.kr Viewing Transformation 3D Object Coordinate Model Transformation Viewing Transformation Projection Transformation Viewport Transformation p(x’, y’) P(x, y, z) 3D World Coordinate Projection Transformation 3D Viewing Coordinate 2D Projection Coordinate 2D Device Coordinate

CGVR Graphics Korea University cgvr.korea.ac.kr Projection General definition Transform points in n-space to m-space(m<n) In computer graphics Map viewing coordinates to 2D screen coordinates

CGVR Graphics Korea University cgvr.korea.ac.kr Taxonomy of Projections Planar geometric projection ParallelPerspective OrthographicOblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel & Perspective Parallel Projection Perspective Projection

CGVR Graphics Korea University cgvr.korea.ac.kr Taxonomy of Projections Planar geometric projection ParallelPerspective OrthographicOblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel Projection Center of projection is at infinity Direction of projection (DOP) same for all points View Plane DOP

CGVR Graphics Korea University cgvr.korea.ac.kr Taxonomy of Projections Planar geometric projection ParallelPerspective OrthographicOblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel Projection View Volume

CGVR Graphics Korea University cgvr.korea.ac.kr Orthographic & Oblique Orthographic parallel projection the projection is perpendicular to the view plane Oblique parallel projection The projectors are inclined with respect to the view plane

CGVR Graphics Korea University cgvr.korea.ac.kr Orthographic Projections DOP perpendicular to view plane

CGVR Graphics Korea University cgvr.korea.ac.kr Orthographic Projections DOP perpendicular to view plane Front Top Side

CGVR Graphics Korea University cgvr.korea.ac.kr Orthographic Coordinates

CGVR Graphics Korea University cgvr.korea.ac.kr Oblique Projections DOP not perpendicular to view plane Cavalier (DOP at 45 ) Cabinet (DOP at 63.4 )

CGVR Graphics Korea University cgvr.korea.ac.kr Oblique Projections DOP not perpendicular to view plane Cavalier projection Cabinet projection

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel Projection Matrix General parallel projection transformation Where L 1 is the inverse of tan α, which is also the value of L when z=1

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel Projection Matrix General parallel projection transformation

CGVR Graphics Korea University cgvr.korea.ac.kr Parallel Projection Matrix

CGVR Graphics Korea University cgvr.korea.ac.kr Taxonomy of Projections Planar geometric projection ParallelPerspective OrthographicOblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Map points onto “view plane” along “projectors” emanating from “center of projection”(cop) View Plane Center of Projection Projectors

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection How many vanishing point?

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection How many vanishing point? Three-point perspective

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection How many vanishing point? Three-point perspective Two-point perspective

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection How many vanishing point? Three-point perspective Two-point perspective One-point perspective

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection View Volume

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Compute 2D coordinates from 3D coordinates with similar triangles

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Compute 2D coordinates from 3D coordinates with similar triangles

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Matrix 4x4 matrix representation?

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Matrix 4x4 matrix representation?

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Matrix Perspective projection Perspective transformation Orthographic projection Center of Projection on the x axis Center of Projection on the y axis

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective Projection Matrix 2-point perspectives3-point perspectives

CGVR Graphics Korea University cgvr.korea.ac.kr Taxonomy of Projections Planar geometric projection ParallelPerspective OrthographicOblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point

CGVR Graphics Korea University cgvr.korea.ac.kr Perspective vs. Parallel Perspective projection + Size varies inversely with distance – looks realistic – Distance and angles are not(in general) preserved – Parallel line do not (in general) remain parallel Parallel projection + Good for exact measurements + Parallel lines remain parallel – Angles are not (in general) preserved – Less realistic looking

CGVR Graphics Korea University cgvr.korea.ac.kr Classical Viewing