3D Viewing cgvr.korea.ac.kr.

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 Lecture 8 Clipping Viewing transformations Projections.
Viewing Transformations
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.
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
Advanced Computer Graphics Three Dimensional Viewing
Transformation & Projection Feng Yu Proseminar Computer Graphics :
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
Camera. Content Coordinate systems and transformations Viewing coordinates Coordinate transformation matrix Projections Window and viewport Acknowledgments:
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
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.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
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
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
Three-Dimensional Viewing
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
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.
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.
Perspective View Volume View Volume Far Near Window Far Near Window Center of Projection Center of Projection (a) Original Orientation (b) After Transformation.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
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 Rendering 2016, Fall.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Three Dimensional Viewing
Visible Surface Detection
Viewing Viewing and viewing space (camera space)
Rendering Pipeline Fall, 2015.
Computer Graphics CC416 Week 14 3D Graphics.
University of North Carolina at Greensboro
PERSPECTIVE PROJECTION…...
Projection Our 3-D scenes are all specified in 3-D world coordinates
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
Computer Graphics Viewing
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.
Unit 4 3D Viewing Pipeline Part - 2
3D Transformation Pipeline
CENG 477 Introduction to Computer Graphics
Viewing/Projections I Week 3, Fri Jan 25
Three Dimensional Viewing
OpenGL 2D Viewing Pipeline
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016
Computer Graphics (Spring 2003)
Planar Geometric Projection Classes
Three-Dimensional Viewing
Last Time Canonical view pipeline Projection Local Coordinate Space
3D Graphics.
Chap 3 Viewing Pipeline Reading:
Viewing (Projections)
Viewing (Projections)
THREE-DIMENSIONAL VIEWING II
THREE-DIMENSIONAL VIEWING
Presentation transcript:

3D Viewing cgvr.korea.ac.kr

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

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

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

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

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

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

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

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

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

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

Viewing Transformation P(x, y, z) 3D Object Coordinate Model Transformation 3D World Coordinate Viewing Transformation Viewing Transformation 3D Viewing Coordinate Projection Transformation 2D Projection Coordinate Viewport Transformation 2D Device Coordinate p(x’, y’) 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 Y Z Camera X 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 xv, yv, and zv axes with the world axes General sequence of translate-rotate transformation cgvr.korea.ac.kr

Transformation from WC to VC (cont’) Translation view reference point(x0, y0, z0) Rotation rotate around the world xw axis to bring zv into the xwzw plane rotate around the world yw axis to align the zw and zv axis final rotation is about the zw axis to align the yw and yv axis 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.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.korea.ac.kr

Viewing Parameters Position Orientation Aperture Film plane 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.korea.ac.kr

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

Viewing Transformation Transformation matrix maps camera basis vectors to canonical vectors in viewing coordinate system (0, 1, 0) Back Up Matrix (1, 0, 0) Eye Right (0, 0, 1) cgvr.korea.ac.kr

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

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

Taxonomy of Projections Planar geometric projection Parallel Perspective Orthographic Oblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point cgvr.korea.ac.kr

Parallel & Perspective Parallel Projection Perspective Projection cgvr.korea.ac.kr

Taxonomy of Projections Planar geometric projection Parallel Perspective Orthographic Oblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point cgvr.korea.ac.kr

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

Taxonomy of Projections Planar geometric projection Parallel Perspective Orthographic Oblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point cgvr.korea.ac.kr

Parallel Projection View Volume 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.korea.ac.kr

Orthographic Projections DOP perpendicular to view plane cgvr.korea.ac.kr

Orthographic Projections DOP perpendicular to view plane Front Top Side cgvr.korea.ac.kr

Orthographic Coordinates cgvr.korea.ac.kr

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

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

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

Parallel Projection Matrix General parallel projection transformation cgvr.korea.ac.kr

Parallel Projection Matrix cgvr.korea.ac.kr

Taxonomy of Projections Planar geometric projection Parallel Perspective Orthographic Oblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point cgvr.korea.ac.kr

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

Perspective Projection How many vanishing point? cgvr.korea.ac.kr

Perspective Projection How many vanishing point? Three-point perspective cgvr.korea.ac.kr

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

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

Perspective Projection View Volume cgvr.korea.ac.kr

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

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

Perspective Projection Matrix 4x4 matrix representation? cgvr.korea.ac.kr

Perspective Projection Matrix 4x4 matrix representation? cgvr.korea.ac.kr

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

Perspective Projection Matrix 2-point perspectives 3-point perspectives cgvr.korea.ac.kr

Taxonomy of Projections Planar geometric projection Parallel Perspective Orthographic Oblique Top Front Side Axonometric Cabinet Cavalier Other One-point Two-point Three-point 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.korea.ac.kr

Classical Viewing cgvr.korea.ac.kr

Thanks… cgvr.korea.ac.kr