Jump to content

Add a mesh into existing scene


webnurlan
 Share

Recommended Posts

Hello everyone. I have a question. How can I add just one mesh from Blender into an existing babylon scene?

I created a babylon scene with several meshes. Now, I want to add a model of a car from Blender into existing scene.

Thank you.

Link to comment
Share on other sites

On 5/24/2017 at 0:43 AM, hunts said:

Hello there:


BABYLON.SceneLoader.ImportMesh("indicate the name of the mesh you want to appear here", "url of the whole mesh", "your blender.babylon", scene, function (newMeshes, particleSystems, skeletons) {

    var wantedMesh = newMeshes[0]
})

Hello.

Thank you for your answer about this issue!

 You know, SceneLoader.ImportMesh didn't work for me. So, I solved the problem using - AssetsManager. And I added into the existing scene a Cube (in the shape of a toy car) from Blender for now. Soon, I'll try to add a model of a car from Blender.

I'm new in Blender and Babylon. If I have more questions, I'm going to post them soon and I hope you can answer them like you did to this one.

Bye for now!

Link to comment
Share on other sites

On 5/24/2017 at 1:16 AM, Dad72 said:

Hello.

Thank you for your answer about this issue!

 You know, SceneLoader.ImportMesh and SceneLoader.Append() didn't work for me. So, I solved the problem using - AssetsManager. And I added into the existing scene a Cube (in the shape of a toy car) from Blender for now. Soon, I'll try to add a model of a car from Blender.

I'm new in Blender and Babylon. If I have more questions, I'm going to post them soon and I hope you can answer them like you did to this one.

Bye for now!

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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