Replies: 3 comments
-
Hi @juanraul8 In my limited experience with spectral rendering and Mitsuba 0.6, my understanding is the following: In Mitsuba 3 (and Mitsuba 2), the wavelengths are defined at runtime and are just an additional dimension to sample and integrate over. Specifically, during the ray generation we make use of Endpoint.sample_ray() which has as its second argument a "uniformly distributed 1D value that is used to sample the spectral dimension of the emission profile.". In fact, usually this means that its second argument is used to make a call to Endpoint.sample_wavelengths(). Now for your compilation issue, I might have misunderstood what you did, but you should just have to add For
The number 4 defines the number of wavelengths per ray, and it is somewhat of an arbitrary choice. You should be able to increase/decrease the number depending on whether or not a single ray (and a single path) should carry more/less spectral information in your scene/setup. |
Beta Was this translation helpful? Give feedback.
-
Hi @njroussel Thanks for the explanation!. I actually wrote the code snippet wrong in the message above. The idea was tracking more than 4 wavelengths, lets say 10. Below you can find the mitsuba.conf file I tried, in case you want to reproduce the issue. {
} If I tried to compile Mitsuba 3 with this configuration, I got the following error:
If I write 3 o 4 wavelengths, the code compiles fine! |
Beta Was this translation helpful? Give feedback.
-
This is probably because Dr.Jit only implements Python bindings for a limited set of Take a look at DRJIT_BIND_ARRAY_TYPES_DIM(Module, Guide, Scalar, 10) Although this might not be enough. |
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.
-
Dear Mitsuba 3 team,
Is there a way to define the number of spectral samples which are going to be used for the render? Similar to the setting parameter SPECTRUM_SAMPLES in Mitsuba 0.6.
I tried to compile the scalar_spectral with the following configuration:
Unfortunately, I got the following error:
Best regards,
Juan Raul Padron Griffe
Beta Was this translation helpful? Give feedback.
All reactions