Presentation is loading. Please wait.

Presentation is loading. Please wait.

III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.

Similar presentations


Presentation on theme: "III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In."— Presentation transcript:

1 III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In general, the homogeneous coordinate (x, y, z, w) represents the three dimensional point (x/w, y/w, z/w) The generalized transformation matrix:

2 III- 2 Scaling In general, this is done with the equations: x n = s x * x y n = s y * y z n = s z * z This can also be done with the matrix multiplication:

3 III- 3 Scaling can be done relative to the object center with a composite transformation Scaling an object centered at (c x, c y, c z ) is done with the matrix multiplication:

4 III- 4 Shearing Equivalent to pulling faces in opposite directions

5 III- 5

6 III- 6

7 III- 7

8 III- 8

9 III- 9 Rotation Rotation can be done around any line or vector Rotations are commonly specified around the x, y, or z axis A positive angle of rotation results in a counterclockwise movement when looked at from the positive axis direction The matrix form for rotation –x axis

10 III- 10 –y axis –z axis

11 III- 11

12 III- 12

13 III- 13

14 III- 14 Reflection Reflection through the xy-plane: Reflection through the yz-plane: Reflection through the xz-plane:

15 III- 15

16 III- 16

17 III- 17 Translations The amount of the translation is added to or subtracted from the x, y, and z coordinates In general, this is done with the equations: x n = x + t x y n = y + t y z n = z + t z This can also be done with the matrix multiplication:

18 III- 18

19 III- 19

20 III- 20

21 III- 21

22 III- 22

23 III- 23 Combining Transformations Matrices can be multiplied together to accomplish multiple transformations with one matrix A matrix is built with successive transformations occurring from right to left A combination matrix is typically built from the identity matrix with each new transformation added by multiplying it on the left of the current combination

24 III- 24 Rotation about an Arbitrary Axis in Space Assume an arbitrary axis in space passing through the point with direction cosines and rotation about this axis by some angle

25 III- 25 Direction cosines:

26 III- 26 The complete transformation is:

27 III- 27

28 III- 28

29 III- 29

30 III- 30

31 III- 31

32 III- 32 Reflection through an Arbitrary Plane

33 III- 33 The general transformation is:

34 III- 34

35 III- 35

36 III- 36

37 III- 37


Download ppt "III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In."

Similar presentations


Ads by Google