You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for excellent work! I want to generate texture for a simple chair and I have OBJ mesh (I put it into ./data/chair/mesh.obj) but no mtl file.
I run:
Hi @LordLiang, I guess you can apply the dummy texture (samples/dummy.png) to your mesh in MeshLab (Filters->Texture->Set Texture), and export the mesh. The .mtl file you were asking for should be available after this.
Or in an even simpler way: copy data/backpack/mesh.mtl over to your folder, and add these lines in your .obj file:
mtllib mesh.mtl
usemtl mesh
Now you should have a material for your untextured mesh.
Hi @LordLiang, I guess you can apply the dummy texture (samples/dummy.png) to your mesh in MeshLab (Filters->Texture->Set Texture), and export the mesh. The .mtl file you were asking for should be available after this.
Or in an even simpler way: copy data/backpack/mesh.mtl over to your folder, and add these lines in your .obj file:
mtllib mesh.mtl
usemtl mesh
Now you should have a material for your untextured mesh.
Thank you for your reply! I found that if the obj file contains 'vt' info (texture coordination), your suggestion work well. But for a bare mesh which has no 'vt' info (e.g., only contains 'v' and 'f'), UV mapping need to be done first. Finally, I generated 'vt' info using blender's "smart UV project". ^-^
Thank you for excellent work! I want to generate texture for a simple chair and I have OBJ mesh (I put it into ./data/chair/mesh.obj) but no mtl file.
I run:
then I get this error:
Can you tell me how to prepare the mtl file?
The text was updated successfully, but these errors were encountered: