mitsuba2 icon indicating copy to clipboard operation
mitsuba2 copied to clipboard

render_torch doesn’t work when setting vertex_positions_buf to be a torch tensor

Open yaying-00 opened this issue 4 years ago • 1 comments

Hi,

I am doing optimization about the height profile of a glass panel. I would like to combine the differentiable rendering with Pytorch. I have only one sphere area emitter and a glass panel in the scene. The back of the glass panel is defined by a 256*256 grid. I keep the ‘grid.vertex_positions_buf’ parameter of that grid and set it to be a torch tensor. The program is killed when running render_torch.

I also tried keeping the reflectance.value of the emitter and setting params to be a torch tensor, and the code works fine.

I am attaching the files to reproduce this issue. Thanks in advance! vertex_position_torch.zip

yaying-00 avatar Jul 08 '20 01:07 yaying-00

Any updates on this?

kopetri avatar Jul 26 '21 14:07 kopetri