nsadepot.blogg.se

Reflection and shearing in computer graphics program
Reflection and shearing in computer graphics program













Thus, New coordinates of the triangle after shearing in Z axis = A (0, 0, 0), B(5, 5, 2), C(7, 7, 3). Thus, New coordinates of corner C after shearing = (7, 7, 3).

  • Y new = Y old + Sh y x Z old = 1 + 2 x 3 = 7.
  • X new = X old + Sh x x Z old = 1 + 2 x 3 = 7.
  • Thus, New coordinates of corner B after shearing = (5, 5, 2).

    reflection and shearing in computer graphics program

  • Y new = Y old + Sh y x Z old = 1 + 2 x 2 = 5.
  • X new = X old + Sh x x Z old = 1 + 2 x 2 = 5.
  • Y new = Y old + Sh y x Z old = 0 + 2 x 0 = 0.
  • X new = X old + Sh x x Z old = 0 + 2 x 0 = 0.
  • Thus, New coordinates of the triangle after shearing in Y axis = A (0, 0, 0), B(3, 1, 5), C(3, 1, 6). Thus, New coordinates of corner C after shearing = (3, 1, 6).
  • Z new = Z old + Sh z x Y old = 3 + 3 x 1 = 6.
  • Thus, New coordinates of corner B after shearing = (3, 1, 5).
  • Z new = Z old + Sh z x Y old = 2 + 3 x 1 = 5.
  • X new = X old + Sh x x Y old = 1 + 2 x 1 = 3.
  • Z new = Z old + Sh z x Y old = 0 + 3 x 0 = 0.
  • X new = X old + Sh x x Y old = 0 + 2 x 0 = 0.
  • reflection and shearing in computer graphics program

    Thus, New coordinates of the triangle after shearing in X axis = A (0, 0, 0), B(1, 3, 5), C(1, 3, 6). Thus, New coordinates of corner C after shearing = (1, 3, 6). Z new = Z old + Sh z x X old = 3 + 3 x 1 = 6.Let the new coordinates of corner C after shearing = (X new, Y new, Z new). Thus, New coordinates of corner B after shearing = (1, 3, 5). Z new = Z old + Sh z x X old = 2 + 3 x 1 = 5.Y new = Y old + Sh y x X old = 1 + 2 x 1 = 3.Let the new coordinates of corner B after shearing = (X new, Y new, Z new). Thus, New coordinates of corner A after shearing = (0, 0, 0). Z new = Z old + Sh z x X old = 0 + 3 x 0 = 0.

    reflection and shearing in computer graphics program

    Y new = Y old + Sh y x X old = 0 + 2 x 0 = 0.Let the new coordinates of corner A after shearing = (X new, Y new, Z new).Īpplying the shearing equations, we have. Shearing parameter towards Y direction (Sh z) = 3.Shearing parameter towards Y direction (Sh y) = 2.Shearing parameter towards X direction (Sh x) = 2.Apply shear parameter 2 on X axis, 2 on Y axis and 3 on Z axis and find out the new coordinates of the object. PRACTICE PROBLEMS BASED ON 3D SHEARING IN COMPUTER GRAPHICS. Shearing in Z axis is achieved by using the following shearing equations. Shearing in Y axis is achieved by using the following shearing equations. In Matrix form, the above shearing equations may be represented as.

    reflection and shearing in computer graphics program

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

  • New coordinates of the object O after shearing = (X new, Y new, Z new).
  • Shearing parameter towards Z direction = Sh z.
  • Shearing parameter towards Y direction = Sh y.
  • Shearing parameter towards X direction = Sh x.
  • Initial coordinates of the object O = (X old, Y old, Z old).
  • So, there are three versions of shearing-Ĭonsider a point object O has to be sheared in a 3D plane. In a three dimensional plane, the object size can be changed along X direction, Y direction as well as Z direction. In this article, we will discuss about 3D Shearing in Computer Graphics.ģD Shearing is an ideal technique to change the shape of an existing object in a three dimensional plane. In computer graphics, various transformation techniques are.
  • 3D Transformations take place in a three dimensional plane.
  • Transformation is a process of modifying and re-positioning the existing graphics.














  • Reflection and shearing in computer graphics program