EXERCISES FOR WEEK 4
week4-1

Suppose the camera has eye = (0,0,-5), u = <1,0,0>, and v = <0,1,0>. Suppose further its viewangle is 30 degrees and it has the same aspect as the screen window. For a window with 480 rows and 640 columns, find:

  • Value for aspect
  • Value for N
  • Value for H
  • Value for W
  • Expression for Uc
  • Expression for Vr
week4-2

Continuing with the previous exercise,

  • what is the starting point for the ray?

 

 

week4-3

Continuing with the previous exercise,

  • what is the direction of the ray that passes through the pixel at row = 100 and column = 200?

 

week4-4

Continuing with the previous exercise,

  • what is the parametric expression for the ray going through this point?

 

week4-5

Continuing with the previous exercise,

  • what is the point on the ray when t = 0?
  • what is the point on the ray when t = 1?

 

week4-5

Consider a camera with eye = (4,4,4) that looks at the look-at-point (0,1,0). Suppose that up is initially set to <2,1,0>. Visualize the situation. Find the vectors u, v, and n. Don't forget to normalize each. It does not matter when you normalize (either as soon as you calculate it or after you calculate all three.)