JCPalmer Posted April 25, 2017 Share Posted April 25, 2017 I am probably not the only one which uses file:// during page development. Firefox & Edge are very friendly (screw Chorme) using file://. I recently added a call to show the debug layer, but nothing happened. I assumed I did it wrong, and kept going. Later I pushed the page to a server, and it displays the debug layer running from there. If it could work in one place, for me it is working in the wrong one. Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 25, 2017 Share Posted April 25, 2017 You can add the debug layer locally in your HTML page : https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview release/inspector/babylon.inspector.bundle.js Reference it in your HTML page and it will work correctly. MagRat 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 25, 2017 Author Share Posted April 25, 2017 Ok, I not sure then why it works from a server though? Quote Link to comment Share on other sites More sharing options...
Temechon Posted April 25, 2017 Share Posted April 25, 2017 BEcause when the file is not referenced locally (like I indicated), the engine will load it manually by calling the url 'http://...inspector.bundle.js' with a ajax call. You can't do that without a server. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 25, 2017 Author Share Posted April 25, 2017 Thanks, for the explanation. 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.