• Content Count

  • Joined

  • Last visited

About danielvh96

  • Rank

Contact Methods

  • Skype

Profile Information

  • Gender

Recent Profile Visitors

444 profile views
  1. danielvh96

    Can't get .babylon files to load!

    Thank you guys for all the help!! Worked for me Thanks a lot man I really appreciate it!
  2. danielvh96

    Can't get .babylon files to load!

    Just read something about adding some script to your web.config file. Here is the code I currently use but what do I have to add? <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> </system.web></configuration>
  3. danielvh96

    Can't get .babylon files to load!

    Uncaught Error: 404 In the babylon.js file. Here is an screen capture http://prntscr.com/3n1dvu
  4. danielvh96

    Can't get .babylon files to load!

    I do use a local host on visual studio. This is the code that I use: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Using babylon.js - How to load a scene</title> <script src="hand.js"></script> <script src="babylon.js"></script> <style> html, body { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; } #renderCanvas { width: 100%; height: 100%; } </style></head><body> <canvas id="renderCanvas"></canvas> <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 }); } </script></body></html>
  5. I have a problem, the file location is correct. I use everything in the same folder now and the babylon file is namen scene.babylon, all I see is a white screen and nothing happens :/ It isn't an empty file because the sandbox displays everything correctly.. Please Help!