MPI-IS / mesh

MPI-IS Mesh Processing Library
Other
643 stars 147 forks source link

Material missing when importing obj file into blender, possible solution #76

Open jufi2112 opened 1 year ago

jufi2112 commented 1 year ago

Hi,

I don't know if I'm the only one, but when I try to load an obj file with applied material / texture into blender, blender does not show the material (meshlab works fine). The reason is a missing keyword usemtl (see here) that has to be added to the obj file before the line with the first face definition (see example at the bottom of the linked page). I don't know whether this code is still updated, but I thought I'd leave this here so people with the same problem may find it.

studycat520 commented 9 months ago

Thanks!Your idea is working successfully on my machine!I just add 'usemtl materialname' (without .mtl) before the first face definition,the obj model can be textured correctly