Replies: 4 comments
-
@mcrescas Do you mind taking a look at this? |
Beta Was this translation helpful? Give feedback.
-
Hi @Angom8 , The sorting happening in the Could be possible to have more information about your setup or even a reproducer? Best regards, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I think i found a fix. By default, integrator.cpp skips 4 or 5 channels of RGBA via render_sample. However, this specifically derails AOVs if used with a spectralfilm. A simple check on the film Flag (Special or Spectral) to adapt the skip to the number of channels is enough. Applied fix : |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently working on a spectral albedo implementation for Mitsuba3 and noticed some weird interactions with the specfilm plugin. My main question revolves around this line in the prepare function.
std::sort(sorted.begin(), sorted.end());
What is its purpose ? I don't see any clear use that would require a sorted array of channels. It may also cause some unintended behaviors if the loaded scene tries to name its SRFs with the letter y or z, as their content will be placed last and mess with this instruction later in prepare_sample
aovs[m_channels.size() - 1] = weight;
I noticed this as my aov channels were being placed last instead of the weights and consequently created a film plugin without the sorting. I wanted to make sure nothing would go wrong without it.
Have a great day,
Beta Was this translation helpful? Give feedback.
All reactions