Transformations II

67
Transformations II CS5600 Computer Graphics by Rich Riesenfeld 4 March 2002 Lecture Set 6

description

Transformations II. CS5600 Computer Graphics by Rich Riesenfeld 4 March 2002. Lecture Set 6. What About Elementary Inverses?. Scale Shear Rotation Translation. Scale Inverse. Shear Inverse. Shear Inverse. Rotation Inverse. Rotation Inverse. Rotation Inverse. Translation Inverse. - PowerPoint PPT Presentation

Transcript of Transformations II

Page 1: Transformations II

Transformations II

CS5600 Computer Graphicsby

Rich Riesenfeld4 March 2002Le

ctur

e S

et 6

Page 2: Transformations II

CS5600 2

What About Elementary Inverses?

• Scale• Shear• Rotation• Translation

Page 3: Transformations II

CS5600 3

Scale Inverse

1001

100

100 1

100

100 11

Page 4: Transformations II

CS5600 4

Shear Inverse

1

1

1

1

00

101

101

00

101

101

bb

aa

Page 5: Transformations II

CS5600 5

Shear Inverse

101

101

101

101

1

1

bb

aa

Page 6: Transformations II

CS5600 6

Rotation Inverse

cossin-sincos

cossinsin-cos

)cos(-)sin(-)sin(--)cos(-

cossinsin-cos

Page 7: Transformations II

CS5600 7

Rotation Inverse

)cos(sin)sincossin(cos

)sincossin(cos)sin(cos22

22

cossin-sincos

cossinsin-cos

1001

Page 8: Transformations II

CS5600 8

Rotation Inverse

cossin-sincos

cossinsin-cos 1

Page 9: Transformations II

CS5600 9

Translation Inverse

10010

01

10010

01

10010

01

10010

01

0

0

0

)(

00

xdxd

xdxd

Page 10: Transformations II

CS5600 10

Translation Inverse

10010

01

10010

01

00

1

xdxd

Page 11: Transformations II

CS5600 11

Shear in x then in y)1,0(

)0,0(

)1,0(

)0,0(

)1,0(

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

),(1 bab

),( 1a

),( 1 aba

),( 11 baba

),( 11 a

)1,0(

)0,0(

)1,1( b

)1,1(

),1( b

Page 12: Transformations II

CS5600 12

Shear in y then in x)1,0(

)0,0(

)1,0(

)0,0(

)1,0(

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

),(1 b

),( 1a

),( 1 aba

),( 11 abba

),( 11 a

)1,0(

)0,0(

)1,1( b

)1,1(

)0,1(

),1( b

Page 13: Transformations II

CS5600 13

Results Are Different

y then x: x then y:

Page 14: Transformations II

CS5600 14

Want the RHR to Work

jik

ikj

kji

kj

i

Page 15: Transformations II

CS5600 15

3D Positive Rotations

x

z

y

Page 16: Transformations II

CS5600 16

Transformations as a Change in Coordinate System

• Useful in many situations

• Use most natural coordination system locally

• Tie things together in a global system

Page 17: Transformations II

CS5600 17

Example

x

y

1

2

34

Page 18: Transformations II

CS5600 18

Example

is the transformation that

takes a point in coordinate system

j and converts it to a point in

coordinate system i

M ji

p j)(

p i)(

Page 19: Transformations II

CS5600 19

Example

pMpji

ji)()(

pMpkj

kj)()(

MMM kjki ji

Page 20: Transformations II

CS5600 20

Example

)2,4(12 TM

)3,2()2,2(32 TSM

)8.1,7.6()45(43 TRM

Page 21: Transformations II

CS5600 21

Recall the Following

ABAB 111)(

Page 22: Transformations II

CS5600 22

Since

)2,4(21 TM

)21,

