Ray Tracing
By Forrest Briggs
Tutorial
Basics
Diffuse Shading
Shadows
Reflections
Primitives and Multiple Colored Light Sources
Camera Translation and Rotation
Specular Highlights, Directional and Spot Lights
Ports
Windows up to primitives by Wenderson Teixeira
SDL (cross-platform) up to primitives by Milton Moura
More example code...
rt - my raytracer from computer science 155 at Harvey Mudd college (Graphics).
This C++ program uses a file format to store scenes and has heirarchical transformations. It is more sophistocated than the other code given here in many ways, but also less simple and fast. I think shadows are broken.
SuaveRay - another raytracer I wrote. This one's in java. It has a ray metasurface intersection function.
All material on this site Copyright © 2001-2005 Forrest Briggs. All rights reserved.