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

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> 39<br />

P 0 C 0<br />

¡<br />

P 2 C 2<br />

¢ P 1 C 1<br />

Part (a) : Let u, v, w<br />

P γ = uP 0 + vP 1 + wP 2<br />

be the barycentric coordinates of P γ . Express u, v, w in terms of α, β, γ.<br />

Part (b) : Show that the color of the pixel at P γ <strong>ca</strong>n be given as<br />

C γ = uC 0 + vC 1 + wC 2<br />

Part (c) : Consider the results of Parts (a) <strong>and</strong> (b) “in the limit.” That is, suppose the triangle<br />

is large enough that the size of a pixel <strong>ca</strong>n be neglected, u, v, w, α, β, γ <strong>ca</strong>n be regarded as<br />

continuously varying, <strong>and</strong> all rotations are possible. Claim: the color at any position on the<br />

triangle will be unchanged if the triangle is rotated. Is this claim true or false? Why?<br />

Part (d) : Whether or not you believe the claim in Part (c), it is not true that the color at any<br />

position of a square will be unchanged if the square is rotated, assuming that the color is<br />

interpolated in the same way as on a triangle (linear interpolation along edges followed by<br />

linear interpolation into the interior). Give an example to show that the color of the center<br />

point of a square could depend on the square’s orientation.<br />

15.4 Phong Lighting [Last Used: Fall 1992 Final]<br />

A spot on a shiny plastic surface could to be coloured according to:<br />

I λ = I aλ k a O dλ + f att I pλ [k d O dλ (N · L) + k s (R · V ) n ]<br />

(a) Explain what each of the symbols means <strong>and</strong> what role it plays. (e.g. What does k a st<strong>and</strong> for?<br />

What does the a st<strong>and</strong> for? What effect does k a represent? etc.)

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

Saved successfully!

Ooh no, something went wrong!