Load gltf from arraybuffer or json, not using blob

Hey,
Because I didn’t find something related to this, I decided to ask.
So, do we can load a gltf without using direct link to it or blob?
I’m trying to import a gltf file in reactNative, and I didn’t find a workaroud yet :frowning:
Thank you @bghgary

Is this what you mean?

https://playground.babylonjs.com/#88CB6A

1 Like

Wow, seems to be exactly what I wanted. I’ll try and let you know.
Thanks!

1 Like

If you’re up for it, maybe you can help update the documentation for how to do this where you were looking. I didn’t find any documentation for this either.

Sure. Here is it ok?
https://doc.babylonjs.com/resources/external_pg_assets#embedded-assets
Maybe we can have import embedded as blob, or as string

Maybe here is better: Load from any file type - glTF, OBJ, STL, etc. - Babylon.js Documentation


Done, hope to be good.

2 Likes