Get material properties of interesected surface inside Mitsuba Integrator sample loop #1703
Unanswered
USharma002
asked this question in
Q&A
Replies: 1 comment
-
Hello @USharma002, Have you tried calling mitsuba3/include/mitsuba/render/bsdf.h Lines 483 to 501 in 8120648 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to set up a path guiding integrator framework in python for testing and am currently trying to integrate the Neural Radiance Cache within the Integrator. For the inputs of radiance cache I have planned to take 16 dimensional input.
Total input dimensions = 3 (pos) + 3 (normal) + 3 (diffuse color) + 3 (specular color) + 3 (dir) + 1 (roughness) = 16
but I am unable to get these properties of the intersected surface inside the loop. For bsdf I can think of a workaround but the specular color/reflectance and roughness I am unable to do but they are defined in the scene dictionary.
Is there some way to access these properties inside the integrator (or probably any custom property I add to surfaces as well) ?
Here is the implementation of the integrator : https://github.com/USharma002/py-neural-path-guiding/blob/main/path_guiding_integrator.py
Beta Was this translation helpful? Give feedback.
All reactions