   .x file loader question
  I am writing a .x file parser and there is really no documentation on the file layout. I used the directx file viewer with the direct x SDK, to load this dwarf.x and it displays the model correctly. But in the .x file I don't understand a part; maybe someone can look at the problematic part in the file and point out what is going on.open the file and goto where Dwarf_2_LOD0Mtl_maceSub5 is used as a material on the mesh, not the material declaration at the top of the file.Now, notice in in that specific MeshMaterialList, there are 6 materials listed, and if you scroll up, you will see the index 4 used for that mesh. My problem is, why the hell are there 6 materials listed there and only one is used? index 4? Where do I use the other 6 at? Can this be explained in short over these boards? If you check the rest of the file, you will see that is the only place where those other 5 materials are used anywhere, and yet somehow they are applied to the model.Here are the textures used in the model:SWORD03_color.DDSBODY02_color.DDSLEG02_color.DDSSHOULDER02_color.DDSHEAD02_color.DDSSHIELD02_color.DDSMACE02_color.DDSHEAD03_color.DDSBODY03_color.DDSLEG03_color.DDS