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:
127.0.0.1 - - [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”
127.0.0.1 - - [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”
127.0.0.1 - - [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”
script:
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
container.addAllToScene();
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…