Ray Tracing, Version 1.2

Goal: Ray trace a scene where

  • the only object in the scene is the generic sphere
  • the only attribute of the generic sphere is an assigned (emissive) color
  • the camera is set up
    • at position (eyex, eyey, eyez),
    • looking at point (look_atx, look_aty, look_atz), with
    • the original up-direction for the camera being <0,1,0>.

  • speed-up has been accomplished by more wisely computing the ray's direction, for each ray.

Directory:

Ray Tools:

Specifics:

Driver Program:

Make sure this still works for the simple case by setting

This should give you the same result as your two previous versions. If it does, then try different values for the camers's position and look-at point.

Working Directory:

Make a subdirectory v1.2 in your Working Directory. When you have version 1.2 working correctly, copy all files pertaining to it, including the makefile, to that directory and don't touch it!