A simple recursive ray tracer using the Blinn-Phong model. Created for Stanford's CS148, an intro class for computer graphics and imaging.

4 min read • Last updated July 12, 2022

hi

For CS148: Introduction to Computer Graphics, my partner and I rendered a scene using the Blinn-Phong reflection model, adding a shadow ray, ambient light, reflection, fresnel, and transmission. This was done using a ray tracing algorithm using recursion to approximate how a surface interacts with light.

The Blinn-Phong reflection model method breaks up lighting into diffuse, specular and ambient reflection. This simple recursive ray tracer is used for mirror-like objects (e.g. metals, water) which reflect light or transparent objects (e.g. glass, water) which need light to pass through. Vivian and I implemented a simple recursive ray-tracing algorithm to model glass and reflective surfaces in the scene.

While I can't disclose the details of my project implementation due to Stanford's Honor Code, feel free to contact me if you would like to learn more.