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 5 - Mirror, mirror
In this checkpoint, we implemented recursive ray tracing to create a reflective
sphere in 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 implemented a glossy reflection that is not perfectly reflective with 8 samples based on a probabilistic model:
For best results, click on an image to view it full-size.