Jump to content

import scene


Recommended Posts

Since you are loading a scene, which seems to have been exported from a software like Blender. You will need to access them via

var tankard = scene.getMeshByName('Circle');

Circle was the name given most likely from the program used to create the .babylon file. I found this by inspecting the scene.meshes array.

Note the scene loader seems to be using the camera from the scene, which is why your code does not create a BJS camera and use it.


Otherwise you will want to use the Asset Manager to load in the .babylon file and access the task.loadedMeshes array and assign it to an object.


Then access the meshes properties, ie tankard.position.x = 10;


Please refer to the playground (http://www.babylonjs-playground.com/# ) and the tutorials ( http://doc.babylonjs.com/tutorials ), which are really good resources to learn more!

Link to comment
Share on other sites

Спасибо больше. За исчерпывающий ответ. Я старюсь изучить  babylon  используя документацию. Но это затруднительно для меня так как я не в совершенстве владею знаниями английского. 

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