cx20 Posted November 5, 2016 Share Posted November 5, 2016 This is the version v2.4.0 and later of the problem. "halloween.gltf" was successful in loading. However, "halloween_gltf.txt" was failed in loading. BABYLON.SceneLoader.Load("./", "halloween_gltf.txt", engine, function (newScene) { Version v2.3.0 previously did not have a problem. I will sometimes post jsdo.it the JavaScript code. jsdo.it is a coding community for JavaScript users. File name is changed to when registering the assets in jsdo.it. http://jsdo.it/cx20/Ygfv BABYLON.SceneLoader.Load("/assets/0/2/I/8/", "02I89", engine, function (newScene) { Because I want to post a sample of Babylon.js to jsdo.it in future, I hope that this problem is resolved. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 9, 2016 Share Posted November 9, 2016 Hello the thing is that the loader uses extension to determine which plugin to use You can still change the gltf loader and set its extension to ".txt" cx20 1 Quote Link to comment Share on other sites More sharing options...
cx20 Posted November 9, 2016 Author Share Posted November 9, 2016 Deltakosh san Thanks for the advice. I understood that Babylon.js sees extensions to determine plugins. I tried the following changes, and I was able to load the gltf file with jsdo.it. http://jsdo.it/cx20/20ju The jsdo.it recognizes the extension of some image files. (but, extension gltf is not supported.) I changed the extension ".gltf" to ".png" and registered in jsdo.it, and I fixed gltf Loader of Babylon.js as follows. function GLTFFileLoader() { /** * Public members */ this.extensions = { ".png": { isBinary: false }, // Add (dummy extension) ".gltf": { isBinary: false }, ".glb": { isBinary: true } }; } I think that it is a problem of jsdo.it that the extension gltf is not recognized. julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 10, 2016 Share Posted November 10, 2016 I agree, this is on jsdo.it side 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.