NBPT
An offline PBR path tracer written in C++ with Slang GPU compute shaders, built on the framework from the PBRT book. It renders with OpenGL or Vulkan, and a DirectX 12 backend is in progress.
/static/images/renders/nbpt/DragonClose.jpg
Features
Rendering
- Real-time path traced scene editor
- Progressive sample accumulation
- Offline/final rendering at configurable resolution, sample count, and bounce depth
- Depth of field
- SSAA
Materials & lighting
- Physically based metallic-roughness materials
- GGX microfacet reflection
- GGX VNDF importance sampling
- Next event estimation with MIS for emissive sources
- Emissive light sampling
- HDR environment lighting
Geometry & acceleration
- Sphere, triangle, and quad primitives
- glTF model loading
- Meshes and mesh instancing
- Editable material assignments
- Custom BVH with TLAS and BLAS acceleration structures
- Iterative GPU BVH traversal
Roadmap
- Vulkan rendering path using Vulkan acceleration structures
- SAH BVH construction (currently a median split)
- Volumetrics
- Next event estimation for HDRIs
- Restructure the shader pipeline to support spectral rendering
- More debug features and performance metrics
- DirectX 12 renderer
Next event estimation
/static/images/renders/nbpt/64S_NEE_Off.jpg
/static/images/renders/nbpt/64S_NEE_On.jpg
Both rendered at 1920 × 1080, 64 samples.
Renders
/static/images/renders/nbpt/DragonClose.jpg
/static/images/renders/nbpt/CornellDark.jpg
/static/images/renders/nbpt/CornellBright.jpg
/static/images/renders/nbpt/DamagedHelmet.jpg
/static/images/renders/nbpt/BuddhaMetal.jpg
/static/images/renders/nbpt/Bocchi.jpg
References
Textbooks & implementation resources
- Physically Based Rendering: From Theory to Implementation Matt Pharr, Wenzel Jakob, and Greg Humphreys
- Ray Tracing in One Weekend Series Peter Shirley, Trevor David Black, Steve Hollasch
- LearnOpenGL Joey de Vries
- Cycles Renderer Documentation Blender Foundation
Papers
- Ray Tracing Deformable Scenes using Dynamic Bounding Volume Hierarchies Ingo Wald, Solomon Boulos, and Peter Shirley
- Enterprise PBR Shading Model 2025x Dassault Systèmes
Assets
- Stanford models Stanford University
- Damaged Helmet Khronos Group
- A Beautiful Game Khronos Group
- Stormtrooper scene ScottGraham
- Bocchi Sketchfab
- HDRIs Poly Haven