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

AssimpImporter: trim external texture paths #58

Closed
wants to merge 1 commit into from

Conversation

xqms
Copy link
Contributor

@xqms xqms commented Mar 26, 2019

We encountered some further meshes from hell (in .obj format), which contain spaces after the texture path. I think trimming whitespace in the importer is a good solution to make the process more robust.

@xqms
Copy link
Contributor Author

xqms commented Mar 26, 2019

From what I can tell the CI failures are not my fault ;-)

By the way, a mesh with the mentioned problem can be found here:
http://ycb-benchmarks.s3-website-us-east-1.amazonaws.com/data/google/002_master_chef_can_google_16k.tgz

It has the following .mtl:

newmtl material_0
# shader_type beckmann
map_Kd texture_map.png 

(observe the space after .png)

@mosra
Copy link
Owner

mosra commented Mar 26, 2019

some further meshes from hell

😂 Great, and thanks for the test file as well 👍 I'll distill that into a minimal thing and add it to the existing tests for assimp featurebugs.

Oh well, yes, I'm having some CI issues right now, caused by cleanups in the main projects and I'm in the middle of writing a press release and didn't have time to update all the repos yet 😅 I'll merge this once I have the CI failures resolved. I hope this doesn't need to be merged today? :)


By the way, (I'm not sure if I asked already, in case I did and forgot then I'm sorry), what's the project you're working on? Is it public or meant to be getting published in the future? I'm really interested in what it is.

@xqms
Copy link
Contributor Author

xqms commented Mar 26, 2019

I hope this doesn't need to be merged today?

No rush, we can easily work with our branch here.

By the way, (I'm not sure if I asked already, in case I did and forgot then I'm sorry), what's the project you're working on? Is it public or meant to be getting published in the future? I'm really interested in what it is.

I'm working on a scene synthesis pipeline for visual perception with deep learning - hopefully there will be a scientific publication and an open-source release quite soon ;-)

@mosra
Copy link
Owner

mosra commented Mar 26, 2019

Wow! Keep me (and the magnum community) updated please, looking forward :)

@mosra mosra added this to the 2019.0b milestone Mar 28, 2019
@mosra mosra added this to TODO in Asset management via automation Mar 28, 2019
@mosra
Copy link
Owner

mosra commented Mar 28, 2019

Merged in 1902eb0. When adding a minimal test case for this I discovered about five other parsing OBJ inconsistencies / bugs in Assimp, but I'll pretend I didn't see any 😆

Thanks a lot for the contribution!

@mosra mosra closed this Mar 28, 2019
Asset management automation moved this from TODO to Done Mar 28, 2019
@xqms xqms deleted the trim_texture_path branch March 28, 2019 21:57
@xqms
Copy link
Contributor Author

xqms commented Mar 28, 2019

I discovered about five other parsing OBJ inconsistencies / bugs in Assimp, but I'll pretend I didn't see any

😂 👍

@mosra mosra mentioned this pull request Dec 12, 2022
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants