1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects...

Post on 21-Dec-2015

220 views 4 download

Tags:

Transcript of 1 Geometrical Transformation Tong-Yee Lee. 2 Modeling Transform Specify transformation for objects...

1

Geometrical Transformation

Tong-Yee Lee

2

Modeling TransformSpecify transformation for objects

Allow definitions of objects in own coordinate systemsAllow use of object definition multiple times in a scene

3

Overview

2D transformationsBasic 2-D transformationsMatrix representationMatrix composition

3D transformationsBasic 3-D transformationSame as 2-D

Transformation HierarchiesScene graphs

4

2-D Transformations

5

2-D Transformations

6

2-D Transformations

7

2-D Transformations

8

2-D Transformations

9

2-D Transformations

10

Basic 2D Transformations

11

Basic 2D Transformations

12

Basic 2D Transformations

13

Rotation around the origin (2-D)

14

Rotation around the origin (2-D)

15

Rotation around the origin (2-D)

16

Rotation (3-D)

17

Rotation (3-D)

18

Basic 2D Transformations

19

Basic 2D Transformations

20

Basic 2D Transformations

21

Matrix Representation

22

Matrix Representation

23

2x2 Matrix

24

Scaling

25

Scaling Around A Point

26

2x2 Matrix

27

Shear (2-D)

28

Shear (3-D)

29

2x2 Matrix

30

2x2 Matrix

31

2x2 Matrix

32

2D Translation

33

Basic 2D Transformations

34

Homogeneous Coordinates

35

Matrix Composition

36

Matrix Composition

37

Matrix Composition

38

Matrix Composition

39

3D Transformations

40

Basic 3D Transformations

41

Basic 3D Transformations

42

T1

T2

T3

root

P is a local coordinate

T3*P

T2*(T3*P)

T1*(T2(T3*P)) Final global coord. of P

Transform # (T1){ Transform { # (T2)

Transform { # (T3) } } }

43

Transformation Hierarchies

44

OpenGL transformation Matrices

45

OpenGL transformation Matrices

46

OpenGL transformation Matrices

47

OpenGL transformation Matrices

48

Transformation Example 1

49

Transformation Example 2

50

Transformation Example 2