mitsuba-renderer / mitsuba2

Mitsuba 2: A Retargetable Forward and Inverse Renderer
Other
2.05k stars 266 forks source link

[❔ other question] Differentiate wrt light source position #414

Closed weberhen closed 3 years ago

weberhen commented 3 years ago

Please add one of the following label to your issue's title, and delete this section:

Summary

Differentiate wrt light source position

Description

Hi! I would like to perform differentiable rendering in order to move a light source to match a GT image. I see that the parameter to_world is not differentiable, so I was wondering if you have an idea on how to do this, if there is something else regarding a light source position I could optimize for example. Any tip will help!

weberhen commented 3 years ago

sorry was to quick asking this. The answer is on https://github.com/mitsuba-renderer/mitsuba2/blob/pathreparam-optix7/docs/examples/10_inverse_rendering/invert_pose.py

Anyway, thanks for the amazing project!