Sphere Ray Trace
Sphere Ray Trace - 6.0.0
Ian Mallett (geometrian)
geometrian shadows shadow sphere ray reflection raytrace reflect raycast reflections raycaster cast refract caster trace refraction raytracer tracer refractions
Lately, I've realized that while PyOpenGL is fast and powerful, it may not be quite powerful enough to create the realism I want easily.
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.
Added refraction. Still has a few bugs therein, though...
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.