Skip to content

I would like to retrieve the names of all the meshes in the scene. How can I achieve this? #865

Answered by robertosfield
WdsPjm asked this question in Q&A
Discussion options

You must be logged in to vote

I move moved this question from vsgExamples Issues to the main VulkaSceneGraph Discussion as Q&A thread as this is best place for such community discussions,

The way that the VSG stores user defined values like names is via the meta-data object system supported in all classes subclassed from vsg::Object, the vsgTutorial has section on meta-data:

https://vsg-dev.github.io/vsgTutorial/foundations/MetaData

The loader will need to set the names, and the vsgXchange::assimp loader does this, so if you have loaded data via it then you should be able to get the names from it. To help figure things out it can be useful to convert the file to .vsgt ascii format and then have a search through with a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WdsPjm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #863 on July 04, 2023 07:15.