Hey, everyone, I’m running into this problem when loading babylon and gltf files from any server that isn’t local host.
So basically you’ll load the scene, but the ground doesn’t load the first time no matter what and you’ll fall into nothing. Even disabling physics and waiting will not cause the ground.glb to load. It’s only after pressing F5 and refreshing the page that I assume the cookies will kick in and load the rest of the glb file.
Because it loads on the second refresh, I assumed it was simply that the file size is too big to load in one run, but taking away all of the textures and everything, making it smaller than the player character file size, doesn’t seem to have any effect. I then assumed it was because it was a GLB instead of a babylon file, but the babylon file behaves exactly the same way.
I was originally using the import mesh command, and then I switched to the asset manager in hopes that would fix it, but it does the same thing. For some reason it gives up on loading the file half-way through, and it’s only after refreshing that it loads the rest of the files utilizing what it had loaded previously from the cookies I believe. Pressing ctrl + F5 to refresh without cookies will cause the ground not to load as before.
The code is pretty basic. The on success is somewhat complex, but I’ve tried removing that and it acts the same.
It’s not even that it loads the ground too slow, like I said, if I disable gravity the floor never loads. It simply gives up on the file until the next refresh.
Is there some kind of force model load I can use to make sure it loads the entire file before moving on?