Optimize the size of an area light #1490
Unanswered
AnsonSavage
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
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 learning Mitsuba and loving it! I am beyond impressed at the technical genius that has gone into this project.
I am running into a couple of newbie issues. I posted one of my questions on Stack Overflow: https://stackoverflow.com/questions/79431447/gradient-lost-when-constructing-a-matrix-in-mitsuba-3
I suppose a simpler pre-req to that question that I have is: instead of trying to optimize a latent variable that controls the area light's size, how come I can't optimize the area light's to_world matrix?
When I try to print the scene traversal, it seems to show that the to_world matrix is differentiable:
If I do something like:
I get this error:
I thought it was differentiable, but maybe I'm missing something?
If I instead do
To tell the optimizer to optimize the underlying matrix, I get no errors here, but I do get an error when I call
Stating that:
What am I missing?
Thanks!
Anson
UPDATE 2-15-2025
Okay, I've worked on this a little bit more, and it seems also that using params.keep() is having the same issue. Which makes sense. I just read the tutorial on the optimizer and that was super helpful. Now I'm going to just try and optimize the area light's vertex locations, if I can.
UPDATE 2-17-2025
Unfortunately it faces the same error. Zero gradient is propagated.
Beta Was this translation helpful? Give feedback.
All reactions