Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0.

Slides:



Advertisements
Similar presentations
Computer Graphics Lecture 4 Geometry & Transformations.
Advertisements

Animation Following “Advanced Animation and Rendering Techniques” (chapter 15+16) By Agata Przybyszewska.
3D Graphics for Game Programming (J. Han) Chapter XI Character Animation.
Mapping: Scaling Rotation Translation Warp
Kinematics Pose (position and orientation) of a Rigid Body
Forward and Inverse Kinematics CSE 3541 Matt Boggus.
CSCE 641: Forward kinematics and inverse kinematics Jinxiang Chai.
CMPE 466 COMPUTER GRAPHICS
CSCE 641: Forward kinematics and inverse kinematics Jinxiang Chai.
1 Jinxiang Chai CSCE 441 Computer Graphics. 2 Midterm Time: 10:10pm-11:20pm, 10/20 Location: HRBB 113.
3-D Geometry.
CSCE 689: Computer Animation Rotation Representation and Interpolation
Chapter 4 Linear Transformations. Outlines Definition and Examples Matrix Representation of linear transformation Similarity.
CSCE 441: Computer Graphics Rotation Representation and Interpolation
CSCE 641: Computer Graphics Rotation Representation and Interpolation Jinxiang Chai.
The Pinhole Camera Model
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Vectors Jeff Chastine.
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Geometric Transformations Jehee Lee Seoul National University.
2003CS Hons RW778 Graphics1 Chapter 5: Transforming Objects 5.2 Introduction to Transformations 5.2 Introduction to Transformations –Affine transformations.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Spatial Descriptions and Transformations Sebastian van Delden USC Upstate
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
CSCE 441: Computer Graphics Forward/Inverse kinematics Jinxiang Chai.
Kinematics Jehee Lee Seoul National University. Kinematics How to animate skeletons (articulated figures) Kinematics is the study of motion without regard.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
CS654: Digital Image Analysis Lecture 6: Basic Transformations.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
Geometric Transformations
CSCE 452 Intro to Robotics CSCE 452: Lecture 1 Introduction, Homogeneous Transformations, and Coordinate frames.
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
CS 450: COMPUTER GRAPHICS ANIMATION SPRING 2015 DR. MICHAEL J. REALE.
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
click to start Example: A LINEAR TRANSFORMATION.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
Affine Geometry.
Computer Graphics Matrices
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
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.
Geometric Transformations. Transformations Linear transformations Rigid transformations Affine transformations Projective transformations T Global reference.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Forward Kinematics Where is my hand ?. Examples Denavit-Hartenberg Specialized description of articulated figures (joints) Each joint has only one degree.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0.
CSCE 441: Computer Graphics: Hierarchical Models Jinxiang Chai.
CGDD 4003 Character Animation. The Skeletal Hierarchy (aka the “rig”) Based on the concept of bones Each bone has exactly one parent Each bone has a transform.
Image Warping 2D Geometric Transformations
Outline 3D Viewing Required readings: HB 10-1 to 10-10
Robotic Arms and Matrices By Chris Wong and Chris Marino.
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
CPSC 641: Computer Graphics Rotation Representation and Interpolation
Translations and Reflections
Graphics Fundamentals
CSCE 441 Computer Graphics 3-D Viewing
CSCE 441: Computer Graphics: Hierarchical Models
2.02C Frame-by-Frame Computer Animation Using PowerPoint
CSCE441: Computer Graphics Coordinate & Composite Transformations
CSCE441: Computer Graphics 2D/3D Transformations
Transformations 2 University of British Columbia
CSCE 441: Computer Graphics: Hierarchical Models
Presentation transcript:

Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0

Outline 2D/3D Coordinate transformation 2D/3D Composite transformation Required readings: HB 7-8, 9-6 1

Image space Coordinate Transform: 3D Geometry Pipeline 2 Normalized project space View space World spaceObject space Aspect ratio & resolution Focal length Rotate and translate the camera

Coordinate Transformation: 3D Modeling/Design Coordinate transformation from one reference frame to another 3

Coordinate Transformation: Animation/Robotics How to model 2D movement of animated characters or robots? 4 Click herehere

Coordinate Transformation Coordinate transformation from one reference frame to another 5

Coordinate Transformation Coordinate transformation from one reference frame to another 6 Local reference frame

Coordinate Transformation Coordinate transformation from one reference frame to another 7 Local reference frame Global reference frame

Coordinate Transformation Coordinate transformation from one reference frame to another ? 8 Local reference frame Global reference frame

Review – Vector Operations Dot Product 9

Review – Vector Operations Dot Product: measuring similarity between two vectors 10

Review – Vector Operations Dot Product: measuring similarity between two vectors 11

Review – Vector Operations Dot Product: measuring similarity between two vectors Unit vector: 12

Review – Vector Operations Dot Product: measuring similarity between two vectors 13

Review – Vector Operations Dot Product: measuring similarity between two vectors 14

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: 17

2D Coordinate Transformation 2D Cartesian coordinate system: 18

2D Coordinate Transformation 2D Cartesian coordinate system: any 2D vector can be represented as 19

2D Coordinate Transformation 2D Cartesian coordinate system: P: (x,y) 20

