Khaled Sabri Posted June 29, 2016 Share Posted June 29, 2016 Hello, i build app using meteor and i need to use the babylon viewer, in my index.js i added this script: if (BABYLON.Engine.isSupported()) { var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); BABYLON.SceneLoader.Load("", "scene.babylon", engine, function (newScene) { newScene.executeWhenReady(function () { // Attach camera to canvas inputs newScene.activeCamera.attachControl(canvas); // Once the scene is loaded, just register a render loop to render it engine.runRenderLoop(function() { newScene.render(); }); }); }, function (progress) { // To do: give progress feedback to user },function(err) { console.log(err); }); } in index.html i added canvas element and the scene.babylon file exist in the same directory path,but unfortunately i got this error: (Uncaught TypeError: Cannot read property 'producer' of undefined). anyone can help me with this issue and thanks for advance. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 29, 2016 Share Posted June 29, 2016 Hey! are you sure you are using latest version of babylon.js ? (2.4) Quote Link to comment Share on other sites More sharing options...
trickpatty Posted July 16, 2016 Share Posted July 16, 2016 I'm getting the same exact error, using the same snippet for a different scene that I exported from Blender and I am using the same version of bablying Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2016 Share Posted July 18, 2016 I'm not an experienced meteor developer unfortunately 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.