mitsuba3 icon indicating copy to clipboard operation
mitsuba3 copied to clipboard

about the parameter to_world of camera or projector emmits

Open ShuaiGer1234 opened this issue 2 years ago • 2 comments

Hi, There is a confused question I would like to ask. I check the camera and projetor plugin, I fount the to_world params can not be differential , So would you like to give me some advice about how can I optimize the camera pose or projector pose in mitsuba Here I find other people do projector pose estimation using params "Projector.position" and "Projector.rotation" But I cant find these params in my program. Thanks.

the code some researcher does: params = traverse(scene) params.keep(["Projector.position", "Projector.rotation"])

ShuaiGer1234 avatar Sep 11 '22 08:09 ShuaiGer1234

Hi @ljijjiang1234

Currently the differentiable integrator do not properly handle discontinuities (e.g. using reparameterization) at the sensor level. For this reason we decided to keep the to_world parameter non-differentiable for now to avoid users working with incorrect gradients.

I should be able to take the time to look into this in the next couple weeks. I will keep you posted once this is fixed.

Speierers avatar Sep 12 '22 06:09 Speierers

Thank you very much about your work , And I Will Try to use the your base work to compile and redefine the emitter source code in order to make it differentiate like someone else already done.

ShuaiGer1234 avatar Sep 12 '22 08:09 ShuaiGer1234

The last few commits on master (ef9f559e0989fd01b43acce90892ba9e0dea255b .. ea513f73b65b8776afb75fdc8d40db4b1140345e) have made sensors parameters differentiable.

Note: Emitters still don't have a differentiable to_world parameter I believe.

njroussel avatar Oct 24 '22 07:10 njroussel

Hi could someone guide me how exactly I can make my to_world params differentiable in case of an orthographic sensor?

VijayVikasM avatar Sep 08 '23 11:09 VijayVikasM

Mitsuba 3 cannot differentiate a orthographic sensor correctly.

Let me close this issue. The original question has been answered.

njroussel avatar Sep 08 '23 12:09 njroussel