ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.24k stars 156 forks source link

how to deformation the mesh by using our target images #80

Open chongxian opened 3 years ago

chongxian commented 3 years ago

Thanks for your sharing, This is a good project, but I create some target images and use the deformation.py, It's result is a error mesh. And I use the plane.obj to create some target images,It also return a error result. I guess maybe my input image format is error. but I don't know how to create input images for my target object. And this image is your input format. image the below image is my input format. image

ShichenLiu commented 3 years ago

Hi,

So the principle of making this work is to set your own rendering parameters exactly the same as that of the Softras. Specifically, please make sure that the camera intrinsics/viewing angles are not only the same, but also in the same order. The scale however doesn't really matter for the deformation.

chongxian commented 3 years ago

Thanks for your reply.