


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Friday 10 December 2004 2.5 hours
Problem 1: Filtering & Resampling (20 pts)
What is the result of resampling this image to increase its resolution by a factor of 3 2 using bilinear interpolation (that is, using a separable tent filter)? Assume that the upper left white pixel aligns exactly with a pixel in the resampled image. Compute your result by the separable filtering method, and give your answer as two arrays of numbers like the one above: one for the intermediate result and one for the final output.
Show how to compute the result easily on paper using a small number of easy mul- tiplication and addition operations (you can do it with less than a dozen individual operations, not counting multiplication by 1 and 0 and addition to 0). Take advantage of separability, associativity, commutativity, and symmetry. Give the final answer as another array of numbers, but use symmetry to reduce writing if you like.
Problem 2: Graphics Pipeline (25 pts)
Consider an eye-space triangle whose vertices have the following positions, normals, and texture coordinates assocated with them:
a: position (0. 4 , 0. 2 , −2), normal (− 0. 5 , − 0. 3 , 1), texcoord (0, 0)
b: position (1. 75 , 0. 25 , − 2 .5), normal (0. 5 , − 0. 3 , 1), texcoord (0. 8 , 0 .4)
c: position (0. 6 , 1. 5 , −3), normal (− 0. 5 , 0. 5 , 1), texcoord (0. 3 , 0 .9)
The camera’s field of view is 90 degrees horizontally and vertically, and the near and far distances are 1 and 5. The image is 20 by 20 pixels. This means the projection and viewport matrices are:
Mp =
Mv^ =
(You may not need all this information, but it may be handy in checking answers.) Here is how the triangle looks in screen space:
12
14
a b
c
Problem 4: Splines (25 pts)
A B´ezier spline with the control points (1, 0), (1, 2), (2, 1), (0, 1) will form a cusp, as shown here on the left:
2
2
0 1
1
(^0 )
1
(^0) β
α
Let the lengths of the first and last segments of the control polygon be α and β, as shown at right in the figure above. We have seen that a cusp forms when α = β = 2, but for many other values of α it is also possible to find a β for which a cusp will form.
Hint: Three easy ways to check your answer: (a) make sure it works for α = 2; (b) by symmetry, swapping α and β will preserve the cusp; (c) the right-hand diagram is to scale.
Problem 5: Triangle Meshes (15 pts)
Consider the indexed triangle set defined by the vertex list [(–1, –1, –1) (–1, –1, 1) (1, –1,