Ray Tracing, Version 2.1

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 <upx, upy, upz>.

  • speed-up has been accomplished by more wisely computing the ray's direction, for each ray.
  • the scene (including camera information and sphere information) has been described in a file using Scene Description Language

 

Working Directory:

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