next up previous
Next: About this document ... Up: ii_ray_tr Previous: ii_ray_tr

3. Problems

Problem II-1. Suppose everything is exactly as in Example [*], except that the sphere is centered at $ (0,0,-5)$ (while still being of radius 3). For the same $ P$, what is the brightness of the pixel there?

Problem II-2. Using Phong shading, find the brightness of the pixel at $ (1,0)$ on the viewplane $ z = 0$ as seen from the viewpoint $ (0,0,2)$, if the surface is the sphere of radius 5 centered at $ (-1,0,-6)$ and the light source is in the direction $ (1,0,0)$.



Problem II-3. Suppose everything is exactly as in Example [*], except that the object is a plane piece of paper with equation $ x+y+z = -3$. For $ P = (1,1,0)$ as before, what is the brightness of the pixel there? Does it depend on the choice of $ P$? (For the normal, there isn't any ``outward'' direction; instead, choose the direction that is on the same side of the paper as the light source.)



Problem II-4. Let the viewpoint be at the origin, let the viewplane be the $ z=10$ plane, and let s$ = \frac 13 (2,2,1)$. Suppose the object is the sphere of radius 10 centered at $ (0,0,20)$. What is the brightness of the pixel at $ (3,4,10)$? (Or is it in shadow?)



Problem II-5. In Example [*], consider the same ray but suppose the sphere is shiny (specular reflection). Find parametric equations for the reflected ray.

Method: For the reflected ray, think separately about its direction and about a point through which it goes; then use the point-direction parametric form of a line. For the direction, first find a direction vector for the incoming ray and use your knowledge of reflections to reflect this vector in the mirror through the origin with appropriate normal, to find the direction of the reflected ray. (Since this part of the calculation is with vectors rather than points, you don't have to worry about where the mirror is, but only the direction of its normal.)


next up previous
Next: About this document ... Up: ii_ray_tr Previous: ii_ray_tr
Kirby A. Baker 2002-03-07