A4: Ray Tracer

October 23, @8:25PM
Deadline in two weeks. Time to start the ray tracing assignment.

October 24, @1:25AM
Sweet! The background is working. I went with a simple blue gradient.

According to Larry Smith, blue is the favourite colour of successful people.

Background
Now I should add some objects into the picture

October 27, @3:54PM
Finally...sphere intersection works! There's no lights yet, but the spheres from simple.gr look about right:

Simple1
October 28, @0:15AM
Coded phong lighting, but this is all I get. The shadows and highlights look like they're in the right place, but the rest is all wrong.

Simple2
October 28, @2:13AM
Found the bug. I set epsilon to 1e-20. Too small...

Simple3
October 29, 10:30PM
I just flunked Larry Smith's economics midterm. I think I fixed the problem of the spheres rendering in the wrong order, but now the ray tracer doesn't run at all.

SegFault
October 29, @10:37PM
damn, still doesn't run.
SegFault
October 29, @11:19PM
Don't have a clue what's borked. Looks like I will have to resort to gdb.
GDB
October 29, @11:22AM
aarrg....gdb crashed.
...time to give up for today.

GDB
November 6, @5:22AM
Just sat in front of a monitor for 50 hours straight, and finally have it all working.
Here's the final scene.
My extra features were radiosity and triangular spline patches.
Sample