3D Scaling, Rotation & Translation

Scaling, rotation, and translation are the most commonly used 3D transformations. They control the size, position, and orientation of objects in three-dimensional space.

1. Introduction

In 3D graphics, objects must be resized, rotated, and moved to create realistic scenes. These operations are performed using transformation matrices.

2. 3D Scaling

3D scaling changes the size of an object by multiplying its coordinates with scaling factors along x, y, and z axes.

x' = x × sx
y' = y × sy
z' = z × sz

3. Scaling Matrix

[ sx  0   0   0 ]
[ 0   sy  0   0 ]
[ 0   0   sz  0 ]
[ 0   0   0   1 ]

4. 3D Translation

Translation moves an object from one location to another in 3D space without changing its size or orientation.

x' = x + tx
y' = y + ty
z' = z + tz

5. Translation Matrix

[ 1  0  0  tx ]
[ 0  1  0  ty ]
[ 0  0  1  tz ]
[ 0  0  0  1  ]

6. 3D Rotation

Rotation changes the orientation of an object about a specific axis in 3D space.

7. Rotation About Z-Axis

[ cosθ  -sinθ  0  0 ]
[ sinθ   cosθ  0  0 ]
[  0       0   1  0 ]
[  0       0   0  1 ]

8. Order of Transformations

The order of applying scaling, rotation, and translation affects the final position and orientation of objects.

9. Advantages

10. Applications

Practice Questions

  1. What is 3D scaling?
  2. Write 3D translation equations.
  3. Explain rotation about Z-axis.
  4. Why is order of transformations important?
  5. Where are 3D transformations used?

Practice Task

Explain with matrices: ✔ 3D scaling matrix ✔ 3D translation matrix ✔ 3D rotation about Z-axis