startec Posted October 1, 2015 Share Posted October 1, 2015 Hi, I am very simply trying to upload a basic scene, following this http://blogs.msdn.com/b/eternalcoding/archive/2013/06/28/babylon-js-how-to-load-a-babylon-file-produced-with-blender.aspx tutorial . However, what I really want to do is load the meshes separately as the end of the tutorial describes. For some reason I keep getting a "Uncaught TypeError: Cannot read property '_addPendingData' of undefined"error. I have uploaded the entire scene to sandbox and as a scene file in babylon, but it doesn't seem to work to import individual meshes. Does anyone know why this could be? I have attached the blender file, and here is my code: Thank you!var sphere; var ground; var newScene; window.addEventListener('DOMContentLoaded', function () { var canvas = document.getElementById('renderCanvas'); var engine = new BABYLON.Engine(canvas, true); var createScene = function () { BABYLON.SceneLoader.ImportMesh("", "", "first.babylon", scene, function (newMeshes) { console.log(newMeshes); engine.runRenderLoop(function () { newScene.render(); }); }); return scene; }; var scene = createScene(); }, false); Well, i am not permitted to upload a .babylon file, so here is a public url:http://www12.zippyshare.com/v/wS6IaJdQ/file.htmlThanks for any help. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 1, 2015 Share Posted October 1, 2015 You should create a scene first 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.