A simple ray tracer written in Java for tick 1 of the Part IA Introduction to Graphics course. The program renders a 2D image of a 3D scene specified in a .xml
file.
For this task, we were given skeleton code and tasked with implementing the following:
- Ray-plane intersections in
Plane.intersectionWith(...)
- Ray-sphere intersections in
Sphere.intersectionWith(...)
- A Phong shading model, which calculates the direct illumination at a point based on ambient and point light sources present in the scene, in
Renderer.illuminate(...)
- Shadow rays, also in
Renderer.illuminate(...)
- Recursive ray tracing for reflective surfaces in
Renderer.trace(...)