Load Asset Container not loading model?

Hi i’ve been using load asset container just fine on my frontend and backend but for some reason it won’t load the models now. I have no error or anything kind of feedback or anything…

I already checked the path/file they are reachable in the browser, opens the json fine for me. These models load fine on the front end and page used to work.

path/file console log:
PATH: http://dev.vhk.local/storage/models\9\gltf
angle-descriptions.js:3 FILE: a109hirundo-medevac-ut_BE-od.gltf

apache access log: - - [15/Oct/2020:10:58:36 +0200] “GET /storage/models/9/gltf/a109hirundo-medevac-ut_BE-od.gltf HTTP/1.1” 200 130816 “http://dev.vhk.local/admin/vehicle/9/angle” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36” - - [15/Oct/2020:10:58:36 +0200] “GET /favicon.ico HTTP/1.1” 200 - “http://dev.vhk.local/admin/vehicle/9/angle” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36” - - [15/Oct/2020:10:58:55 +0200] “GET /admin/vehicle/9/angle HTTP/1.1” 302 374 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0”


alert('before loading'); //Is shown
BABYLON.SceneLoader.LoadAssetContainerAsync(BABYLON_path, BABYLON_file, scene).then(function (container) {
    alert('loading'); //Is not shown!?

    let meshes = container.meshes;
    let materials = container.materials;

    let takingScreenshots = false;

    // Adds all elements to the scene
    loadingBackground.style.visibility = "hidden";

I can’t really get the babylon scripts pushed to the right stack either (but they still appear to work) for some reason (Laravel blade) then it just gives me an actual error Babylon is not defined… which is really weird…

Without a repro it will be hard to help…

Eh little hard to make a repro if I don’t know even know what is going on, and probably not reproduceable in the sandbox.

What could cause the BABYLON.SceneLoader.LoadAssetContainer not to be called properly?

Maybe the parameters you pass to the function?

Have you tried the non async version of LoadAssetContainer?

Alright as I said I won’t really be able to reproduce something like this for you properly.
However I did figure out the problem, as I thought it has something to do with the scripts being loaded but I am not sure if any of these would conflict in some way?

Previously enabled:

// Backstrap includes jQuery, Bootstrap, CoreUI, PNotify, Popper

Enabled now:


So the only one’s not loaded like this are PNotify and Popper? Not sure if they would cause issues.


It appears to be
that is the issue.

1 Like