[ENGINE] Issues with .glb object loading

Hey all, very new PlayCanvas user here (I have basically no idea what I’m doing lol),

I am using PlayCanvas Engine for a school project, and I am attempting to load a .glb file as ground terrain. I have set up a script that allows me to load models easily, which I call like const model = await loadModel('/stanford_dragon_pbr.glb', app, { rigidbodyType: 'static' });. In this particular instance, this has worked. When I first loaded the file I intended to use as my terrain, /world/battlefields/legnica.glb, it loaded fine. I then wanted to switch it out for something more mountainous, /world/battlefields/huashan.glb, to demonstrate the ability to actually see mountains/hills (Legnica is in a very flat part of Poland, Huashan is a mountain in China). When I switched out all references in the code from /world/battlefields/legnica.glb to /world/battlefields/huashan.glb, it still loaded legnica.glb. I then deleted legnica.glb, and it loaded nothing. This behavior is the same even across server restarts.

This can also be observed with the aforementioned const model, which was a test model to check if model loading actually worked. When I comment out the line that loads the model, and all future references to it, it (somehow) still loads the model, even after a full npm server restart.

If you feel I’m missing any information, please let me know. Any help is greatly appreciated. Thanks!

Visual mesh is usually pretty detailed and has lots of vertices. Physics don’t need them all, so it is common to use a simplified mesh for a collision model. Also, keep in mind that Ammo Wasm has only 64Mb of memory, so a high resolution model will eat it for breakfast.