Projects · Tools & libraries

Raytracer

Paused 2024, 2026 Author

A CPU ray tracer in C++ following Ray Tracing in One Weekend, with diffuse, metal and glass materials.

1 photo

  • The final 2560×1440 render
    The final 2560×1440 render

My run through Ray Tracing in One Weekend: a positionable camera, anti-aliasing, defocus blur (depth of field), and Lambertian, metal and dielectric (glass) materials. The picture on this page is its final 2560×1440 render.

In 2026 I came back to it for a second version, on the dev branch: rendering is split across every CPU core with std::jthread, a bounding volume hierarchy cuts down the ray-sphere tests, and there are three scenes to pick from.

I plan to continue with the follow-up books.