2DASL icon indicating copy to clipboard operation
2DASL copied to clipboard

Unable to generate mtl file with writeobjs.m

Open ZhiRuoo opened this issue 5 years ago • 2 comments

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.

ZhiRuoo avatar Nov 01 '19 06:11 ZhiRuoo

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

Light-SH avatar Nov 04 '19 03:11 Light-SH

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

XgTu avatar Nov 11 '19 06:11 XgTu