PadhaikoAll subjects

Past exam question: 2082 Kartik (Back), Q3(a)

Computer Graphics and Visualization · 4 marks

Open in the Padhaiko app

Topic: 2D & Composite Transformations; Window-to-Viewport

Question

Explain the composite rotation in 2D transformation. Given the point (0,0) (1,0) (0,1) and (1,1) where Xref = -1 and Shy = 0.5. Calculate and sketch shearing transformation new coordinates.

Solution

Composite 2D Rotation About an Arbitrary Pivot Point: A basic rotation matrix only rotates an object about the coordinate origin . To rotate an object by angle about an arbitrary pivot point , three successive transformations are composed:

  1. Translate the pivot point to the origin: .
  2. Rotate about the origin by angle : .
  3. Translate the origin back to the pivot point: .

In homogeneous coordinate matrix form:

Shearing Transformation Relative to Reference Line : Shearing parallel to the -axis with shear parameter relative to a reference vertical line transforms coordinates according to:

Given and :

The homogeneous transformation matrix is:

Calculation of Transformed Coordinates: Applying the transformation to the four given vertices of the unit square:

  1. For point :
  1. For point :
  1. For point :
  1. For point :

Geometric Sketch and Description of Sheared Shape:

Answer:
  1. Composite rotation about pivot is .
  2. The sheared coordinates for and are:
    • Forming a sheared parallelogram with vertical edges along and .

All past exam questions for Computer Graphics and Visualization