Jump to content

relikhunter

Members
  • Posts

    2
  • Joined

  • Last visited

relikhunter's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This now works!!!! thanks very mucchhh. but it's a strange behaviour.... why put outside the head tag all the scene code? bah.
  2. hi, first of all , sorry if my english is bad as a low grade student. As a user told me out from here, i publish my source code in this forum, probably is the right place to discuss. I'm a beginner in blender and babylonJS so I created first to test Babylon an hand-coded dynamic generated scene, veeery very basic. It generate walls, floor, roof and rectangles representing paintings. Next I think it's better to use blender to complete the scene by making a decent environment and Sirs that arise a problem. When i want to export a scene from blender and get it from the following code , it report me into the Chrome web consolle "WebGL not supported" . var canvas =document.getElementById("canvas"); var engine = new BABYLON.Engine(canvas, true); var scene = new BABYLON.Scene(engine); BABYLON.SceneLoader.Load("", "testSceneFromBlender.babylon", engine, function (newScene) { newScene.executeWhenReady(function () { newScene.activeCamera.attachControl(canvas); engine.runRenderLoop(function() { newScene.render(); }); window.addEventListener("resize", function () { engine.resize(); }); // sezione per codice caricamento scena... "please wait... loading..." }); });
×
×
  • Create New...