Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBJ file with Material link not work if Filename contain spaces. #66

Closed
Mannshoch opened this issue Jan 30, 2017 · 2 comments
Closed

OBJ file with Material link not work if Filename contain spaces. #66

Mannshoch opened this issue Jan 30, 2017 · 2 comments

Comments

@Mannshoch
Copy link

Mannshoch commented Jan 30, 2017

If an OBJ file is created with a Material.mtl, the material.mtl do not work if the material.mtl and/or the filenames of the textures contain spaces.

If you rename the file, open the .obj and.mtl with texteditor and remove the spaces. it works in Meshlab.

Not work:
test file.obj
test file.mtl
test texture.jpg

*.obj File

mtllib test file.mtl 

to

mtllib testfile.mtl 

and
*.mtl File

map_Kd test texture.jpg

to

map_Kd testtexture.jpg

Works correct
testfile.obj
testfile.mtl
testtexture.jpg

@mcallieri
Copy link
Member

confirmed.
I fixed the importer in the VCG Library, now it seems working.
I am not completely sure the format DOES allow for space in names and IDs (e.g. blender does add an underscore, when exporting), but this may solve compatibility with less strict exporters.
It will be available in the next MeshLab release (around 1 month).

@frederik-elwert
Copy link

This still seems to be a problem in Meshlab 2022.02, so maybe the fix hasn’t landed in a release yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants