Kevin192291

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello, I have been trying to get a .babylon file to load, but just can't seem to get it to show up. Here is an example of my code: var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var createScene = function () { var scene = new BABYLON.Scene(engine); var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 20, 100), scene); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0.8, 100, BABYLON.Vector3.Zero(), scene); camera.attachControl(canvas, false); BABYLON.SceneLoader.ImportMesh("", "", "/webGL/textures/Link/Car.babylon", scene, function (newMeshes) { camera.target = newMeshes[0]; }); // Move the light with the camera scene.registerBeforeRender(function () { light.position = camera.position; }); return scene; } var scene = createScene(); engine.runRenderLoop(function () { scene.render(); }); // Resize window.addEventListener("resize", function () { engine.resize(); });The problem seems to be that the manifest loads as /Car.babylon.manifest?1424064684181200 but I don't see Car.babylon loading after. In the examples I see 2 objects loading in my console; the manifest, and the .babylon. If you guys could give me some direction with this, I would really appreciate it. Thanks -Kevin