xiumingzhang / GenRe-ShapeHD

Code and Data Release for GenRe (NeurIPS 2018) and ShapeHD (ECCV 2018)
http://genre.csail.mit.edu/
294 stars 62 forks source link

How to obtain surface normal images from the raw depth data? #59

Closed caixialiu-bjut closed 4 years ago

caixialiu-bjut commented 4 years ago

Hi, thank you for sharing your code. Could you help sovle the problem: how to obtain surface normal images from the raw depth data? Is surface normal images obtained during the rendering?
I want to obtain depth images and corresponding normals by blender. Could you tell some details? Thanks! Look forward your reply.

xiumingzhang commented 4 years ago

We rendered normals directly rather than compute them from depth. We used Mitsuba, but if you want to do this in Blender, take a look at: https://github.com/xiumingzhang/xiuminglib/blob/master/xiuminglib/blender/render.py#L444

On Sat, Mar 21, 2020, 11:11 AM caixialiu-bjut notifications@github.com wrote:

Hi, thank you for sharing your code. Could you help sovle the problem: how to obtain surface normal images from the raw depth data? Is surface normal images obtained during the rendering? I want to obtain depth images and corresponding normals by blender. Could you tell some details? Thanks! Look forward your reply.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xiumingzhang/GenRe-ShapeHD/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXICPVMA6REMQZAURGJPU3RITKLJANCNFSM4LQ6HRIA .