martinResearch / DEODR

A differentiable 3D renderer with Pytorch, Tensorflow and Matlab interfaces
BSD 2-Clause "Simplified" License
369 stars 23 forks source link

how to use it render two hands? #9

Open liwenssss opened 4 years ago

liwenssss commented 4 years ago

Hi, thx for your nice work.Can you give any advice about how to render two hands?

martinResearch commented 4 years ago

Hi, DEODR does not support multiple meshes at the moment. This is in the "to do" list. In the mean time you will have to pose each mesh and combine them into a single mesh before you add it to the scene. To do that you will have to concatenate the vertices and the faces array (you will have to add a constant to the second mesh face indices corresponding to the number of vertices in the first mesh). The trickier part is to back-propagate gradients to the original meshes and poses If you want to use the the gradients to fit the meshes to an image.