transform

# transform - CS148 Introduction to Computer Graphics and...

This preview shows pages 1–7. Sign up to view the full content.

Page 1 CS148: Introduction to Computer Graphics and Imaging Transforms CS148 Lecture 4 Pat Hanrahan, Winter 2009 Today’s Outline Purpose of transformations Gallery of transformations: rotations, shears, … Composing multiple transformations Representing transformations as matrices Hierarchical transformations

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Page 2 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Transformations What? P’ = T(P) Why? Modeling ± Create objects in convenient coordinates ± Multiple instances of a prototype shape ± Kinematics of linkages/skeletons - robots Viewing ± Windows and device independence ± Virtual camera: parallel/perspective projections Gallery of Transformations
Page 3 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Scale Uniform Nonuniform glScalef(sx,sy,sz) CS148 Lecture 4 Pat Hanrahan, Winter 2009 Rotate \ glRotatef(angle,ax,ay,az)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Page 4 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Translate glTranslatef(tx,ty,tz) CS148 Lecture 4 Pat Hanrahan, Winter 2009 Reflect
Page 5 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Shear Composing Transformations

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Page 6 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Rotate, Then Translate R(45) T(1,1) R(45) CS148 Lecture 4 Pat Hanrahan, Winter 2009 Translate, Then Rotate T(1,1) R(45) T(1,1)
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 18

transform - CS148 Introduction to Computer Graphics and...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online