Jump to content

importing from blender is not working


Recommended Posts

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 


I have ran my .babylon file in sandbox and the model is coming there. 

Link to comment
Share on other sites

We will need more details here. The code you've paste here seems incomplete.

You can start by simplifying your ImportMesh function (like in this playground example), and also check if your browser console show errors. If your .babylon is online, you can try to use it in the playground (check https/http to avoid errors).

Link to comment
Share on other sites

I am attaching the full code that I am using.Please tell me where I am wrong.

<!DOCTYPE html>
<meta charset="utf-8" />
<title>Page Title</title>
<script src="https://cdn.babylonjs.com/babylon.max.js"></script>
<canvas id="canvas"></canvas>
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",
var light = new BABYLON.PointLight("PointLight",new BABYLON.Vector3(
light.parent = camera;
light.intensity = 1.5;
scene,function(newMeshes) {
mesh.rotation = new BABYLON.Vector3(BABYLON.Tools.ToRadians(
} );
return scene;
var scene = createScene();
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...