ShichenLiu / SoftRas

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

Maybe a bug in save_obj.py #14

Open changhongjian opened 5 years ago

changhongjian commented 5 years ago

a bug will cause error when texture_type="vertex" in function save_obj

may it should change to this

if textures is not None and texture_type == 'surface':
    f.write('mtllib %s\n\n' % os.path.basename(filename_mtl))