Hey folks,
i am trying to export the babylon scene from my applicationton to GLTF. So i included the serialer js file:
https://preview.babylonjs.com/serializers/babylonjs.serializers.js
Export should happen after pressing a button
document.getElementById("savebtn").addEventListener("click", function(e){
console.log("save");
if(scene){
BABYLON.GLTF2Export.GLTFAsync(scene, "test.gltf").then((gltf) => {
gltf.downloadFiles();
});
}
});
but i only get some errors
babylonjs.serializers.js:416 Uncaught (in promise) TypeError: Cannot read property 'Warn' of undefined
at babylonjs.serializers.js:416
at new Promise (<anonymous>)
at KHR_lights_punctual../glTF/2.0/Extensions/KHR_lights_punctual.ts.KHR_lights_punctual.postExportNodeAsync (babylonjs.serializers.js:386)
at babylonjs.serializers.js:1434
at _Exporter../glTF/2.0/glTFExporter.ts._Exporter._applyExtensions (babylonjs.serializers.js:1413)
at _Exporter../glTF/2.0/glTFExporter.ts._Exporter._extensionsPostExportNodeAsync (babylonjs.serializers.js:1434)
at babylonjs.serializers.js:2477