Loading JSON file got from gltf

Hello, I want to load a gltf model but I am precaching the model. as I failed to grab it as a Blob for some reason, I managed to store it as JSON object. How do I use the playcanvas loader to render the JSON object?

1 Like

Is it a gltf file or a glb?

@yaustar it is gltf file

AFAIK, the engine doesn’t natively load GLTF files. There are online convertors that can convert glTF to glb and then you can load it as an asset natively.

Or you can use a soon to be deprecated glTF library https://github.com/playcanvas/playcanvas-gltf

Either way, here’s a project that shows all the different ways to load the various combos https://playcanvas.com/project/655732/overview/gltf-example

Ohhhh I can see… okay let me find the best path then… thanks @yaustar