Prof. Lizhuang Ma Shanghai Jiao Tong University

Slides:



Advertisements
Similar presentations
Transforming graphs of functions
Advertisements

3D Clipping & Viewing process
Computer Graphics Lecture 8 Arbitrary Viewing II: More Projection, Clipping and Mathematics of 3D Viewing.
1 Computer Graphics Chapter 8 3D Transformations.
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
©Larry F. Hodges (modified by Amos Johnson) 1 Arbitrary 3-D View-Plane.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
CS 325 Introduction to Computer Graphics 02 / 24 / 2010 Instructor: Michael Eckmann.
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
CS 376 Introduction to Computer Graphics 02 / 26 / 2007 Instructor: Michael Eckmann.
1 Lecture 8 Clipping Viewing transformations Projections.
Viewing Doug James’ CG Slides, Rich Riesenfeld’s CG Slides, Shirley, Fundamentals of Computer Graphics, Chap 7 Wen-Chieh (Steve) Lin Institute of Multimedia.
Visualization- Determining Depth From Stereo Saurav Basu BITS Pilani 2002.
Projection Projection - the transformation of points from a coordinate system in n dimensions to a coordinate system in m dimensions where m
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
CS 325 Introduction to Computer Graphics 03 / 03 / 2010 Instructor: Michael Eckmann.
Copyright  1999 by James H. Money. All rights reserved. Except as permitted under United States Copyright Act of 1976, no part of this publication may.
3D Viewing Perspective Projections Single Point Perspective COP on X-axis COP (-1/p 0 0 1) VP x (1/p 0 0 1)
Computer Graphics (fall 2009)
Advanced Computer Graphics Three Dimensional Viewing
CS 325 Introduction to Computer Graphics 03 / 08 / 2010 Instructor: Michael Eckmann.
Week 5 - Wednesday.  What did we talk about last time?  Project 2  Normal transforms  Euler angles  Quaternions.
Computer Graphics Bing-Yu Chen National Taiwan University.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 5.
Three-Dimensional Viewing Jehee Lee Seoul National University.
CS 376 Introduction to Computer Graphics 02 / 23 / 2007 Instructor: Michael Eckmann.
CS 325 Introduction to Computer Graphics 02 / 26 / 2010 Instructor: Michael Eckmann.
University of North Carolina at Greensboro
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
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
Equations of Circles. You can write an equation of a circle in a coordinate plane, if you know: Its radius The coordinates of its center.
III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.
2D Transformation Homogenous Coordinates Scale/Rotate/Reflect/Shear: X’ = XT Translate: X’ = X + T Multiple values for the same point e.g., (2, 3, 6)
Perspective View Volume View Volume Far Near Window Far Near Window Center of Projection Center of Projection (a) Original Orientation (b) After Transformation.
Three-Dimensional Viewing Clipping Computer Graphics C Version (456p - 462p)
Viewing in 3D Lecture 11. Viewing in 3D2 u The 3D viewing process is inherently more complex than is the 2D viewing process. F In 2D, we simply specify.
3D Viewing and Clipping Ming Ouhyoung 歐陽明 Professor Dept. of CSIE and GINM NTU.
CS552: Computer Graphics Lecture 9: Perspective Projection.
CS552: Computer Graphics Lecture 12: 3D Clipping.
Three Dimensional Viewing
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Computer Graphics CC416 Week 14 3D Graphics.
University of North Carolina at Greensboro
Prof. Lizhuang Ma Shanghai Jiao Tong University
CSCE 441 Computer Graphics 3-D Viewing
Normalizing Transformation (I)
Viewing in 3D Chapter 6.
3D rezanje 3D Clipping view frustrum clipping planes clipped.
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.
CENG 477 Introduction to Computer Graphics
3D Clipping.
CSC461: Lecture 19 Computer Viewing
Viewing Rectangle Coordinates (VRC)
Computer Graphics : Viewing in 3D_4
Fundamentals of Computer Graphics Part 5 Viewing
OpenGL 2D Viewing Pipeline
3D rezanje 3D Clipping view frustrum clipping planes clipped.
Geometrical Transformations
Transformations.
THREE-DIMENSIONAL VIEWING II
THREE-DIMENSIONAL VIEWING
1.1 Summation.
컴퓨터 그래픽스를 위한 기하학적 기초 (Line Geometry for Computer Graphics)
Viewing Transformations II
Translation in Homogeneous Coordinates
Presentation transcript:

Prof. Lizhuang Ma Shanghai Jiao Tong University Viewing in 3D Prof. Lizhuang Ma Shanghai Jiao Tong University

Contents 3D Viewing Process Specification of an Arbitrary 3D View Orthographic Parallel Projection Perspective Projection 3D Clipping for Canonical View Volume

3D Viewing Process

Specification of an Arbitrary 3D View VRP: view reference point VPN: view-plane normal VUP: view-up vector

VRC: The Viewing-reference Coordinate System CW: center of the window

Infinite Parallelepiped View Volume DOP: direction of projection PRP: center of projection

Truncated View Volume for an Orthographic Parallel Projection

The Mathematics of Orthographic Parallel

The Steps of Implementation of Orthographic Parallel Projection Translate the VRP to the origin Rotate VRC such that the VPN becomes the z axis Shear such that the DOP becomes parallel to the z axis Translate and scale into the parallel-projection canonical view volume

Truncated View Volume for an Perspective Projection

The Mathematics of Perspective Projection

The Mathematics of Perspective Projection

The Steps of Implementation of Perspective Projection Translate the VRP to the origin Rotate VRC such that the VPN becomes the z axis Translate such that the PRP is at the origin Shear such that the DOP becomes parallel to the z axis Scale such that the view volume becomes the canonical perspective view volume

Alternative Perspective Projection

Canonical View Volume for Orthographic Parallel Projection x=-1, y=-1, z=0 x=1, y=1, z=-1

The Extension of the Cohen-Sutherland Algorithm bit 1 – point is above view volume y > 1 bit 2 – point is below view volume y < -1 bit 3 – point is right of view volume x > 1 bit 4 – point is left of view volume x < -1 bit 5 – point is behind view volume z < -1 bit 6 – point is in front of view volume z > 0

Intersection of a 3D Line A line from to can be represented as So when y=1

Canonical View Volume for Perspective Projection x = z, y = z, z = -zmin x = -z, y = -z, z = -1

Perspective Projection

The Extension of the Cohen-Sutherland Algorithm bit 1 – point is above view volume y > -z bit 2 – point is below view volume y < z bit 3 – point is right of view volume x > -z bit 4 – point is left of view volume x < z bit 5 – point is behind view volume z < -1 bit 6 – point is in front of view volume z > zmin

Intersection of a 3D Line So when y = z:

Clipping in Homogeneous Coordinates Why clip in homogeneous coordinates? It is possible to transform the perspective-projection canonical view volume into the parallel-projection canonical view volume

Clipping in Homogeneous Coordinates The corresponding plane equations are: X = -W X = W Y = -W Y = W Z = -W Z = 0