3D Shearing in Computer Graphics

Amansingh Javatpoint
2 min readAug 26, 2021

We can denote shearing with ‘SHx,’ ‘SHy,’ and ‘SHz.’ These ‘SHx,’ ‘SHy,’ ‘SHz’ are called “Shearing factor.”

The basic difference between 2D and 3D Shearing is that the 3D plane also includes the z-axis.

We can perform shearing on the object by following three ways-

  1. Shearing along the x-axis: In this, wecan store the x coordinate and only change the y and z coordinate.

We can represent shearing along x-axis by the following equation-

x1 = x0

y1 = y0 + SHy. x0

z1 = z0 + SHz. x0

3D Shearing Matrix:

2. Shearing along the y-axis: In this, wecan store the y coordinate and only change the x and z coordinate.

We can represent shearing along with y-axis by the following equation-

x1 = x0 + SHx. y0

y1 = y0

z1 = z0 + SHz. y0

3D Shearing Matrix:

3. Shearing along with z-axis: In this, wecan store the z coordinate and only change the x and y coordinate.

We can represent shearing along with z-axis by the following equation-

x1 = x0 + SHx. z0

y1 = y0 + SHy. Z­0

z1 = z0

--

--