• Content Count

  • Joined

  • Last visited

  1. hey guys,i have created a combined structure of 3 meshes in blender.Now when i am importing it to babylon js the meshes are are getting seperated from each other.Kindly tell me what to do.It should be coming like this But instead it is coming like this
  2. Hi @V!nc3r I have solved the issue by running it in local server.Thanks for your time
  3. I am attaching the full code that I am using.Please tell me where I am wrong. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Page Title</title> <script src=""></script> </head> <body> <canvas id="canvas"></canvas> <script> window.addEventListener('DOMContentLoaded', function(){ var canvas = document.getElementById('canvas'); var engine = new BABYLON.Engine(canvas, true); engine.enableOfflineSupport = false; // Dont require a manifest file var createScene = function(){ var scene = new BABYLON.Scene(engine); scene.clearColor = new BABYLON.Color3.White(); var camera = new BABYLON.ArcRotateCamera("arcCam", BABYLON.Tools.ToRadians(0), BABYLON.Tools.ToRadians(0), 10.0,BABYLON.Vector3.Zero(),scene); camera.attachControl(canvas,true); var light = new BABYLON.PointLight("PointLight",new BABYLON.Vector3( 0,0,0),scene); light.parent = camera; light.intensity = 1.5; BABYLON.SceneLoader.ImportMesh("","","miningtesting123.babylon", scene,function(newMeshes) { newMeshes.forEach(function(mesh){ mesh.rotation = new BABYLON.Vector3(BABYLON.Tools.ToRadians( 45),0,0); } ); }); return scene; } var scene = createScene(); engine.runRenderLoop(function(){ scene.render(); }); }); </script> </body> </html>
  4. Hi guys,I have created a simple cube in blender and am trying to import it in babylon js.The scene is not coming and the error i am getting is this BJS - [14:10:21]: Unable to import meshes from miningtesting123.babylon: Failed to load scene. The code I am using is BABYLON.SceneLoader.ImportMesh("","","miningtesting123.babylon", scene,function(newMeshes) I have ran my .babylon file in sandbox and the model is coming there.
  5. reggie

    import from unity 3d

    Hi guys,I have created a model in Unity and want to import it in babylon js scene.Kindly help me with the steps to import.
  6. Hey guys,how to move a square in a rectangular position using animation.The box should travel across a certain path and will finish its journey at its origin.
  7. reggie

    create a box with one side open

    thanks @JohnK ..I was wondering how to add 2 subdivisions inside this squared structure,so that it gets equally divided into 3 parts.
  8. reggie

    create a box with one side open

    I was trying to generate it dynamically.Is it possible?
  9. Hey guys, Can anyone please help me to create one hollow box with one side open using babylon js.The box should have subdivisions inside.Thanking you guys in advance.
  10. thank you...I am posting the playground
  11. While I am using subdivisions in cylinder,it is equally dividing my cylinder.But I want to divide my cylinder into unequal divisions.Kindly tell me how to divide my cylinder unequally.