Docsity

Transformations Two - Introduction to Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Transformations Two - Introduction to Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Transformations II

Lecture Set 6

What About Elementary Inverses?

  • Scale
  • Shear
  • Rotation
  • Translation

Shear Inverse

1

1

1

1

b b

a a

Shear Inverse

− 

− 

−

=

−

1

1 0

1

1 0

0 1

1

0 1

1

1

1

b b

a a

Rotation Inverse

− +

  • − = (cos sin cos sin ) (sin cos )

(cos sin ) (cos sin cos sin ) 2 2

2 2

θ θ θ θ θ θ

θ θ θ θ θ θ

= 

θ θ

θ θ

θ θ

θ θ

  • sin cos

cos sin

sin cos

cos -sin

0 1

1 0

Rotation Inverse

 −

= θ θ

θ θ

θ θ

θ θ

  • sin cos

cos sin

sin cos

cos - sin

1

Translation Inverse

−

=

1

x

d

x

d

Shear in x then in y

( 0 , 1 )

( 0 , 0 )

( 0 , 1 )

( 0 , 0 )

( 0 , 1 )

( 0 , 0 ) ( 1 , 0 ) ( 1 , 0 )

( 1 + ab , b )

( a , 1 )

( a , 1 − ab )     ( 1 + a + ab , 1 + b )

( 1 + a , 1 )

( 0 , 1 )

( 0 , 0 )

( 1 , 1 + b )

( 1 , 1 )

( 1 , b )

Docsity.com

Results Are Different

y then x: x then y:

Want the RHR to Work

k i j

j k i

i j k

× =

× =

× =

j k

i  

Transformations as a Change in Coordinate System

  • Useful in many situations
  • Use most natural coordination system

locally

  • Tie things together in a global system

Example

x

y

1

2

3

Example

p M^ p

i j i j

( ) (^ ) = (^) ←

p M^ p

j k j k

( ) (^ )

←

M (^) i (^) ← k = M i (^) ← j M j ← k

Example

M 2 ← 1 = T ( 4 , 2 )
M 2 ← 3 = S ( 2 , 2 ) • T ( 2 , 3 )
M 3 ← 4 = R (− 45 ) • T ( 6. 7 , 1. 8 )