Skip to content

Instantly share code, notes, and snippets.

@sunshineatnoon
Last active April 27, 2018 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunshineatnoon/ad341c34ee7b94d8345c83f6cb962f51 to your computer and use it in GitHub Desktop.
Save sunshineatnoon/ad341c34ee7b94d8345c83f6cb962f51 to your computer and use it in GitHub Desktop.

Install Mitsuba

Clone repo

https://github.com/yindaz/pbrs

Install Mitsuba

  • cd pbrs/mitsuba-af602c6fd98a

  • Fix bug 1 (ref) Change #if BOOST_VERSION >= 106000 in src/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment