Skip to content

Convertation to *.vsgt or *.vsgb from 3D Editors #951

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

You must be logged in to vote

The vsgXchange library uses assimp to read 3rd party model formats, once loaded then can be written to .vsgt and .vsgb. Usage is in the form:

// set up the options for reading/writing, such as what ReaderWriter's to use
auto options = vsg::Options::create();
options->add(vsgXchange::all::create());

if (auto model = vsg::read("mymodel.gltf", options))
{
    vsg::write(model, "mymodel.vsgb", options);
}

Or you can use the vsgconv utility that comes with vsgXchange:

vsgconv mymodel.gltf mymodel.vsgb

To list all the image and 3d model formats supported use:

vsgconv --features

The vsgXchange/README.md also contains this list of supported formats.

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@robertosfield
Comment options

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