Nevin
Menu
Back to Project Log
[Complete]

Raytracer

An interactive multithreaded CPU ray tracer in C++ with PBR lighting, reflections, shadows and AABB-accelerated ray tests.

Project Overview

The raytracer is an interactive CPU renderer written in C++. It reads OBJ models and writes the rendered frame buffer to an image, and everything that changes the picture while it runs is broken down in Key Features.

Key Features

  • Lighting breakdown: The scene can be rendered as observed area (Lambert's cosine law), incident radiance, the BRDF, or the combined result.

  • Reflections and shadows: Both toggle at runtime, and rays trace up to ten bounces deep.

  • Ray intersection: AABB slab tests throw out misses early, and Möller-Trumbore resolves the ray-triangle hits.

  • Multithreaded: Pixel work is spread across threads, and a benchmark run measures the speed-up.

SYS_SPECS

Language:
C++
Technology:
SDL2
Platforms:
Windows