Skip to content

w3ntao/pbrt-minus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbrt-minus

cuda build

A simpler, less performant, physically based, GPU ray tracer rewritten from PBRT-v4.

feature

  • CUDA acceleration
  • HLBVH with work queues (Pantaleoni et al. 2010, Garanzha et al. 2011)
  • uni-directional path tracing: wavefront path tracing (Laine et al. 2013), light sampling, multiple importance sampling, russian roulette
  • bi-directional path tracing
  • metropolis light transport: on uni-directional and bi-directional path tracing
  • spectral rendering
  • power light sampler
  • stratified sampler
  • visualize progressive rendering with OpenGL

set up environment

Linux

Debian/Ubuntu:

$ sudo apt install -y \
  cmake libglu1-mesa-dev libpng-dev libx11-dev xorg-dev libxrandr-dev

Setting up for other distros should be similar.

Windows

It's recommended to build with Windows Subsystem for Linux.

CUDA on WSL might help set up CUDA.

build and render

$ git clone --recursive https://github.com/w3ntao/pbrt-minus.git

$ cd pbrt-minus
$ mkdir build; cd build
$ cmake ..; make -j

$ ./pbrt-minus ../example/cornell-box-specular.pbrt --preview --spp 16

gallery

More scenes at https://github.com/w3ntao/pbrt-minus-scenes.