Minimal Ray Tracer
Some code to accompany tonight's lecture: a version of Paul Heckbert's Minimal Ray Tracer from Graphics Gems IV.
I've updated the code to do the following:
I've also included a JPEG version of the image, generated with
- compile with GNU C
- output plain PPM
- generate a 1024 by 1024 image instead of the tiny 32-pixel original
If you want to experiment with changing the scene defined in
ray.h, you'll probably want to download NetPbm for Windows.