It is possible to stream .glb models using "assetManager.addMeshTask()"

Hi I have a api which serves models, if I don’t use streaming the model loads just fine. If I use streaming it does not load.

Please see my code below.

this.assetManager
        .addMeshTask("building", "", "http://localhost:1337/api/model/", "Demo.glb");

Is it possible to stream .glb models using addMeshTask? I couldn’t find anything in the docs about it.

Any help would be much appreciated.

Hi and welcome to the forum!

Yes it is working, I think you will have to provide a PG (https://playground.babylonjs.com/) for us to be able to see what’s going on.

1 Like