Hi, I need help loading glb models from the local file system through file upload…
I have searched for a lot of method and most of them did not work for me. e.g
let file = document.getElementById('large-importer').files[0];
var urlx = URL.createObjectURL(new Blob([file]));
BABYLON.SceneLoader.ImportMesh("", urlx, '', scene, function(){alert(200)}, ".glb");
, I wanted to use BABYLON FilesInput, but I dont know how…
thanks for your reply
If the provided model doesn’t have an extension, Babylon is going to try loading it as if it was a .babylon file. If you want to provide the model’s correct type, you can use the methods in SceneLoader, which accept an “pluginExtension” parameter: SceneLoader | Babylon.js Documentation (babylonjs.com)