A Simple Ray Tracer
For CS4390, Computer Graphics, we were required to write a very simple
ray tracer. For those of you who aren't "computer literate," ray-tracing
is a really cool but computationally expensive way to render polygons.
I've included three sample images generated from my ray-tracer. The
program as written accepts an input file, which follows each image.
This information is how the scene is specified.

VIEW 5
LIGHT -10 10 10 1.0 1.0 1.0
POLY 4 -10 -2 0 -10 -2 -10 10 -2 -10 10 -2 0 0.6 0.6 0.6
SPHERE 0 0 -5 1.5 0.0 0.0 1.0
SPHERE -1 0 -2 0.5 1.0 0.0 0.0
VIEW 3
LIGHT 0 2 3 0.5 1.0 0.5
POLY 4 -10 -2 0 -10 -2 -10 10 -2 -10 10 -2 0 0.6 0.6 0.6
POLY 3 -3 -3 -7 0 5 -7 3 -3 -7 0.6 0.6 0.6
SPHERE 0 0 -5 1.0 0.0 1.0 0.0
SPHERE 0 0 -2 0.5 1.0 0.0 0.0
SPHERE 2 0 -2 0.5 1.0 1.0 0.0
VIEW 3
LIGHT 3 2 3 0.5 1.0 0.5
POLY 4 -10 -2 0 -10 -2 -10 10 -2 -10 10 -2 0 0.6 0.6 0.6
POLY 3 -3 -3 -7 0 5 -7 3 -3 -7 0.6 0.6 0.6
SPHERE 0 0 -5 1.0 0.0 1.0 0.0
SPHERE -0.2 0.2 -2 0.5 1.0 0.0 0.0
SPHERE 0.6 0.3 -1.5 0.3 1.0 1.0 0.0