Viewing Transformations CS5600 Computer Graphics by Rich Riesenfeld 5 March 2002 Lecture Set 11.

Slides:



Advertisements
Similar presentations
Lecture 3: Transformations and Viewing. General Idea Object in model coordinates Transform into world coordinates Represent points on object as vectors.
Advertisements

2D Geometric Transformations
Transformations II CS5600 Computer Graphics Rich Riesenfeld Spring 2005 Lecture Set 7.
Part I: Basics of Computer Graphics Viewing Transformation and Coordinate Systems Chapter
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 5: Viewing
1 CSCE 441 Computer Graphics: 2D Transformations Jinxiang Chai.
Transformations II CS5600 Computer Graphics by Rich Riesenfeld 4 March 2002 Lecture Set 6.
Course Website: Computer Graphics 3: 2D Transformations.
Transformations I CS5600Computer Graphics by Rich Riesenfeld 27 February 2002 Lecture Set 5.
Visualization- Determining Depth From Stereo Saurav Basu BITS Pilani 2002.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
CAP4730: Computational Structures in Computer Graphics
2D Transformations. World Coordinates Translate Rotate Scale Viewport Transforms Hierarchical Model Transforms Putting it all together.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
CS 450: Computer Graphics 2D TRANSFORMATIONS
10/5/04© University of Wisconsin, CS559 Fall 2004 Last Time Compositing Painterly Rendering Intro to 3D Graphics Homework 3 due Oct 12 in class.
Mathematical Fundamentals
Transformations Aaron Bloomfield CS 445: Introduction to Graphics
COMP 175: Computer Graphics March 24, 2015
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.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Transformations Dr. Amy Zhang.
Lecture Notes: Computer Graphics.
Week 5 - Wednesday.  What did we talk about last time?  Project 2  Normal transforms  Euler angles  Quaternions.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
Computer Graphics, KKU. Lecture 51 Transformations Given two frames in an affine space of dimension n, we can find a ( n+1 ) x ( n +1) matrix that.
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
10/3/02 (c) 2002 University of Wisconsin, CS 559 Last Time 2D Coordinate systems and transformations.
1 Computer Graphics Week9 -3D Geometric Transformation.
Chapter 9 Transformations.
Transformational Geometry CS418 Computer Graphics John C. Hart.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
Viewing CS418 Computer Graphics John C. Hart. Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords.
CS 4731: Computer Graphics Lecture 13: Projection Emmanuel Agu.
CS559: Computer Graphics Lecture 9: Rasterization Li Zhang Spring 2008.
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
CS559: Computer Graphics Lecture 8: Warping, Morphing, 3D Transformation Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Computer Graphics 3D Transformations. Translation.
Objective: Students will be able to represent translations, dilations, reflections and rotations with matrices.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 5: Viewing
2/19/04© University of Wisconsin, CS559 Spring 2004 Last Time Painterly rendering 2D Transformations –Transformations as coordinate system changes –Transformations.
12-Perspective Depth Assoc.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department Gebze Technical.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
3-D Geometric Transformations
3-D Transformational Geometry CS418 Computer Graphics John C. Hart.
Transformations: Projection CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Fall 2004CS-321 Dr. Mark L. Hornick 1 2-D Transformations World Coordinates Local/Modelling Coordinates x y Object descriptions Often defined in model.
CS5500 Computer Graphics April 23, Today’s Topic Details of the front-end of the 3D pipeline: –How to construct the viewing matrix? –How to construct.
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
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.
 An image is the new figure, and the preimage is the original figure  Transformations-move or change a figure in some way to produce an image.
Instructor: Mircea Nicolescu Lecture 9
Coordinate Systems and Transformations
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
CS5500 Computer Graphics March 20, Computer Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Computer Viewing Isaac Gang University of Mary Hardin-Baylor.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
Coordinate Systems Lecture 20 Wed, Oct 15, Object Coordinates Each object has its own “local” coordinate system, called object coordinates. Normally.
Modeling Transformations
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
CSE 167 [Win 17], Lecture 5: Viewing Ravi Ramamoorthi
Geometric Transformations Hearn & Baker Chapter 5
Graphics Fundamentals
Viewing Transformations
Lecture 8: 3D Transforms Li Zhang Spring 2008
CS5500 Computer Graphics April 24, 2006.
Translation in Homogeneous Coordinates
Presentation transcript:

