3D Reflection

3D Reflection in Computer Graphics-

  • Reflection is a kind of rotation where the angle of rotation is 180 degree.
  • The reflected object is always formed on the other side of mirror.
  • The size of reflected object is same as the size of original object.

Consider a point object O has to be reflected in a 3D plane.

Let,

  • Initial coordinates of the object O = (Xold, Yold, Zold)
  • New coordinates of the reflected object O after reflection = (Xnew, Ynew,Znew)

In 3 dimensions, there are 3 possible types of reflection:

  • Reflection relative to XY plane
  • Reflection relative to YZ plane
  • Reflection relative to XZ plane

Reflection Relative to XY Plane:

This reflection is achieved by using the following reflection equations:

  • Xnew = Xold
  • Ynew = Yold
  • Znew = -Zold

In Matrix form, the above reflection equations may be represented as-

3D Reflection Matrix

Reflection Relative to YZ Plane:
This reflection is achieved by using the following reflection equations-
Xnew = -Xold
Ynew = Yold
Znew = Zold
In Matrix form, the above reflection equations may be represented as-

Reflection Relative to YZ plane

Reflection Relative to XZ Plane:
This reflection is achieved by using the following reflection equations-

  • Xnew = Xold
  • Ynew = -Yold
  • Znew = Zold

In Matrix form, the above reflection equations may be represented as:

Reflection Relative to XZ plane