Back to Projects

Ray Tracer

Physically-based ray tracer with advanced rendering features

Overview

A ray tracer that implements core computer graphics concepts

Technologies

C++

Key Features

  • Phong shading model with ambient, diffuse, and specular components
  • Reflective materials with adjustable reflectivity (0-1 range)
  • Efficient ray-object intersection for spheres and planes
  • Multiple light sources with point and ambient lighting
  • Recursive ray tracing with configurable depth limit

Implementation

  • Implemented Phong shading with separate ambient, diffuse, and specular components
  • Developed reflective shader that combines base material with reflection
  • Created ray-sphere intersection using quadratic equation solving
  • Implemented shadow ray calculations with light source visibility testing
  • Designed recursive ray tracing system with depth control