Wavelength-dependent phase function #735
Unanswered
DoreenMulder
asked this question in
Q&A
Replies: 1 comment
-
As you're using a pretty complex variant ( There has also been some work to properly support spectral phase functions, check out this PR: #748. This is a much more robust approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to implement a wavelength-dependent phase function, but I'm running into some issues I'm not entirely sure how to solve.
I'm using Mitsuba in its
llvm_ad_spectral_polarized
mode, since I would like to make use of automatic differentiation in a later stage of my program. The llvm backend assigns multiple wavelengths to a single ray to speed up the rendering process.I pass a ray to my phase function. Since the phase function I aim to use is wavelength dependent, I get a different
(wo, pdf)
for each wavelength. But these wavelengths are all associated to the same ray, which only has one direction. I'm wondering if anyone has advice for me as to what would be best to do in this case?While I could use a scalar variant to operate on a single wavelength for each ray, I need the llvm backend for its automatic differentiation later. Is it possible to tell Mitsuba to only use one wavelength per ray without having to change over to a scalar variant?
Many thanks!
Doreen
Beta Was this translation helpful? Give feedback.
All reactions