XgTu / 2DASL

The code (pytorch for testing & matlab for 3D plot and evaluation) for our project: Joint 3D Face Reconstruction and Dense Face Alignment from A Single Image with 2D-Assisted Self-Supervised Learning (2DASL)
MIT License
464 stars 116 forks source link

Unable to generate mtl file with writeobjs.m #20

Open ZhiRuoo opened 4 years ago

ZhiRuoo commented 4 years ago

Hi @XgTu , Thanks for sharing the code.

I am able to successfully run the project however the obtained obj's are just white meshes. The material file for each obj is not getting generated.

  1. In the writeobj.m function i am guessing options argument has to be called properly.

  2. Should we write texture .jpg to the mtl file (i.e any connection between options.nm_file is texture jpg?) but in this project we are not writing generating any texture file.

    Can you please tell me if i am wrong and how to create mtl files?

Thank you.

Light-SH commented 4 years ago

Hello, i have the same problem with you that the mtl file not generated, have you sloved it? Besides, when i run the write_objs.m, the obj file i got seems weird like this, do you have the same problem? 微信图片_20191104113113

XgTu commented 4 years ago

@Moon-W please set x, y, z coordinates to the same scale.