3D Shearing

3D Shearing in Computer Graphics:

In Computer graphics,
3D Shearing is an ideal technique to change the shape of an existing object in a three dimensional plane.

In a three dimensional plane, the object size can be changed along X direction, Y direction as well as Z direction. So, there are three versions of shearing:

  1. Shearing in X direction
  2. Shearing in Y direction
  3. Shearing in Z direction

Consider a point object O has to be sheared in a 3D plane. Let:

  • Initial coordinates of the object O = (Xold, Yold, Zold)
  • Shearing parameter towards X direction = Shx
  • Shearing parameter towards Y direction = Shy
  • Shearing parameter towards Z direction = Shz
  • New coordinates of the object O after shearing = (Xnew, Ynew, Znew)

Shearing in X Axis-
Shearing in X axis is achieved by using the following shearing equations-

  • Xnew = Xold
  • Ynew = Yold + Shy x Xold
  • Znew = Zold + Shz x Xold

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

3D Shearing in X axis

Shearing in Y Axis-
Shearing in Y axis is achieved by using the following shearing equations:

  • Xnew = Xold + Shx x Yold
  • Ynew = Yold
  • Znew = Zold + Shz x Yold

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

3D Shearing In Y axis

Shearing in Z Axis-

Shearing in Z axis is achieved by using the following shearing equations-

  • Xnew = Xold + Shx x Zold
  • Ynew = Yold + Shy x Zold
  • Znew = Zold
    In Matrix form, the above shearing equations may be represented as-
3D Shearing in Z axis