/graphics_ia_ray_tracer

A simple ray tracer written in Java for the Part IA Introduction to Graphics course.

Primary LanguageJava

Part IA Introduction to Graphics: Ray Tracer

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.

A render of a custom scene A render of a test scene

📋 Task

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(...)