3d_transforms

# 3d_transforms - CAP4730 Computational Structures in...

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

CAP4730: Computational Structures in Computer Graphics 3D Transformations

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

View Full Document
Outline 3D World What we are trying to do Translate Scale Rotate
Transformations in 3D! Remembering 2D transformations -> 3x3 matrices, take a wild guess what happens to 3D transformations. ( 29 ( 29 = + = = + = 1 0 0 0 1 0 0 0 1 0 0 0 1 , , 1 0 0 1 0 0 1 , z y x z y x z y x y x y x y x t t t t t t z y x t t t T t t t t y x t t T T=(t x , t y , t z )

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

View Full Document
Scale, 3D Style ( 29 ( 29 = = = = 1 0 0 0 0 0 0 0 0 0 0 0 0 * 0 0 0 0 0 0 , , 1 0 0 0 0 0 0 * 0 0 , z y x z y x z y x y x y x y x s s s z y x s s s s s s S s s y x s s s s S S=(s x , s y , s z )
Rotations, in 3D no less! R=(r x , r y , r z , θ ) What does a rotation in 3D mean? Q: How do we specify a rotation? A: We give a vector to rotate about, and a theta that describes how much we rotate. θ Q: Since 2D is sort of like a special case of 3D, what is the vector we’ve been rotating about in 2D?

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

View Full Document
Rotations about the Z axis R=(0,0,1, θ ) What do you think the rotation matrix is for rotations about the z axis? θ ( 29 - = - = - = 1 0 0 0 0 1 0 0 0 0 cos sin 0 0 sin cos ) , 1 , 0 , 0 ( 1 0 0 0 cos sin 0 sin cos cos sin sin cos θ R R
Rotations about the X axis R=(1,0,0, θ ) Let’s look at the other axis rotations θ - = 1 0 0 0 0 cos sin 0 0 sin cos 0 0 0 0 1 ) , 0 , 0 , 1 ( θ R

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

View Full Document
Rotations about the Y axis R=(0,1,0, θ ) θ - = 1 0 0 0 0 cos 0 sin 0 0 1 0 0 sin 0 cos ) , 0 , 1 , 0 ( θ R
Rotations for an arbitrary axis - = 1 0 0 0 0 1 0 0 0 0 cos sin 0 0 sin cos ) , 1 , 0 , 0 ( θ R - = 1 0 0 0 0 cos 0 sin 0 0 1 0 0 sin 0 cos ) , 0 , 1 , 0 ( R - = 1 0 0 0 0 cos sin 0 0 sin cos 0 0 0 0 1 ) , 0 , 0 , 1 ( R

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

View Full Document
( 29 ( 29 ( 29 ( 29 ( 29 ( 29 α β θ x y z y x R R R R R R = - - 1 1 Rotations for an arbitrary axis α β θ Steps: 1. Normalize vector u 2. Compute α 3. Compute β 4. Create rotation matrix u
Given a vector v , we want to create a unit vector that has a magnitude of 1 and has the same direction as v . Let’s do an example. V

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 / 49

3d_transforms - CAP4730 Computational Structures in...

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

View Full Document
Ask a homework question - tutors are online