Jump to content

Export from blender rotates the skybox when apply rotation


Recommended Posts


I'm a newbee at babylonjs and I'm currently learning the BJS engine as well as the blender for 3d modelling. I have a problem when I import a .babylon file that I have created in blender. What I want to do is after loading the model, to set an ArcRotate camera to the model. I'm using this propery in order to set the target:

var assetsManager = new BABYLON.AssetsManager(scene);
var boatMeshTask = assetsManager.addMeshTask("BoatTask", "Boat", "assets/Boat/", "tugboat.babylon");
    boatMeshTask.onSuccess = function (task) {
       model = task.loadedMeshes[0];
       model.position.z = -80;
       model.position.y = 3;

       camera.target = model;
       camera.lockedTarget = model;



The problem is that when I try to apply a rotation to the model at Z axis, my skybox rotates as well. I'm using BABYLON.Space.LOCAL. For translation I'm using the following code:

model.rotate(BABYLON.Axis.Z, rotationAngle, BABYLON.Space.LOCAL);

This is the model I try to load:


Any suggestion;

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...