Replies: 2 comments 11 replies
-
Hello @free7187, Did you check the values of PS: when debugging things like this, I would recommend removing |
Beta Was this translation helpful? Give feedback.
-
what you are trying to do is not supported by Mitsuba 3. Mitsuba 3 performs spectral rendering using a continuous Monte Carlo sampling of the spectral domain. Increasing the number of spectral channels will accelerate the convergence of this Monte Carlo procedure at the cost of higher register usage and computation. It's a subtle tradeoff between the cost of the computation and the convergence of the Monte Carlo integral. A value of 4 spectral samples is chosen as default, and you will likely not get much of a performance benefit by going higher than that. In contrast, discrete rendering using a specifically chosen set of wavelengths is not supported. You may be able to hack Mitsuba to do this, but we cannot provide support for such a feature here -- you will be on your own. |
Beta Was this translation helpful? Give feedback.
-
Thanks to the discussion#1309 , I can now attempt to edit
spectral multi-channel rendering
in Python.However, the working mode for spectral channels is not quite what I expected. To test whether I could edit individual channels of the spectral BRDF, I ran a simple test with the following code:
And here is the XML scene setup:
I initially assumed that with the
32-channel
setup, setting channels[0:10]
,[10:20]
, and[20:30]
of new_brdf to 1 (with other channels set to 0) would result in different colors for the render output. However, the final render always appears gray:I also tried setting all BRDF channels to 1, as well as setting only one specific channel to 1. The render results are as follows:
After analyzing the RGB ratios for all pixels in these three images, I noticed that they all tend towards
(1:1:1)
. It appears that changing channel values only affects the final output’s brightness, which is quite different from what I had anticipated. I originally expected, for example, that setting channels[10:20]
to 1 and others to 0 would result in agreen
color.Am I missing something? How should I properly edit spectral BRDF channels to achieve the intended effect?
Beta Was this translation helpful? Give feedback.
All reactions