Sphere Ray Trace
Ray-tracing on Spheres...
Ray-tracing is a way to create super-realistic lighting effects, among other things. In this screenshot, for instance, you can see refractions and reflections.
Anyway, this is more of a tech demo than anything--it only works with spheres, as they are mathematically simple. There are a few bugs here. The refraction code is based off of my circle refraction program: http://www.pygame.org/project/768/?release_id=1324. The circle program, which currently just ignores internal reflection produces artifacts in the image. They're errors, since the refraction method is not implemented. Any problems show up magenta here. I'll fix all this later in perhaps another release.