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 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CS488/688 Introduction to Computer Graphi<strong>cs</strong> 19<br />
9 Hierarchy<br />
9.1 Hierarchi<strong>ca</strong>l Modeling: A3 <strong>and</strong> A4 [Last Used; Winter 2013 Final]<br />
You implemented hierarchi<strong>ca</strong>l modeling in both assignment 3 <strong>and</strong> assignment 4. If done correctly,<br />
you could have used the puppet you modeled in assignment 3 as a model for your ray tracer in<br />
assignment 4. However, despite the hierarchies being the same, the code you wrote in the two<br />
assignments did very different things when traversing the hierarchies.<br />
Discuss these difference by outline the operations performed on the hierarchies by each assignment.<br />
9.2 2D Hierarchi<strong>ca</strong>l Modeling [Last Used: Winter 2004 <strong>Midterm</strong>]<br />
In this question, the following notation is used: I is the do-nothing identity transformation, T (x, y)<br />
is a 2D translation by vector (x, y), S(x, y) is a non-uniform s<strong>ca</strong>le with factors x <strong>and</strong> y, <strong>and</strong> R(θ)<br />
is a counter-clockwise rotation about the origin by angle θ (in degrees).<br />
We want to model the following 2D “checker board”:<br />
Draw a DAG to model the checker board, with a single root node <strong>and</strong> a single leaf node<br />
containing a unit square centered at the origin as shown below. You should draw your internal<br />
nodes as boxes with one of the transformations listed above. The boxes should be connected with<br />
ar<strong>cs</strong>; you may use multiple ar<strong>cs</strong> to/from any box. You may use no more than 6 transformations<br />
(i.e., you may have no more than 6 internal nodes).