from Hacker News

Creating a path tracer from scratch in Rust

by alexanderameye on 8/30/23, 11:43 AM with 1 comments

  • by alexanderameye on 8/30/23, 11:43 AM

    How I made my first path tracer from scratch in Rust for a University course. Explains how I went from basic naïve path tracing to explicit light sampling and BRDF importance sampling. I also added different materials such as dielectrics (glass) with caustics and metals. Finally, I added anti-aliasing, a bounding volume hierarchy (BVH), environment lights, .obj model loading and texture support.