chicagobob123 Posted June 2, 2016 Share Posted June 2, 2016 Tried to load a babylon file. Nothing just darkness. No errors no anything. <script> window.addEventListener('DOMContentLoaded',function() { var canvas = document.getElementById('renderCanvas'); var engine=new BABYLON.Engine(canvas,true); var scene; var createScene=function() { var url="models/BStraddleCarrier/"; BABYLON.SceneLoader.Load(url,"Straddle_Carrier_001.babylon",engine, function (scene) { // Wait for textures and shaders to be ready scene.executeWhenReady(function() { var camera = new BABYLON.ArcRotateCamera("camera1", 0, 0, 0, new BABYLON.Vector3(0, 0, -0), scene); camera.setPosition(new BABYLON.Vector3(0, 0, -50)); camera.attachControl(canvas, true); var light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(0, 1, 0), scene); light.groundColor = new BABYLON.Color3(0.5, 0.5, 0.5); light.intensity = 0.7; // Once the scene is loaded, just register a render loop to render it engine.runRenderLoop(function() { scene.render(); }); }); }, function (progress) { // To do: give progress feedback to user }); return scene; }; // create scene // call the createScene function var scene=createScene(); // the canvas/window resize event handler window.addEventListener('resize', function(){ engine.resize(); }); }, false); </script> If you need the model I can upload it. Did I do something wrong? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 2, 2016 Share Posted June 2, 2016 hey is there error in the console? what about network monitor? maybe your server is not configured to handle babylon MIME type Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted June 3, 2016 Author Share Posted June 3, 2016 Nothing no errors at all. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 3, 2016 Share Posted June 3, 2016 network monitor displays that it has returned the .babylon file to the client? Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted June 3, 2016 Author Share Posted June 3, 2016 Network monitor displays that it has returned the .babylon file to the client? Here is what I have. Something called .manifest gets loaded? Like this If I delete the manifest this is manifest file I get this which makes more sense. NEITHER WORK Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 3, 2016 Share Posted June 3, 2016 please add scene.debugLayer.show() in your code you will be able to turn on/off various debug options (like displaying bounding boxes or clickable labels) 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.