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.
Here are the textures used in the model:
SWORD03_color.DDS
BODY02_color.DDS
LEG02_color.DDS
SHOULDER02_color.DDS
HEAD02_color.DDS
SHIELD02_color.DDS
MACE02_color.DDS
HEAD03_color.DDS
BODY03_color.DDS
LEG03_color.DDS
*Edit*
the .x file link works now