University Projects #Graphics#Mathematics
NOTEClick this link to view the code on GitHub.
Overview
A ray tracing engine implemented from the ground up, using only pixel-level rendering to create realistic lighting effects. Features Phong shading, multiple geometric primitives, and mirror reflections; all built from mathematical first principles.
Key Concepts
- Built complete ray tracer from scratch using only
setPixel()function - Implemented Phong lighting model with ambient, diffuse, and specular components
- Built ray-object intersection algorithms for spheres, circles, planes, and cylinders
- Calculated surface normals for correct lighting on each primitive
- Added mirror reflections with recursive ray casting
- Applied vector mathematics (dot products, normalization, reflection) throughout
Technologies
Processing, Ray Tracing, Phong Lighting, Linear Algebra, 3D Geometry