I try to use in babylonjs with ArrayBuffer parsed by loaders.gl

contentLoader: async (tile) => {
      if (tile.content.gltfArrayBuffer) {
        console.log("tileset.gltfArrayBuffer", tile.content.gltfArrayBuffer);  //gltfArrayBufferyon

        let arrayBuffer = tile.content.gltfArrayBuffer;

        const file = new File([arrayBuffer], "test.glb");
        console.log(file)
        SceneLoader.LoadAssetContainer(
          'file:',
          file,
          scene,
          (container) => {
            const mesh = container.meshes[0];
            console.log('mesh', container);
          }
        );
      }

    }

I got the error as below

image

Hello and welcome to the Babylon community! We need more information to be able to answer your question. :slight_smile: What are the contents of the file you are trying to load? Is it actually a GLB or another format alltogether? It’s best if you can provide us with a Playground with what you are trying to do.

1 Like

It has been solved. I successfully converted the arraybuffer parsed by loader.gl to base64 and used babylonjs to load

1 Like

Using base64 is quite slow. You might consider using the arraybuffer by wrapping it in a File or Blob object.

1 Like

does not load

image
This loads

1 Like

Are you saying LoadAssetContainer doesn’t work but Append works? If so, what error are you seeing?