Hi everyone,
I started learning babylon.js a couple of weeks ago. As a starter project, I created a very simple scene with Blender which only contains a plane and a point light. Then I exported the scene as a .babylon file and imported it into babylonjs, but it turns out to be a black page in the final html. Could you please help me with this issue?
Below is the script:
<script>
    document.addEventListener('DOMContentLoaded', startGame, false);
    function startGame() {
      if (BABYLON.Engine.isSupported()) {
          canvas = document.getElementById("canvas");
          engine = new BABYLON.Engine(canvas, true);
            BABYLON.SceneLoader.Load("oldhouse/models/", "plane.babylon", engine, function (loadedScene) {
              scene = loadedScene;
              // Wait for textures and shaders to be ready
              scene.executeWhenReady(function () {
                  // Attach camera to canvas inputs
                  scene.activeCamera.attachControl(canvas);
                  // Once the scene is loaded, just register a render loop to render it
                  engine.runRenderLoop(function () {
                    //donut.rotation.y  +=  0.01;
                    scene.render();
                  });
              });
          }, function (progress) {
              // To do: give progress feedback to user
          });
      }
}
</script>