transform

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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Page 4 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Translate glTranslatef(tx,ty,tz) CS148 Lecture 4 Pat Hanrahan, Winter 2009 Reflect
Background image of page 4
Page 5 CS148 Lecture 4 Pat Hanrahan, Winter 2009 Shear Composing Transformations
Background image of page 5

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

View Full DocumentRight Arrow Icon
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)
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online