2D Coordinate Transformation 2D Cartesian coordinate system: P: (x,y) 21

2D Coordinate Transformation Transform object description from to p 22

2D Coordinate Transformation Transform object description from to p 23 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 24 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 25 Given the coordinates (x’,y’) in i’j’ - how to compute the coordinates (x,y) in ij?

2D Coordinate Transformation Transform object description from to p 26

2D Coordinate Transformation Transform object description from to p 27

2D Coordinate Transformation Transform object description from to p 28

2D Coordinate Transformation Transform object description from to p 29

2D Coordinate Transformation Transform object description from to p 30

2D Coordinate Transformation Transform object description from to p 31

2D Coordinate Transformation Transform object description from to p 32

2D Coordinate Transformation Transform object description from to p 33

2D Coordinate Transformation Transform object description from to p 34

2D Coordinate Transformation Transform object description from to p 35

2D Coordinate Transformation Transform object description from to p 36

2D Coordinate Transformation Transform object description from to p 37

2D Coordinate Transformation Transform object description from to p 38

2D Coordinate Transformation p 39 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 40 What does this column vector mean? Vector i’ in the new reference system

2D Coordinate Transformation Transform object description from to p 41 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 42 What does this column vector mean? Vector j’ in the new reference system

2D Coordinate Transformation Transform object description from to p 43 What does this column vector mean?

2D Coordinate Transformation Transform object description from to p 44 What does this column vector mean? The old origin in the new reference system

2D Coordinate Transformation 2D translation p 45

2D Coordinate Transformation 2D translation p ? ? ? ? 46

2D Coordinate Transformation 2D translation p

2D Coordinate Transformation 2D translation&rotation p ? 48

2D Coordinate Transformation 2D translation&rotation p ? 49

2D Coordinate Transformation 2D translation&rotation p 50

2D Coordinate Transformation 2D translation&rotation p ? 51

2D Coordinate Transformation 2D translation&rotation p 52

2D Coordinate Transformation 2D translation&rotation p ? 53

2D Coordinate Transformation 2D translation&rotation p 54

2D Coordinate Transformation An alternative way to look at the problem P=[x,y] 55 - set up a transformation that superimposes the x’y’ axes onto the xy axis

2D Coordinate Transformation An alternative way to look at the problem P=[x,y] 56 - set up a transformation that superimposes the x’y’ axes onto the xy axis

2D Coordinate Transformation An alternative way to look at the problem P=[x,y] 57 - set up a transformation that superimposes the x’y’ axes onto the xy axis

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) p 58

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? p 59

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? Invert the matrix! p 60

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? Invert the matrix! p 61

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? Invert the matrix! p 62

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? Invert the matrix! p 63

2D Coordinate Transformation An alternative way to look at the problem This transforms the point from (x,y) to (x’,y’) How to transform the point from (x’,y’) to (x,y)? Invert the matrix! p 64

2D Coordinate Transformation Same results! p 65

2D Coordinate Transformation 2D translation&rotation p 66

2D Coordinate Transformation 2D translation&rotation p 67

2D Coordinate Transformation 2D translation&rotation p 68

2D Coordinate Transformation 2D translation&rotation p 69

2D Coordinate Transformation 2D translation&rotation p 70

2D Coordinate Transformation 2D translation&rotation p 71

3D Coordinate Transformation Transform object description from to p 72

2D Coordinate Transformation Transform object description from to p 73

3D Coordinate Transformation Transform object description from to p 74

3D Coordinate Transformation Transform object description from to p 75

3D Coordinate Transformation Transform object description from to 76 p

3D Coordinate Transformation Transform object description from to 77 x y z

Composite 2D Transformation How to model 2D movement of characters or robots? 78 Click herehere

Composite 2D Transformation A 2D lamp character 79

Composite 2D Transformation A 2D lamp character – skeleton size 80

Composite 2D Transformation How can we draw the character given the pose ? 81

Composite 2D Transformation How can we draw the character given the pose ? 82 - This requires computing the global coordinates for any point on the character. - But we only have local coordinates of points. - So how can we map the local coordinates to the global coordinates?

Articulated Character Local reference frames with a default pose (0,0,0,0,0,0)

Composite 2D Transformation What’s the pose? 84

Composite 2D Transformation What’s the pose? 85

Composite 2D Transformation A 2D lamp character Given,, how to compute the global position of a point (e.g., A) based on its local coordinates? ? 86

Composite 2D Transformation What’s local coordinate ? ? 87

Composite 2D Transformation What’s local coordinate ? ? 88

Composite 2D Transformation What’s the current coordinate A ? ? 89

Composite 2D Transformation What’s the current coordinate A ? ? 90

Composite 2D Transformation What’s the current coordinate A ? ? 91

Composite 2D Transformation What’s the current coordinate A ? ? 92

Composite 2D Transformation What’s the current coordinate A ? ? 93

Composite 2D Transformation What’s the current coordinate A ? 94

How to Animate the Character? A 2D lamp character 95

How to Animate the Character? Keyframe animation - Manually pose the character by choosing appropriate values for - Linearly interpolate the inbetween poses. - Works for any types of articulated characters! 96

Composite 3D Transformation Similarly, we can easily extend composite transformation from 2D to 3D 97

Composite 3D Transformation 98