kru64

Members
  • Content Count

    16
  • Joined

  • Last visited

  1. Jascar, excellent example!
  2. Hi dad72. Can you reupload your code for babylon and node.js In link "The requested document was not found on this server." Thank you
  3. I found solution. I use Autodesk FBX 2013.3 Converter http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=22694909 I convert fbx to fbx 2013 and probably this conversion fix all mistakes, and then export from fbx to babylon is occur without problem. Nevertheless thank you for helping
  4. Here code. Press 1 or 2 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>BABYLON - BASICS</title> <!--Loading babylon engine --> <script src="../babylon.js"></script> <script src="../hand.js"></script> <!-- CSS --> <!-- ------ --> <style> html, body, div, canvas { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; } </style></head><!-- BODY --><!-- ------ --><body> <div id="rootDiv"> <!-- Main Canvas --> <canvas id="renderCanvas"></canvas> </div> </body> <!-- BABYLON SCRIPT --> <!-- -------------- --> <script type="text/javascript"> // Get the Canvas element from our HTML below var canvas = document.getElementById("renderCanvas"); // Load BABYLON 3D engine and set the root directory var engine = new BABYLON.Engine(canvas, true); //Create a new scene with a camera (mandatory), a light (better) and a sphere (to see the origin) var scene = new BABYLON.Scene(engine); // Creating a camera looking to the zero point (0,0,0) var camera = new BABYLON.ArcRotateCamera("Camera", 1, 0.8, 10, new BABYLON.Vector3(0, 0, 0), scene); // Creating a omnidirectional light var light0 = new BABYLON.PointLight("Omni", new BABYLON.Vector3(0, 0, 10), scene); // Creating a sphere of size 1, at 0,0,0 var origin = BABYLON.Mesh.CreateSphere("origin", 10, 1.0, scene);// here code for move shere//-------------------------------------------------- window.addEventListener("keydown", function (evt) { switch (evt.keyCode) { case 49: origin.position.x = origin.position.x+1; break; case 50: origin.position.x = origin.position.x-1; break; default: break; } });//-------------------------------------------------- // Attach the camera to the scene scene.activeCamera.attachControl(canvas); // Once the scene is loaded, just register a render loop to render it engine.runRenderLoop(function () { scene.render(); }); </script></html>
  5. I read and save pdf normally. Here direct link for this very interesting book: http://www.webisn.byethost5.com/babylonJS.pdf
  6. Hi. Please probe http://www.wirecase.com/files/public/2909_phpkauszc.zip I god the same message: Invalid testure. Face 0 is sized 1078x402, bit textures using DXF compressed formats must be multiples of four.
  7. Yes, of course stretching. Nobody can't see the small difference.
  8. Deltakosh, Export from fbx to babylon it's lottery. Sometime all works well. But often I can see the message such I understand that I can edit original fbx, but it need time to find this Face0, to change texture etc. May be the more easy way to fix BabylonExporter.exe to solve this problem like You solve problem BabylonExporter Right->Left Coordinate System.
  9. O, my god! I forgot about this stupid Java feature. Thank You so much!
  10. I tested in my localhost web made with node.js. Javacsript console says about var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(0, 100, 100), newscene) namely:"Uncaught ReferenceError:newscene is not defined".
  11. I exported scene from Blender according to http://blogs.msdn.com/b/eternalcoding/archive/2013/06/28/babylon-js-how-to-load-a-babylon-file-produced-with-blender.aspx. And now I want to add in this scene something else, for example, light. I tried to write something like window.onload = function(){ 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 () { var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(0, 100, 100), newscene); // 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 }); } }; but nothing happened. What is the right way?
  12. Deltakosh , please, retrieve BabylonExporter.exe to https://github.com/BabylonJS/Babylon.js/tree/master/Exporters. I don't like to sent my private materials to http://www.babylonjs.com/converter.html. But I can't to produce exe myself, I'm just novice.
  13. You are right. In August was only diameter of cylinder, and now in October diameterTop, diameterBottom.