yzthr Posted October 30, 2018 Share Posted October 30, 2018 Hello, recently i met a problem and it really troubles me. I use BABYLON.SceneLoader.Append() to load the .glb file(export from Max2babylon plugin) and it failed. The browser said: "Unable to load from ../BIM/incremental/helin.glb: importScene of undefined from undefined version: undefined, exporter version: undefinedimportScene has failed JSON parse". then i load the .gltf file, The browser said: "Unable to load from ../BIM/incremental/helin.gltf: loadAssts of unknown". It's really wired, huh? After that i use the same project load .babylon file(also export from Max2babylon plugin) correctly to make sure it's not the problem with project. And i test to load the .gltf file in a plain html file and it works, so i think it's no the problem with the file and the peoject. So i think it's a bug.(no offense) Quote Link to comment Share on other sites More sharing options...
Guest Posted October 30, 2018 Share Posted October 30, 2018 Hello, are you referencing the gltf loader? (https://preview.babylonjs.com/loaders/babylonjs.loaders.js) Quote Link to comment Share on other sites More sharing options...
yzthr Posted October 31, 2018 Author Share Posted October 31, 2018 10 hours ago, Deltakosh said: Hello, are you referencing the gltf loader? (https://preview.babylonjs.com/loaders/babylonjs.loaders.js) Yes, i search the whole file, but i can't find anything about "importScene of undefined" or "loadAssts of unknown". Quote Link to comment Share on other sites More sharing options...
Guest Posted October 31, 2018 Share Posted October 31, 2018 I meant: do you import the script in your page? can you share your html page and code? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted October 31, 2018 Share Posted October 31, 2018 This sounds like an error message trying to be generated off of the producer tag in a .babylon file, and no producer tag found. gltf probably does not has a producer tag. https://github.com/BabylonJS/Babylon.js/blob/master/src/Loading/Plugins/babylon.babylonFileLoader.ts#L26 Quote Link to comment Share on other sites More sharing options...
yzthr Posted November 1, 2018 Author Share Posted November 1, 2018 11 hours ago, Deltakosh said: I meant: do you import the script in your page? can you share your html page and code? Thank you for your reply. sorry for my misunderstanding. i used the source: "https://preview.babylonjs.com/loaders/babylonjs.loaders.js" in my project for test for sure. And also sorry for not sharing my code because the project is so big and i have tried my best to make sure that there is no error in other part of my project(as mentioned above: i can load .babylon file correctly). Please forgive me for my poor english. Quote Link to comment Share on other sites More sharing options...
yzthr Posted November 1, 2018 Author Share Posted November 1, 2018 14 hours ago, JCPalmer said: This sounds like an error message trying to be generated off of the producer tag in a .babylon file, and no producer tag found. gltf probably does not has a producer tag. https://github.com/BabylonJS/Babylon.js/blob/master/src/Loading/Plugins/babylon.babylonFileLoader.ts#L26 thank you for your answer! i just use Max2babylon plugin to export the .gltf file as usual. And i test to load the .gltf file in a plain html file and it works. I don't think anything about producer tag is wrong. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2018 Share Posted November 1, 2018 Is there any error on the console that can help us? Quote Link to comment Share on other sites More sharing options...
yzthr Posted November 7, 2018 Author Share Posted November 7, 2018 Oh, I find it was my mistake that my project have 2 html file and i just reference babylonjs.laoders.js once. So the problem is solved. Sorry for wasting for time and Thanks for all above. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.