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.

NBPT render of a glass dragon /static/images/renders/nbpt/DragonClose.jpg
Language
C++, Slang
Graphics APIs
OpenGL, Vulkan
In progress
DirectX 12
Based on
PBRT
Source
GitHub

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

View the source on GitHub

Next event estimation

Both rendered at 1920 × 1080, 64 samples.

Renders

References

Textbooks & implementation resources
Papers
Assets