-
Hello, I am quite new to Mitsuba, so apologies upfront if I'm getting things wrong. So, I was naively trying to optimize the 'eta' value of a smooth dielectric material, which after some steps* I realized that its not differentiable . Interestingly, I am able to optimize mirror materials eta value (although not with detached samplers, like the 'prb' integrator) - which is great. So, my question is:
Would that be actually a possible way to imitate soft dielectric materials (using lower alpha values)? Apologies if I'm causing headaches. I am writing my bachelor thesis regarding optimizing translucent materials for lights. Mitsuba is helping me immensly (thank you). Best, *Unfortunately, I was unware of the 'Flag' that each scene parameter got, so I tried to find workarounds casting mi.Float to float and vice versa. Nevertheless, I didn't managed to work it out since either float type was not differentiable (i.e. exception) or casting original float value into mi.Float and updating scene parameters caused exceptions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @sapo17, As explained in this paper Fig 5 (and others), differentiating parameters of a perfectly specular BSDF (such as |
Beta Was this translation helpful? Give feedback.
Hi @sapo17,
As explained in this paper Fig 5 (and others), differentiating parameters of a perfectly specular BSDF (such as
eta
) will require handling discontinuities. For that, you could try to use theprb_reparam
integrator instead, although I am not sure we have ever tested this for optimizing theeta
parameter.