CSCI 480/580 Lecture 9 - In-Class Problems

  1. Given a viewing ray (\(\mathbf{p} + t \mathbf{d}\)) and the t at which it intersects a surface, find a unit vector giving the direction from the surface towards the viewer.

Recall that we use the convention that \(\vec{\ell}\) points towards the infinitely distant directional light source, while a point light source is specified by the position of the source \(\vec{s}\).

  1. Given a ray (\(\mathbf{p} + t \mathbf{d}\)) and the t at which it intersects a surface, calculate a unit vector giving the direction from the surface towards:

  2. A scene contains a unit sphere centered at the origin. A directional light with direction \(\vec{\ell}\) shines on the scene.