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 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
64 CS488/688 Introduction to Computer Graphi<strong>cs</strong><br />
19.15 Window to Viewport Transformation [Last Used: Winter 2009 Final]<br />
After projection, suppose we have a triangle appearing in our window as shown in the following<br />
diagram:<br />
Sketch how this triangle will map to each of the following viewports on our output device (the<br />
large rectangle is the output device, with two of its corners labeled with pixel coordinates; the small<br />
rectangle is the viewport on our output device).<br />
1600,1200 0,0<br />
612,792<br />
0,0<br />
1600,1200<br />
(a) (b) (c)<br />
0,0<br />
19.16 Change of Coordinates [Last Used: Winter 2006 <strong>Midterm</strong>]<br />
Suppose we have two coordinate frames F w = { ⃗w 1 , ⃗w 2 , O w } <strong>and</strong> F v = {⃗v 1 , ⃗v 2 , O v } as shown below,<br />
with<br />
√ √ √ √<br />
2 2<br />
2 2<br />
⃗v 1 =<br />
2 ⃗w 1 −<br />
2 ⃗w 2, ⃗v 2 =<br />
2 ⃗w 1 +<br />
2 ⃗w 2, O v = O w + 3 ⃗w 1 + ⃗w 2<br />
⃗v 2<br />
⃗w 2<br />
⃗w 1<br />
⃗v 1<br />
P<br />
O v<br />
O w