Flutrt is a path tracer written in C++.
http://dacunni.github.io/fluxrt/render_gallery.html
Fetch third party dependencies
git submodule init
git submodule update --remote
Setup the build
mkdir build
cd build
cmake ..
Build and unit test the code
# In the 'build' directory
make -j install
# Run unit tests
ctest
If you have installed a newer version of GCC, export the CC and CXX environment variables prior to running cmake so it picks up the new ones.
export CC=/usr/local/bin/gcc
export CXX=/usr/local/bin/g++
# cmake ...
If you wish to disable building the Python bindings, you can turn off a cmake variable to do so:
cmake -DBUILD_PYTHON_BINDINGS:BOOL=OFF ..
If a scene description uses relative paths for resource specification, you will need to set environment variables pointing to the location of those resources. Absolute paths beginning with '/' will be respected, even if these environment variables are set.
export MESH_PATH=/Volumes/Extra/data/3dmodels
export ENV_MAP_PATH=/Volumes/Extra/data/envmaps
export SCENE_PATH=../../scenes/toml
cd app
./trace_scene -s 10 -d 5 -t 3 ../../scenes/toml/mitsuba-sphere-envmap.toml