Skip to content

How not to embed textures in vsg files #982

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

You must be logged in to vote

To handle definition of objects that are supplied by external files I implemented a vsg::External class:

https://github.com/vsg-dev/VulkanSceneGraph/blob/master/include/vsg/core/External.h

You set up the objects you want to be loaded from file, then assign this vsg::External object to the root node of the subgraph you want to read/write. The VSG's sharing objects within the native loaders can then handle wire up the externally loaded objects with the objects that are used within the scene graph itself.

Unfortunately I don't have an example showing how it works in practice. When I originally wrote it 2019 I will have created a test of it, but I can't see anything in vsgExamples now.

The id…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@lufriem
Comment options

@lufriem
Comment options

@robertosfield
Comment options

@lufriem
Comment options

@robertosfield
Comment options

Answer selected by robertosfield
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