Docsity

Problem on Computer Graphics - Assignment 2 | CAP 4720, Assignments of Computer Graphics

Toggle sidebar
bg1
CAP4720
Assignment 2
Due date:
September 23
rd
, 11.59.59 pm
Delivery:
A document containing:
• Derivation of the transformation matrix
• The final matrix itself
• Formal proof that it works for corner vertices of the input box
Problem:
Your task is to derive a transformation matrix for transforming an axis-aligned box to the canonical
viewing volume. An axis-aligned box has its sides parallel to planes defining the coordinate system.
Each vertex is represented as a 4-dimenstional vector in homogenous coordinates. The input is given
as a cube with 6 vertices with coordinates given by 6 variables (near, far, right, left, top, bottom). Your
matrix must transform these vertices to corresponding vertices of the canonical viewing volume.
You need to show how each one of the input vertices maps to the vertices of the canonical volume and
present the matrix.
Hints:
• Since corresponding sides of both cubes are parallel, no rotation is involved
• The 4
th
coordinate doesn’t need to be transformed and always remains 1
x
y
z
(-1, 1, -1, 1)
(-1, -1, 1, 1) (right, bottom, near, 1)
(left, top, far, 1)

Partial preview of the text

Download Problem on Computer Graphics - Assignment 2 | CAP 4720 and more Assignments Computer Graphics in PDF only on Docsity!

CAP

Assignment 2

Due date: September 23rd^ , 11.59.59 pm

Delivery: A document containing:

  • Derivation of the transformation matrix
  • The final matrix itself
  • Formal proof that it works for corner vertices of the input box

Email to [email protected]

Problem: Your task is to derive a transformation matrix for transforming an axis-aligned box to the canonical viewing volume. An axis-aligned box has its sides parallel to planes defining the coordinate system.

Each vertex is represented as a 4-dimenstional vector in homogenous coordinates. The input is given as a cube with 6 vertices with coordinates given by 6 variables (near, far, right, left, top, bottom). Your matrix must transform these vertices to corresponding vertices of the canonical viewing volume.

You need to show how each one of the input vertices maps to the vertices of the canonical volume and present the matrix.

Hints:

  • Since corresponding sides of both cubes are parallel, no rotation is involved
  • The 4th^ coordinate doesn’t need to be transformed and always remains 1

x

y

z

(-1, -1, 1, 1) (right, bottom, near, 1)

(left, top, far, 1)