Skip to content

w3ntao/pbrt-minus

Repository files navigation

pbrt-minus

cuda-build

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

feature

set up environment

Linux

Debian/Ubuntu:

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

Setting up for other distros should be similar.

Windows

It's recommended to build it 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 --spp 4

gallery

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