Perspective CS418 Computer Graphics John C. Hart.

Slides:



Advertisements
Similar presentations
1 Computer Graphics Chapter 8 3D Transformations.
Advertisements

CS 4363/6353 INTRODUCTION TO COMPUTER GRAPHICS. WHAT YOU’LL SEE Interactive 3D computer graphics Real-time 2D, but mostly 3D OpenGL C/C++ (if you don’t.
Based on slides created by Edward Angel
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 5: Viewing
Announcements. Projection Today’s Readings Nalwa 2.1.
CS485/685 Computer Vision Prof. George Bebis
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Lecture 3 – Transformation And Coordinate Systems
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Infinity of Interpretations There are an infinite number of interpretations of the 2D pattern of light on the retina.
CS 450: Computer Graphics 2D TRANSFORMATIONS
12.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 12 – 3D Graphics Transformation Pipeline: Projection and Clipping.
CAP4730: Computational Structures in Computer Graphics 3D Concepts.
COMP 175: Computer Graphics March 24, 2015
Viewing and Projections
Advanced Computer Graphics Three Dimensional Viewing
Week 5 - Wednesday.  What did we talk about last time?  Project 2  Normal transforms  Euler angles  Quaternions.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
CS-378: Game Technology Lecture #2.1: Projection Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney, Zoran Popovic, Jessica.
Computer Graphics Bing-Yu Chen National Taiwan University.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 8 Seeing Depth.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
Transformational Geometry CS418 Computer Graphics John C. Hart.
Viewing CS418 Computer Graphics John C. Hart. Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords.
SE 313 – Computer Graphics Lecture 8: Transformations and Projections Lecturer: Gazihan Alankuş 1.
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
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.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 5: Viewing
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,
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
3-D Transformational Geometry CS418 Computer Graphics John C. Hart.
Taxonomy of Projections FVFHP Figure Taxonomy of Projections.
Transformations: Projection CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Viewing and Projection
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
CS-321 Dr. Mark L. Hornick 1 Three-Dimensional Graphics Problem How can you effectively display 3-D information on a 2-D display?
Ta: Ryan Freedman Sushma Kini Chi Zhou.  Pipeline  Clipping  Transformation, homogeneous coordinates  Lighting  Perspective  Viewing.
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)
Viewing and Projection. The topics Interior parameters Projection type Field of view Clipping Frustum… Exterior parameters Camera position Camera orientation.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
Viewing Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
CS5500 Computer Graphics March 20, Computer Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Outline 3D Viewing Required readings: HB 10-1 to 10-10
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.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Rendering Pipeline Fall, 2015.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016
University of North Carolina at Greensboro
CSE 167 [Win 17], Lecture 5: Viewing Ravi Ramamoorthi
PERSPECTIVE PROJECTION…...
3D Viewing cgvr.korea.ac.kr.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
CSCE 441 Computer Graphics 3-D Viewing
CENG 477 Introduction to Computer Graphics
CSC461: Lecture 19 Computer Viewing
Computer Graphics (Spring 2003)
Projections and Hidden Surface Removal
Chap 3 Viewing Pipeline Reading:
Viewing (Projections)
Viewing (Projections)
컴퓨터 그래픽스를 위한 기하학적 기초 (Line Geometry for Computer Graphics)
Presentation transcript:

Perspective CS418 Computer Graphics John C. Hart

Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords. Clipping Window Coordinates Window Coordinates Window to Viewport Window to Viewport Coordinates Viewport Coordinates Clip Coords. Viewing Coords Perspective Distortion

Graphics Pipeline x y z x y z Model Coords World Coords Viewing Coords Clip Coords Screen Coords

Foreshortening Projections squash receding surfaces Andrea Mantegna The Lamentation over the Dead Christ

Zollner Illusion

Orthographic Projection glOrtho(left,right,bottom,top,near,far) Foreshortens No change in size by depth Projection matrix simply zeros the z- coordinate Ortho Viewing Coordinates Clip Coordinates foreshortening x y x y z View Volume -z (left,top,-near) (right,bottom,-far)

Isometric Projection Foreshortens by using z-coord to shear x and y coordinates Used in videogames to place sprites x clip = x view + z view y clip = y view – z view x clip = x view + y view y clip = -x view + y view + 2z view y x z x y

Isometric Projection h = x + y v = -x + y + 2z y x z h v h v y x z

Perspective Brain depends on shape constancy –Real world objects do not resize –Change in size due to depth Closer objects larger Farther objects smaller © 1997 Illusionworks

Ames Distorting Room

Hering Illusion

A B C

A B C

Linear Perspective Brain depends on shape constancy –Real world objects do not resize –Change in size due to depth Closer objects larger Farther objects smaller How large, how small? Albrecht Durer woodcut c. 1525, swiped from Marc Levoy’s CS48N notes c More Durer, swiped from Fredo Durand’s Art of Depiction ?

Linear Perspective screen -z y z view y view d y clip

Homogeneous Coordinates Fourth homogeneous coordinate can be any non-zero value To find the point it corresponds to: –multiply all four coordinates by the same value –precisely the value that makes the fourth coordinate one When homogeneous coordinate is zero –Denotes a “point” at infinity –Represents a vector instead of a point –Not affected by translation

Linear Perspective screen -z y z view y view d y clip

Perspective Distortion x y x y -z (Using a later version of Perspective matrix that preserves depth ordering)

Parameter d screen -z y z view y view d y clip d’ y' clip y clip = d y view /(-z view ) y' clip = d’ y view /(-z view ) = (d’/d) y clip Changing parameter d just changes scale of projection Using dUsing d’

Parameter d screen -z y z view y view d y clip d’ y' clip screen To change degree of perpective distortion, need to change distance from eye to scene, …by moving scene closer or farther to eye, … along z axis in viewing coordinates

Stereo

Disparity – differences (in image distance) between similar features images (varies with depth) Stereo methods –Cross eye & wall eye –Anaglyph (colored glasses) –Polarized glasses –Field sequential using alternately blinking lcd’s in the glasses –Autostereograms (barrier strip or lenticular)

Rotation v. Shear

Sheared Perspective Shear first, then perspective Shear should preserve plane distance f from eyepoint Shear should move eyepoint d units perp to view direction Translate +f in z direction (remember view in -z dir) Shear the point (0,0,f ) to the point (-d,0,f ) (opposite shear) Translate back, by (0,0,-f ) Apply perspective f d ½ f -½ d