MattB Posted May 17, 2018 Share Posted May 17, 2018 I'm pretty new to all this, so I'm sure its something stupid. I went through the Babylon 101 tutorial and used the template html file, I then added BABYLON.SceneLoader.Append("assets/", "Alien.glb", scene, function (scene) { and downloaded the Alien.glb file from Babylon's site. But it will not show up and the debug layer gives this error: BABYLON.JS LOGS [13:23:56]: glTF Loader: t._loader._onReadyObservable.addOnce is not a function [13:23:56]: Unable to load from assets/Alien.glb: t._loader._onReadyObservable.addOnce is not a function If I change it to a sample .obj file it works fine. I also can't get it to work with the Boombox.gltf from the Babylon samples (or any other GLTF files I've created from blender). I'm running this on a Wamp server (which I also am new at). Attached is my index.html. Thanks for any help! index.html Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 Make sure to get both loader and Babylon.js from the preview folder (or preview.babylonjs.com) There is a discrepancy here between the loader and bjs version Quote Link to comment Share on other sites More sharing options...
MattB Posted May 17, 2018 Author Share Posted May 17, 2018 Thanks!!! I wonder why they have that in their template: https://doc.babylonjs.com/babylon101/first Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2018 Share Posted May 17, 2018 I'll fix that! 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.