Stamina, what 3D software are you working with? Results seem to vary depending on the .x exporter used (just to make things even more complicated).
This is the start of the HUD.x for the Commando. You can see that the various materials have precise texture names assigned to them.
xof 0303txt 0032
Material GUN {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"gun_D2.tga";
}
}
Material FLAGS {
0.500000;0.500000;0.500000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
}
Material AMMUNITION {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"ammo_D2.tga";
}
}
Material SCOPE {
1.000000;1.000000;1.000000;1.000000;;
8.000000;
0.045000;0.045000;0.045000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"scope_D2.tga";
}
}
It might be necessary to edit your .x file in a word processor to get a same syntax.
The whole process does seem unduly finickity, and I can't help thinking that just when we've completely worked it out, TGC will release V2 with automatic multiple texture support, and make the whole effort redundant.
Ah well, at least it's keeping us busy
Cheers
- Graham