Skip to main content

Sphere Ray Trace - 4.0.0

Ray-tracing on Spheres...


Ian Mallett
(geometrian)
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.

Links

Home Page
http://geometrian.com/programming/index.php
Source
http://www.geometrian.com/Programs/Sphere Ray Trace 2.zip

Releases

Sphere Ray Trace 4.0.0 — 5 Jun, 2008

Sphere Ray Trace 2.0.0 — 5 Jun, 2008

Sphere Ray Trace 6.0.0 — 12 Jun, 2008

Pygame.org account Comments