vpenades / SharpGLTF

glTF reader and writer for .NET Standard
MIT License
482 stars 77 forks source link

How to merge gltf and bin into one file #251

Closed DimplesHei closed 1 month ago

DimplesHei commented 1 month ago

SaveGltf, How to merge gltf and bin into one file.

vpenades commented 1 month ago

If you want to convert gltf+bin to GLB:

use .SaveGLB instead of .SaveGLTF or use the .GLB extension in the file when saving

DimplesHei commented 1 month ago

use .SaveGLTF can I save only one file .gltf? Merge bin into gltf?

vpenades commented 1 month ago

glTF has two modes:

So if you want a single file, you must use .GLB

DimplesHei commented 1 month ago

thanks.