Jump to content

Merging loaded 3D Model


Recommended Posts

I'm loading a 3D model exported to .babylon format using Blender.

The end result is usually a .babylon file containg a bundle of meshes each using a different texture.

My current solution is to create a container for manipulating all meshes of the same bundle.

MeshContainer consists of the array of bundled meshes that were loaded, and when applying position / rotation / etc to the container, they are applied to all of its meshes.

For optimization purposes I'm now trying to merge all meshes that are related to the same 3D model instead of using my MeshContainer solution.

The problem is, once I merge the meshes, all the textures / materials disappear.

I saw that babylon has something called MultiMaterial, it sounds like a direction, but I'm not sure how to proceed, if this even is the right direction.

How do I solve this?

Link to comment
Share on other sites

Would blender know how to treat the textures after the meshes were merged?

In my blender I see a model without the textures and only after it is exported I see referenced to the textures which are displayed in bjs.

After merging meshes that have different textures, will the .babylon file and textures be exported properly?

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