Building a Basic Ray Tracer
Throughout the semester we'll be building a basic Ray Tracing framework in Java and posting the results of our checkpoints here.
Jump to a completed checkpoint:
Checkpoint 6 - Bending Over Backwards
In this checkpoint, we worked with our recursive implementation to add a
transmissive sphere to the scene.
Here's our initial output:
Note that, true to the Whitted scene, we have left an ambient component in the
shading of the floor.
Without the ambient component, the darkest shadows on the floor would be black.
We also added functionality for multiple layers of transmissive or reflective material.
This allows us to put other spheres inside transmissive ones, including additional transmissive spheres.
For the first example, we've added a transmissive layer around the smaller reflective sphere:
In this next image, we've also added several additional transmissive and reflective layers inside the larger sphere:
For best results, click on an image to view it full-size.