21()3,2(23 STM

MM ijji

1

)45()8.1,7.6(34 RTM

Page 23: Transformations II

CS5600 23

Change of Coordinate System

• Describe the old coordinate system in terms of the new one.

x’y

x

y’

Page 24: Transformations II

CS5600 24

Change of Coordinate System

Move to the new coordinate system and describe the one old.

x

y

x

y Old is a negative rotation of the new.

Page 25: Transformations II

CS5600 25

What is “Perspective?”

• A mechanism for portraying 3D in 2D

• “True Perspective” corresponds to projection onto a plane

• “True Perspective” corresponds to an ideal camera image

Page 26: Transformations II

CS5600 26

Many Kinds of Perspective Used

• Mechanical Engineering

• Cartography

• Art

Page 27: Transformations II

CS5600 27

Perspective in Art

• Naïve (wrong)• Egyptian• Cubist (unrealistic)• Esher• Miro• Matisse

Page 28: Transformations II

CS5600 28

Egyptian Frontalism

• Head profile

• Body front

• Eyes full

• Rigid style

Page 29: Transformations II

Uccello's (1392-1475) handdrawing was the first extant complex geometrical form rendered accor-ding to the laws of linear perspective (Perspective Study of a Chalice, Drawing, Gabinetto dei Disegni, Uffizi, Florence, ca 1430 1440)

29

Page 30: Transformations II

CS5600 30

Perspective in Cubism

Braque, Georges

Woman with a Guitar

Sorgues, autumn

1913

Page 31: Transformations II

CS5600 31

Perspective in Cubism

Page 32: Transformations II

Pablo Picaso, Madre con niño muerto (1937) 32

Page 33: Transformations II

Pablo Picaso Cabeza de mujer

llorando con

pañuelo33

Page 34: Transformations II

CS5600 34

Perspective (Mural) Games

M C Esher, Another World II (1947)

Page 35: Transformations II

CS5600 35

Perspective

M.C. Escher, Ascending

and Descending

(1960)

Page 36: Transformations II

CS5600 36

M. C. Esher

M.C. Escher, Ascending

and Descending

(1960)

Page 37: Transformations II

CS5600 37

M. C. Esher

• Perspective is “local”

• Perspective consistency is not “transitive”

• Nonplanar (hyperbolic) projection

Page 38: Transformations II

CS5600 38

Nonplanar Projection

M C Esher, Heaven and

Hell

Page 39: Transformations II

CS5600 39

Nonplanar Projection

M C Esher, Heaven and

Hell

Page 40: Transformations II

CS5600 40

David McAllister

The March of Progress,

(1995)

Page 41: Transformations II

CS5600 41

Joan MiroThe Tilled

Field

Flat Perspective:

What cues are missing?

Page 42: Transformations II

Henri Matisse, La Lecon de

Musique

Flat Perspective:What cues are

missing?

42

Page 43: Transformations II

Henri Matisse, Danse II (1910) 43

Page 44: Transformations II

CS5600 44

Page 45: Transformations II

CS5600 45

Norway is at High Latitude

Page 46: Transformations II

CS5600 46

Isometric View

Page 47: Transformations II

CS5600 47

Engineering Drawing

A

A

Section AA

Page 48: Transformations II

Engineering Drawing: Exploded

View

Understanding 3D Assembly in a

2D Medium

48

Page 49: Transformations II

CS5600 49

“True” Perspective in 2Dy

x

(x,y)

p

h

Page 50: Transformations II

CS5600 50

“True” Perspective in 2D

pxpyh

pxy

ph

Page 51: Transformations II

CS5600 51

“True” Perspective in 2D

11 110

010001

px

p

yx

yx

Page 52: Transformations II

CS5600 52

“True” Perspective in 2D

px

pypx

px

pxpy

pxpx

ppx

yx

px

yx

11

This is right answer for screen projection

Page 53: Transformations II

CS5600 53

Geometry is Same for Eye at Origin

y

x

(x,y)

p

h

Screen Plane

Page 54: Transformations II

CS5600 54

What Happens to Special Points?

00

10

101010001 pp

p

What is this point??

Page 55: Transformations II

CS5600 55

Look at a Limit

axis-on 0

0100

1

1

xn

nn

n

Page 56: Transformations II

CS5600 56

Where does Eye Point Go?

• It gets sent to on x-axis

• Where does on x-axis go?

Page 57: Transformations II

CS5600 57

What happens to ?

0100

1

001

10010001

11

pp

pp

It comes back to virtual eye point!

Page 58: Transformations II

CS5600 58

What Does This Mean?

x

p

y

Page 59: Transformations II

CS5600 59

The “Pencil of Lines” Becomes Parallel

x

y

Page 60: Transformations II

CS5600 60

Parallel Lines Become a “Pencil of Lines” !

x

y

Page 61: Transformations II

CS5600 61

What Does This Mean?

x

p

y

Page 62: Transformations II

CS5600 62

“True” Perspective in 2Dy

p

Page 63: Transformations II

CS5600 63

“True” Perspective in 2Dy

p

Page 64: Transformations II

CS5600 64

Viewing Frustum

Page 65: Transformations II

CS5600 65

What happens for large p?”

1100

010001

110010001

1

yx

yx

p

Page 66: Transformations II

CS5600 66

Projection Becomes Orthogonal

x

(x,y)

p

h=y

Page 67: Transformations II

The End of

Transformations II

67

Lect

ure

Set

6