pmh47 / dirt

DIRT: a fast differentiable renderer for TensorFlow
MIT License
313 stars 63 forks source link

How to change camera model to weak perspective projection #66

Closed ffiioonnaa closed 4 years ago

ffiioonnaa commented 4 years ago

Hi, It seems that dirt can only support perspective projection, for me the effect of perspective is too obvious. Is there anyway to change the camera model to support weak perspective projection or orthographic projection?

ffiioonnaa commented 4 years ago

Sorry, I just found out someone already mentioned this,I'll close this issue

Frank-Dz commented 4 years ago

Sorry, I just found out someone already mentioned this,I'll close this issue

Hi~ I also want to use a weak-perspective camera. Yet currently I am struggling with other problems in DIRT. So maybe I will do that several day later and then share it. It depends.

To define your personal camera, please have a look at dirt\matrics.py line 110 image