Closed joeftiger closed 2 years ago
I'm curious: could you explain why you are compiling Mitsuba with a whoppping 36 spectral samples? Mitsuba uses stochastic sampling to cover the full continuous wavelength domain. (By setting the spectral samples to 36 you will not be getting data with a spectral discretization into 36 separate bins.)
Aha, indeed -- I saw now in your description that you're trying to do what I mentioned above. This is unfortunately not possible with Mitsuba 2, but you could try PBRTv3 or Mitsuba 1.
Summary
Compiling mitsuba with
Spectrum<Float, 36>
insidemitsuba.conf
fails due to an ambiguous overloaded operator.System configuration
scalar_rgb
scalar_spectral
packet_rgb
(with and without)packet_spectral
(with and without)Description
I am trying to compile mitsuba with a spectrum size of 36. As far as I understood, I have to change the value iniside
mitsuba.conf
fromSpectrum<Float, 4>
toSpectrum<Float, 36>
. I didn't find any documentation about this value and searched the source code definition of Spectrum to try and understand it.The compilation then fails with
Is
36
somehow a magic number that is disallowed? I am trying to compare Mitsuba2 to my bachelor thesis program which uses a spectrum size of 36.Steps to reproduce
git clone --recursive https://github.com/mitsuba-renderer/mitsuba2.git
cd mitsuba2
git checkout 4e7628c6eed365904ca2ba536b795d1b03410344
cp resources/mitsuba.conf.template mitsuba.conf
mitsuba.conf
to replace/includemkdir build && cd build
cmake -GNinja ..
ninja