top of page
ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg
Untitled design (17).png

Alchemist. Futurist. Raegan Brown

ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg
ChatGPT Image Oct 23, 2025, 11_43_49 PM_edited_edited_edited.jpg

Ray Tracing Engine 

Overview:

Using a class-provided template, I implemented ray tracing for spheres and triangles to generate rendered images from scene data defined by vertices and RGB values. The project focused on understanding how light interacts with geometry and how shading models are applied in a rendering pipeline.

Tools and Techniques Used:

  • Visual Studio Code

  • C++

  • OpenGL

Process:

  • Extended the base code to compute ray–triangle and ray–sphere intersections and determine visible surfaces at each pixel.

  • Implemented Phong and Gouraud shading in OpenGL Core Profile shaders to simulate surface lighting and material appearance.

  • Parsed input files containing triangle vertices, normals, and color values, and incorporated them into the ray tracing pipeline.

  • Used C++ to loop through pixels, evaluate ray interactions, and pass shading information to the GPU for rendering.

Result:

A working ray tracer capable of rendering scenes with smooth shading, accurate surface detection, and basic lighting effects. This project strengthened my understanding of computer graphics fundamentals, shading models, and GPU-CPU interaction within an OpenGL pipeline.

raytracing2.gif
raytracing.gif
bottom of page