https://github.com/yindaz/pbrs
-
cd pbrs/mitsuba-af602c6fd98a
-
Fix bug 1 (ref) Change
#if BOOST_VERSION >= 106000
insrc/bsdfs/irawan.h
to#if BOOST_VERSION >= 105800
-
Fix bug 2 (ref) Add:
inline DScalar1& operator*=(const DScalar1 &v) {
grad = v.grad * value + grad * v.value;
value *= v.value;
return *this;
}
to line 263 in include/mitsuba/core/autodiff.h
- Build
scons -j8
- Python Binding In
export MITSUBA_PYVER=2.7 (whatever Python version of your system, mine is 2.7)
source setpath.sh