Fork of PBRT v2 for COMP 408 at VUW. Not really a fork because of build system changes and removing all but the renderer source.
Original here.
This is just the PBRT renderer (no tools / exporters), with a CMake build system.
Bison and Flex are required in order to generate the parser and lexer.
The master
branch has the CMake and pbrt-v2 source (modified just enough to build nicely).
From repository root:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
cd ..
Then run like:
./build/bin/pbrt ./scenes/bunny.pbrt
Somewhat old but sufficient versions of Bison and Flex can be obtained from here and here. These must be installed to a path without spaces, e.g. C:\GnuWin32\
; note that the default does not satisfy this. The binary directory must be added to your path to allow CMake to find the executables.
From repository root, in cmd:
mkdir build
cd build
cmake .. -G "Visual Studio 12 Win64"
In VS:
- Set
pbrt
as the startup project - Set its working directory to
$(SolutionDir)..
(all configs) - Set its command arguments to e.g.
./scenes/bunny.pbrt
(all configs) - Switch to release config, as non-optimized builds will be very slow to render