vsg-dev / vsgXchange

Utility library for converting data+materials to/from VulkanSceneGraph
MIT License
68 stars 40 forks source link

can add one demo show how to use vsgXchange to load gltf ? #149

Closed WdsPjm closed 1 year ago

robertosfield commented 1 year ago

Many of the vsgExamples already can load GLTF files that to including vsgXchange in their setup, the pattern is:

auto options = vsg::Options::create();
options->add(vsgXchange::all::create());
auto model = vsg::read_cast<vsg::Node>("myfile.gltf", options);

There is also a section of vsgXchange in the vsgTutorial that I have begun writing: https://vsg-dev.github.io/vsgTutorial/foundations/vsgXchange

robertosfield commented 1 year ago

I just checked the vsgXchange/README.md and it has a section that shows how to load a GLTF file:

https://github.com/vsg-dev/vsgXchange#how-to-use-vsgxchange-in-your-own-applications

So I can't help but feel that one just needs to read the documentation supplied.