# Many (20+) Empty Material ID created for Skeletal Mesh

**URL:** <https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922>\
**Category:** Rendering\
**Tags:** unreal-engine, component, bug-report, question\
**Created:** [May 19, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922 "2016-05-19T13:42:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [May 19, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/1 "2016-05-19T13:42:28Z")

</div>

Apparently there is a model in my project that has 29 material ID in the component page but NOT on the Skeletal Mesh editor.

The character actually has 3 material ID. I have reimported this to no avail.

 ![91190-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/9/1293eabf7f358d3217b8d03673c14fd71d474952.jpeg)

 ![91191-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/6/dd6fb94de13477302f170f48f65616e4bd07e4f8.jpeg)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 19, 2016, 3:11pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/2 "2016-05-19T15:11:30Z")

</div>

Do you have any steps to reproduce the issue outside of your project or is it just in your project and the asset you’re having trouble with?

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [May 20, 2016, 12:16am UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/3 "2016-05-20T00:16:18Z")

</div>

I’m still trying to check if it’s at all project related. or it could be an asset. will update you when i’m back later.

for now. what I know is that , it’s SkeletalMesh related , not actor/code/logic.  
Whenever I use this skeletal mesh in any actor , same thing would happen. But skeletal mesh editor is still showing fine.

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [May 20, 2016, 12:55pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/4 "2016-05-20T12:55:52Z")

</div>

Okay , I attempted to investigate this further. And more strange voodoo ensue :

1. I migrated the related asset to a new Blank project. Out of sudden , all the skeletal mesh become undiscoverable. ( note that I DID brought along the skeleton as well as I used the Migrate function )… I deleted textures and materials and I zipped it. Thre’s absolutely no way to make them appear in content browser. I’ve checked the folder with the original project it appears that the file size is same. link text

2. I exported the FBX, and checked in max. still 3mat id. reimported… 29 material ID.  
I am uploading this as well.The file size is bigger than 5MB hence i’m uploading it on Gdrive.

here’s the FBX files.  
[https://drive.google.com/file/d/0BxtxUFU725XrOFN2aVJWUXdjU2M/view?usp=sharing](https://drive.google.com/file/d/0BxtxUFU725XrOFN2aVJWUXdjU2M/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [May 22, 2016, 12:55pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/5 "2016-05-22T12:55:45Z")

</div>

Hi Tim Hobson,

Okay I think i might have figured the issue out.

The closest pattern i can see occurring here is that these are the mesh I repeatedly delete and re-import LOD. It seems this creates material ID that don’t really exist.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 23, 2016, 8:06pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/6 "2016-05-23T20:06:58Z")

</div>

Hey Frozenfire

Looking in our system I found one that does just this with UE-1394.

From the look of it, the materials are just superficial and do not actually add any performance cost other than just being there. This is an issue with the reimport process though. At the moment it’s been backlogged, but I’m updating the community interest to see this one resolved.

Thanks!

Tim

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [September 5, 2016, 1:44pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/7 "2016-09-05T13:44:00Z")

</div>

![105724-skeletalmeshinviewer.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/c/31cbb3702c5db89b92aeb8753fc64d32568799d0.jpeg)

 ![105725-skeletalmeshinscene.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/a/03aa5e08e3b5de19d5311eea3ed265fb8ace8205.jpeg)

We have got the same problem with all our skeletal meshes. This is because we have one big MultiSub Material in 3dsMax but the skeletal mesh is only a part of the bigger object, thus only using a few of the material IDs.  
I haven’t checked the draw calls in an empty scene but I do hope that this does not affect performance. Btw. we have one skeletal mesh with 400+ material slots when thrown into the scene. But “only” has 14 in the skeletal mesh editor.  
Tim, can you confirm that this is just a display problem from the UE editor?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 6, 2016, 1:26pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/8 "2016-09-06T13:26:34Z")

</div>

This was fixed in 4.13.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-1394)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [September 6, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/9 "2016-09-06T18:39:00Z")

</div>

The bug description is talking about LOD1 re-import. But the general behaviour is still buggy. I can reproducibly import skeletal meshes with LOD0 having the problem of the skeletal mesh editor showing only used materials while dropped in the scene, it shows all referenced materials.  
Also i noticed a problem with the material slots. Wanting to create a dynamic material instance for Slot 5 to change the texture parameter, the actual slot ID could be 34, or 56, because it is assuming the “superficial” material IDs!  
Also, the root problem of this thread was never talking about LOD1. There seems to be a confusion here!

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 6, 2016, 6:49pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/10 "2016-09-06T18:49:51Z")

</div>

The reimport process was causing the material id’s to replicate based on the OPs steps and issue. That much has been fixed in 4.13.

If you try in 4.13 and still have the same issue post as a new question and include the steps that can reproduce the issue, please.

Thank you!

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [September 6, 2016, 8:03pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/11 "2016-09-06T20:03:29Z")

</div>

Tim, I will post a new question. Didn’t see the OPs comment! 🙂 You know I love FBX-import-bugs 😃 😉

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 6, 2016, 8:08pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/12 "2016-09-06T20:08:26Z")

</div>

Just as much as I do. haha

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [September 6, 2016, 10:42pm UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/13 "2016-09-06T22:42:20Z")

</div>

[See here please 🙂](https://answers.unrealengine.com/questions/483572/fbx-import-bug-skeletal-meshes-keep-reference-to-u.html)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 7, 2016, 1:41am UTC](https://forums.unrealengine.com/t/many-20-empty-material-id-created-for-skeletal-mesh/357922/14 "2016-09-07T01:41:44Z")

</div>

Thanks! I assigned myself. I’ll look into it soon.