Viewing Transformations CS5600 Computer Graphics by Rich Riesenfeld 5 March 2002 Lecture Set 11

Homogeneous Coordinates An infinite number of points correspond to (x,y,1). They constitute the whole line (tx,ty,t). w = 1 (tx,ty,t) (x,y,1)

CS56003 Illustration: Old Style, Simple Transformation Sequence for 3D Viewing

CS56004 Simple Viewing Transformation Example PointsABCDEFGH X11 11 Y11 11 Z 1111

Simple Cube Viewed from (6,8,7.5) A=(-1,1,-1) B=(1,1,-1) C=(1,-1,-1) D=(-1,-1,-1) G=(1,-1,1) E=(-1,1,1) H=(-1,-1,1) F=(1,1,1)

CS56006 Topology of Cube ABCDEFGH A B C D E F G H BC E H D F G A

CS56007 Topology of Cube A:BDE B:ACF C:BDG D:ACH E:AFH F:BEG G:CFH H:DEG BC E H D F G A

CS56008 Simple Example Give a Cube with corners View from Eye Position (6,8,7.5) Look at Origin (0,0,0) “Up” is in z-direction

CS56009 Translate Origin by (6,8,0)

CS Simple Viewing Transformation Example

CS Build LH Coord with (6,8,0)

CS Build LH Coord with

CS Rotate about y with (6,8,0)

CS Simple Viewing Transformation Example

CS Rotate about x-axis with

CS Look at the (3-4-5) Right Triangle (4) (5) (3)

CS Simple Viewing Transformation Examle

CS View on 10x10 screen, 20 away 10 20

CS Map to canonical frustum 20

CS Scale x,y by 2 for normalization Will view a 20”x20” screen from 20” away. Scale to standard viewing frustum.

CS Simple Viewing Transformation Example

CS Clipping not needed, so project

CS Transformation of Cube

CS Cube Transformed for Viewing PtsABCDEFGH X Y Z

G=(-2.8,1.84) 25 PtXY A B C D0.408 E F G H A:BDE B:ACF C:BDG D:ACH E:AFH F:BEG G:CFH H:DEG Transformed Cube B=(-0.4,-3.28) C=(-2.8,-1.36) D=(0.4,.08) E=(2.8,1.36) A=(2.8,-1.84) H=(0.4,3.28) F=(-0.4,-.08)

CS Recall mapping [a,b] [-1,1] Translate center of interval to origin Normalize interval to [-1,1]

CS Substitute x =a: x Recall mapping [a,b] [-1,1]

CS Substitute x =b: x Recall mapping [a,b] [-1,1]

CS Map to the (1K x 1K) screen Assume screen origin (0,0) at lower left. This translates old (0,0) to center of screen (511,511).

CS Map to the (1K x 1K) screen Proper scale factor for mapping: [-1,1] to (-511,+511)

CS Combine Screen Transformation

CS For General Screen: ……

CS Transformation to Std Clipping Frustum

CS Transforming to Std Frustum

CS Transforming to Std Frustum

CS Transforming to Std Frustum The right scale matrix to map to canonical form

CS Transforming to Std Frustum

Determining Rotation Matrix

CS Frame rotation,

CS Inverse problem easy,

CS In matrix representation of, Columns are simply images of

CS Rotation matrix M columns given by frame’s pre-image Column i of is

CS Inverse of rotation matrix M Recall, for rotation matrix R, So,

CS Rotation matrix M Row i is simply Simply write M down! Thus,

CS Frame Rotation:

46

47

48

49

50

51

52

The End of Viewing Transformations Lecture Set 11 53