Jump to content

import two or more meshes same time


hit2501
 Share

Recommended Posts

Hi.

I'm working with imported meshes from blender and I use:

BABYLON.SceneLoader.ImportMesh("", "folder", "mymesh.babylon", scene, function (newMeshes){});

To import one mesh but, how can I import more than one without repeat the sale lines? Is there any way to import two or more with one single code?

Thank you all.

Link to comment
Share on other sites

Are all you meshes in the same Blender file, Hit?

 

If so, then they all should import together.

 

My Christmas Village first loads the terrain and trees with with "BABYLON.SceneLoader.Load ..." then all the buildings, toys lamps fences etc. with "BABYLON.SceneLoader.ImportMesh ... "

 

If your meshes are in different Blender files you can merge them in Blender with "File ->Link Append"

 

cheers, gryff :)

Link to comment
Share on other sites

It should not be Hit. The 65k limit is for a single mesh. Take a look at the Hill Valley scene here - it has 0.5 million verts

 

If you have 12 blender files though you will have to call BABYLON.SceneLoader.ImportMesh for each of of the files (or 11 of them anyway if you use BABYLON.SceneLoader.Load ... for the first one)

 

cheers, gryff :)

Link to comment
Share on other sites

  • 2 weeks later...

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