3DTransform

# 3DTransform - 3D Geometric Transformations Chapter 5 Intro...

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

3D Geometric Transformations Chapter 5 Intro. to Computer Graphics Spring 2009, Y. G. Shin

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

View Full Document
3D Transformation 1 1 0 0 0 ' ' ' 3 2 1 3 2 1 3 2 1 z y x t z z z t y y y t x x x h z y x z y x z x y Right-handed coordinate system
3D Transformation 1 0 0 0 1 0 0 0 1 0 0 0 1 z y x t t t Translation 1 0 0 0 0 0 0 0 0 0 0 0 0 z y x s s s Scaling

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

View Full Document
3D Rotation 1 0 0 0 0 1 0 0 0 0 cos sin 0 0 sin cos ) ( z R 3D rotations do NOT commute! 1 0 0 0 0 cos sin 0 0 sin cos 0 0 0 0 1 ) ( x R

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

View Full Document
Rotation about an arbitrary axis 1. Translation : rotation axis passes through the origin 2. Make the rotation axis on the z-axis ) ( ) ( y x R R 3. Do rotation ) ( z R 4. Rotation & translation ) ( ) ( 1 1 1 x y R R T T R R R R R T R x y z y x ) ( ) ( ) ( ) ( ) ( ) ( 1 1 1 Rotation about an arbitrary axis ) , , ( 1 1 1 z y x 1 0 0 0 1 0 0 0 1 0 0 0 1 1 1 1 z y x T
Rotation About Arbitrary Axis Rotate u onto the z-axis

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

View Full Document
Rotation About Arbitrary Axis Rotate a unit vector u onto the z-axis u’ : Project u onto the yz-plane to compute angle u’’ : Rotate u about the x-axis by angle Rotate u’’ onto the z-asis
Rotation About Arbitrary Axis Rotate u’ about the x-axis onto the z-axis Let u =(a,b,c) and thus u’ =(0,b,c) Let u z =(0,0,1) 2 2 cos c b c z z u u u u b sin x z x z u u u u u u 2 2 sin c b b b z u u x z y u ) 1 , 0 , 0 ( z u u’

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

View Full Document
Rotation About Arbitrary Axis Rotate u’ about the x-axis onto the z-axis Since we know both cos and sin , the rotation matrix can be obtained Rotate u’’ onto the z-asis With the similar way, we can compute the angle 1 0 0 0 0 0 0 0 0 0 0 1 ) ( 2 2 2 2 2 2 2 2 c b c c b b c b b c b c x R x z y u u’ u’’
Rotation about an arbitrary axis using orthogonal matrix Unit row vector of R rotates into the principle axes x, y, and z.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 39

3DTransform - 3D Geometric Transformations Chapter 5 Intro...

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

View Full Document
Ask a homework question - tutors are online