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.

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

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

does not load

image
This loads

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

hello,do you konw how to Modify the position or scale of these 3dtiles? I use the same loading method as you, but don’t know how to modify it.Hope to get your reply.
thanks