Ray Tracing Projects

Assignment 1: A Basic Ray Tracer

Return to Ray Tracing Assignment Overview
 

Not too much exciting going on here.  A basic ray tracer with support for sphere intersections only.  No shadows, no lighting.  Reads model from file that includes sphere location, radius and color.  The results don't look like much, but there's actually a lot of code built up just to generate this image.


400x400 GIF converted from 500x500 PPM output

The following input file was used to generate the image:

sphere -0.5 -0.9 -2.0 0.8 0.53 0.68 0.48
sphere 6.0 10.0 -50.0 20.0 0.99 0.85 .031
sphere -1.0 0.0 -5.0 1.0 0.06 0.21 0.23
sphere 0.0 0.0 -6.0 1.0 0.41 0.14 0.00
sphere 1.0 0.0 -7.0 1.0 0.15 0.30 0.37
sphere 2.0 0.0 -8.0 1.0 0.70 0.69 0.55
 

email at jasonwaltman dot com

(c) 2000-2007 jason waltman