Jump to content

Loaded Models conflicting material names


royibernthal
 Share

Recommended Posts

I'm loading models from .babylon files. All my .babylon files are named data.babylon and each is placed in a folder named after the model. (e.g. cat/data.babylon)

Due to the .babylon files being exported with the same name, there are sometimes naming conflicts in materials ids, e.g. "data.Multimaterial#0" can appear as a materialId in both cat/data.babylon and dog/data.babylon.

Whenever there's a conflict, there's a problem in the rendering of the conflicted material in one of the models during runtime.

Is it possible to avoid the conflict, while still exporting all my .babylon files with the name data.babylon?

Link to comment
Share on other sites

20 minutes ago, royibernthal said:

s it possible to avoid the conflict, while still exporting all my .babylon files with the name data.babylon?

Use the "namespace" box outlined in green in the image -  type in dragon, monkey, mouse etc - something that describes your model.

cheers, gryff :)

namespace1.png

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