Transparent spheres and mirrors

Putting together some of the previous basic ideas, I wrote a non-sequential ray tracer. Here is an example with a scene of random mirrors and semi-transparent mirrors. Rays are attenuated according to the transmission and reflection coefficients of the objects.

retrans_mirrors
Snapshot of the program – ray tracing is interactive/real-time (see below). Points of intersections are shown in red, some objects are semi-transparent and attenuates the ray light intensity.
semi_mirrors
The quality of the output .GIF is poor due to file size constraint.

Read More »