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

load_scene has incorrect mesh name #174

Open
klattimer opened this issue Jun 6, 2023 · 2 comments
Open

load_scene has incorrect mesh name #174

klattimer opened this issue Jun 6, 2023 · 2 comments
Milestone

Comments

@klattimer
Copy link

In an obj file with o MyObject accompanied by a mtl file with newmtl MyMaterial the mesh.name has the same value as mash.material.name.

@einarf
Copy link
Member

einarf commented Jun 6, 2023

Definitely it looks like the material name is used for the mesh name. I don't quite remember why this was done.

@einarf einarf added this to the 3.0 milestone Oct 14, 2023
@einarf einarf modified the milestones: 3.0, Future Nov 29, 2024
@einarf
Copy link
Member

einarf commented Nov 29, 2024

I think it's because vertices with the same material are by default consolidated into a single mesh. This is also reflected in the json/bin cache files when that is enabled. Will have to look at the possibilities later in 3.0. obj files are generally a nightmare to deal with due to the loose standard. The best path is likely to make a new loader using trimesh. Just archive or throw out the old one.

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

2 participants