30.08.2014 Views

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

60 CS488/688 Introduction to Computer Graphi<strong>cs</strong><br />

1. Give the change of basis matrix mapping coordinates relative to F W to coordinates relative<br />

to F V .<br />

2. Give the transformation matrix for the geometric transformation that maps O W onto O V , w 1<br />

to v 1 <strong>and</strong> w 2 to v 2 . Assume that the coordinate representation of both the domain <strong>and</strong> range<br />

are relative to F W .<br />

19.4 Composition of Transformations [Last used: Fall 1997 <strong>Midterm</strong>]<br />

In this question, we are working in 2 dimensions. All transformations map from the st<strong>and</strong>ard<br />

Cartesian frame to the st<strong>and</strong>ard Cartesian frame.<br />

Let R(θ) be the matrix for a rotation about the origin of θ in the counter-clockwise direction.<br />

Let T (⃗v) be the matrix for a translation by ⃗v.<br />

Let S(s x , s y ) be the matrix for a non-uniform s<strong>ca</strong>le about the origin by an amount s x in the x<br />

direction <strong>and</strong> s y in the y direction.<br />

Given a point p, two perpendicular unit vectors ⃗v <strong>and</strong> ⃗w, <strong>and</strong> two s<strong>ca</strong>le factors a <strong>and</strong> b, suppose<br />

we want to perform a non-uniform s<strong>ca</strong>le about p by a in direction ⃗v <strong>and</strong> b in direction ⃗w. Give<br />

the appropriate matrix product to achieve this transformation using the above notation for the<br />

matrices.<br />

Note: You should not give exp<strong>and</strong>ed forms of the matrices; instead, your matrix product should<br />

be products of R(), T (), <strong>and</strong> S() (each operation may be used more than once). Also, these should<br />

be treated as matrices <strong>and</strong> not transformations (which is important for the order). Further assume<br />

that points <strong>and</strong> vectors are represented as column matrices.<br />

19.5 Model, Viewing, <strong>and</strong> Perspective Transformations [Last Used: Fall 1996<br />

Final]<br />

For assignment 3, you implemented hierarchi<strong>ca</strong>l transformations that could transform the view<br />

frame relative to itself, <strong>and</strong> the modeling transformation relative to the current model frame.<br />

If P V M is the composition of the perspective transformation, the world-to-viewing transformation,<br />

<strong>and</strong> the model-world transformation respectively (with M embodying both the modeling<br />

transformations <strong>and</strong> the Model-to-World change of basis) give the composition of transformations<br />

in each of the following situations. Note: for each <strong>ca</strong>se, assume you start from P V M.<br />

1. If we transform the view frame by a transformation embodied in a matrix T represented<br />

relative to viewing coordinates.<br />

2. If we transform the view frame by a transformation embodied in a matrix T represented<br />

relative to world coordinates.<br />

3. If we transform the model frame by a transformation embodied in a matrix T represented<br />

relative to current model coordinates.<br />

4. If we transform the model frame by a transformation embodied in a matrix T represented<br />

relative to world coordinates.<br />

5. If we use an alternative perspective transformation P ′ .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!