top of page

Ray Tracer (C++)

Spring 2022

I created a ray tracer program using C++ for my Computer Graphics class.

For my first project in my Computer Graphics class, I implemented a ray tracer using C++ and a provided OpenGL program to display the scene. The goal of this project was to display different objects with different materials using a ray tracing algorithm.


The algorithm calculates diffuse, ambient, and specular light, given a light direction as a vector and light intensities. There are four objects in the scene: two spheres of different sizes, a tetrahedron, and a plane where the other objects rest on. There is a camera which you can use to navigate around the scene, and switch between orthographic and perspective view.


Details about how to run the project, as well as the controls, are all listed in the report and readme on GitHub.

Project Gallery

bottom of page