Jump to content

Import Question/Issue


darkknight8
 Share

Recommended Posts

I have a scene which imports multiple meshes. One group of mesh is known as the character mesh for my character (this contains a root and few children) and a hat mesh (that contains a root and one child). The first import always imports as expected, but the second import seems to merge materials and textures with my previous import. The 1st image below shows the regular hat with texture. Now importing after the character causes the material and texture to seemingly merge, which is shown by the 2nd image below. The third image shows me importing the hat first this time, then importing the character second...the 3rd image is the result. His hair now has material of the hat.

So my question is, when you import meshes, are they suppose to automatically share materials? If so, how do I prevent this from happening?

Screenshot from 2018-08-28 10-07-46.png

Screenshot from 2018-08-28 10-06-39.png

Screenshot from 2018-08-28 10-13-51.png

Link to comment
Share on other sites

  • darkknight8 changed the title to Import Question/Issue

I looked at the console material properties of the meshes and under the albedoTexture name, it has "hair_baseColor.jpg" for the hair, and "hat1_baseColor.jpg" for the hat, is that creating a conflict? The only thing that I noticed that is really similar is that the url both point to "data:/assets/image0", is this possibly the issue?

Link to comment
Share on other sites

This should not be a problem unless they are identical (not the case here).

Can you replace your meshes by boxes but keep the textures and create a playground? If this is a bug I will fix it immediatly

Link to comment
Share on other sites

Yep, I am using gltf/glb file format. So I am not sure if I can reproduce it in the playground using box meshes because this issue only seems to happen after importing a 2nd mesh into the scene rather than creating a mesh. I noticed that the url the character meshes tend to be "data:/assets/image0", then increases by 1 per texture imported for that group, so the second texture in the group would be ""data:/assets/image1", etc., but when you import a second mesh, the url for the albedoTexture is reset to "data:/assets/image0".

It might be a complete coincidence, but the hair texture on my character and my hat both point to the url "data:/assets/image0". I have attached some screenshots below to show what I mean.

Screenshot from 2018-08-28 13-16-22.png

Screenshot from 2018-08-28 13-17-16.png

Link to comment
Share on other sites

Update: The issue seems to only occur when you use local files, because when I hosted the file on a CDN or you have the files in a different directory (for example, have character in the /character directory and hat in a /hat directory), the issue is resolved, so maybe this is a bug somewhere when importing from the same directory  @Deltakosh?

Screenshot below:

923159663_Screenshotfrom2018-08-2814-34-35.png.3df3886039fe46d54e81594acb77776d.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...