Skip to content

[rmodels] Implement loading of mesh names from glTF/IQM/OBJ.#5634

Closed
arlez80 wants to merge 1 commit intoraysan5:masterfrom
arlez80:add_model_mesh_name
Closed

[rmodels] Implement loading of mesh names from glTF/IQM/OBJ.#5634
arlez80 wants to merge 1 commit intoraysan5:masterfrom
arlez80:add_model_mesh_name

Conversation

@arlez80
Copy link
Contributor

@arlez80 arlez80 commented Mar 10, 2026

This PR aims to implement loading of mesh names from glTF/IQM/OBJ and add a name member to the Model structure.

In glTF, node names are used as mesh names because Blender object names are written to the nodes.

For IQM, the mesh name is copied from the already loaded mesh name.

For OBJ, the mesh name is copied from objShapes[*].name.

@arlez80
Copy link
Contributor Author

arlez80 commented Mar 10, 2026

These image aren't part of this PR currently, would it be acceptable to add a sample for displaying mesh names to models_loading.c?
The reason I asked was that I was wondering if it would be better to put the sample in a separate file.

image image

@raysan5
Copy link
Owner

raysan5 commented Mar 10, 2026

@arlez80 I'm afraid it has already been proposed in the past and there is no intention for now to add those 32bytes of additional information to Mesh structure. Most users do not really need that information.

@raysan5 raysan5 closed this Mar 10, 2026
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

Successfully merging this pull request may close these issues.

2 participants