1.04k likes | 1.06k Views
CSCE441: Computer Graphics Coordinate & Composite Transformations. Jinxiang Chai. Outline. 2D/3D Coordinate transformation 2D/3D Composite transformation Required readings: HB 7-8, 9-6. Coordinate Transform: 3D Geometry Pipeline. Rotate and translate the camera. Object space. World space.
E N D
CSCE441: Computer GraphicsCoordinate & Composite Transformations Jinxiang Chai
Outline • 2D/3D Coordinate transformation • 2D/3D Composite transformation • Required readings: HB 7-8, 9-6
Coordinate Transform: 3D Geometry Pipeline Rotate and translate the camera Object space World space View space Focal length Aspect ratio & resolution Normalized project space Image space 2
Coordinate Transformation: 3D Modeling/Design • Coordinate transformation from one reference frame to another
Coordinate Transformation: Animation/Robotics • How to model 2D movement of animated characters or robots? Click here
Coordinate Transformation • Coordinate transformation from one reference frame to another
Coordinate Transformation • Coordinate transformation from one reference frame to another Local reference frame
Coordinate Transformation Coordinate transformation from one reference frame to another Local reference frame Global reference frame 7
Coordinate Transformation Coordinate transformation from one reference frame to another ? Local reference frame Global reference frame 8
Review – Vector Operations • Dot Product
Review – Vector Operations • Dot Product: measuring similarity between two vectors
Review – Vector Operations • Dot Product: measuring similarity between two vectors
Review – Vector Operations • Dot Product: measuring similarity between two vectors Unit vector:
Review – Vector Operations • Dot Product: measuring similarity between two vectors
Review – Vector Operations • Dot Product: measuring similarity between two vectors
Review – Vector Operations Cross Product: measuring the area determined by two vectors 15
Review – Vector Operations Cross Product: measuring the area determined by two vectors 16
2D Coordinates • 2D Cartesian coordinate system:
2D Coordinate Transformation • 2D Cartesian coordinate system:
2D Coordinate Transformation 2D Cartesian coordinate system: any 2D vector can be represented as 19
2D Coordinate Transformation 2D Cartesian coordinate system: any 2D vector starting from the origin can be represented as P: (x,y) 20
2D Coordinate Transformation 2D Cartesian coordinate system: any 2D point can be described as (x,y) P: (x,y) 21
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation Transform object description from to p • Given the coordinates (x’,y’) in i’j’ • how to compute the coordinates (x,y) in ij? 23
2D Coordinate Transformation Transform object description from to p • Given the coordinates (x’,y’) in i’j’ • how to compute the coordinates (x,y) in ij? 24
2D Coordinate Transformation Transform object description from to p • Given the coordinates (x’,y’) in i’j’ • how to compute the coordinates (x,y) in ij? 25
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation • Transform object description from to p
2D Coordinate Transformation Transform object description from to p 38
2D Coordinate Transformation p What does this column vector mean?
2D Coordinate Transformation • Transform object description from to p What does this column vector mean? Vector i’ in the new reference system
2D Coordinate Transformation • Transform object description from to p What does this column vector mean?
2D Coordinate Transformation • Transform object description from to p What does this column vector mean? Vector j’ in the new reference system
2D Coordinate Transformation • Transform object description from to p What does this column vector mean?
2D Coordinate Transformation • Transform object description from to p What does this column vector mean? The old origin in the new reference system
2D Coordinate Transformation • 2D translation p
2D Coordinate Transformation • 2D translation ? ? p ? ?
2D Coordinate Transformation • 2D translation 0 1 p 0 1
2D Coordinate Transformation • 2D translation & rotation ? p
2D Coordinate Transformation • 2D translation & rotation p ?