warrenm / GLTFKit2

A glTF 2.0 asset loader and exporter for Objective-C and Swift.
MIT License
150 stars 26 forks source link

Can I load a GLTF model #38

Closed CoderBt closed 9 months ago

CoderBt commented 9 months ago

I think the example is to load a GLB model. Can I load a GLTF model? When I use a GLB model, I always don't load texture images, or is there any online tool that can provide the conversion of a GLTF model to a GLB model

warrenm commented 9 months ago

Loading .gltf models is fully supported, though you do have to be aware of the App Sandbox security model when loading glTF assets that reference external buffer and texture files.

If there’s a particular model you’re having trouble loading and want more specific help, please post a link to it on this issue.

As for converting from glTF to GLB, I’m not aware of any online tools, but gltf-transform is an excellent library with a command-line interface: https://gltf-transform.dev/

lenkawell commented 9 months ago

I've been using this web-based converter and it seems to work well: https://sbtron.github.io/makeglb/

warrenm commented 9 months ago

@lenkawell Very cool, thanks for the suggestion!

warrenm commented 9 months ago

This issue will be closed automatically in seven days if no further response is received.

warrenm commented 9 months ago

Closing due to inactivity.