Add support for hats, so that MineCraft skins using this feature are compatible

This commit is contained in:
MirceaKitsune 2012-11-27 01:26:51 +02:00
parent f2a67871d2
commit df54836ea0
2 changed files with 292 additions and 154 deletions

Binary file not shown.

View File

@ -86,7 +86,7 @@ Frame Root {
0.000000, 0.000000, 0.000000, 1.000000;;
}
Mesh { //Cube_001 Mesh
144;
168;
2.000000;-1.000000; 6.750000;,
-2.000000;-1.000000; 6.750000;,
-2.000000;-1.000000;13.500000;,
@ -230,8 +230,32 @@ Frame Root {
2.000000;-1.000000; 6.750000;,
0.000000;-1.000000; 6.750000;,
0.000000; 1.000000; 6.750000;,
2.000000; 1.000000; 6.750000;;
36;
2.000000; 1.000000; 6.750000;,
2.200000;-2.200000;13.300000;,
-2.200000;-2.200000;13.300000;,
-2.200000;-2.200000;17.700001;,
2.200000;-2.200000;17.700001;,
-2.200000;-2.200000;13.300000;,
-2.200000; 2.200000;13.300000;,
-2.200000; 2.200000;17.700001;,
-2.200000;-2.200000;17.700001;,
-2.200000; 2.200000;13.300000;,
2.200000; 2.200000;13.300000;,
2.200000; 2.200000;17.700001;,
-2.200000; 2.200000;17.700001;,
-2.200000; 2.200000;13.300000;,
-2.200000;-2.200000;13.300000;,
2.200000;-2.200000;13.300000;,
2.200000; 2.200000;13.300000;,
2.200000; 2.200000;17.700001;,
2.200000;-2.200000;17.700001;,
-2.200000;-2.200000;17.700001;,
-2.200000; 2.200000;17.700001;,
2.200000; 2.200000;17.700001;,
2.200000; 2.200000;13.300000;,
2.200000;-2.200000;13.300000;,
2.200000;-2.200000;17.700001;;
42;
4;0;1;2;3;,
4;4;5;6;7;,
4;8;9;10;11;,
@ -267,9 +291,15 @@ Frame Root {
4;128;129;130;131;,
4;132;133;134;135;,
4;136;137;138;139;,
4;140;141;142;143;;
4;140;141;142;143;,
4;144;145;146;147;,
4;148;149;150;151;,
4;152;153;154;155;,
4;156;157;158;159;,
4;160;161;162;163;,
4;164;165;166;167;;
MeshNormals { //Cube_001 Normals
144;
168;
-0.000000;-1.000000; 0.000000;,
-0.000000;-1.000000; 0.000000;,
-0.000000;-1.000000; 0.000000;,
@ -413,8 +443,32 @@ Frame Root {
0.000000;-0.000000; 1.000000;,
0.000000;-0.000000; 1.000000;,
0.000000;-0.000000; 1.000000;,
0.000000;-0.000000; 1.000000;;
36;
0.000000;-0.000000; 1.000000;,
0.000000;-1.000000; 0.000000;,
0.000000;-1.000000; 0.000000;,
0.000000;-1.000000; 0.000000;,
0.000000;-1.000000; 0.000000;,
-1.000000; 0.000000; 0.000000;,
-1.000000; 0.000000; 0.000000;,
-1.000000; 0.000000; 0.000000;,
-1.000000; 0.000000; 0.000000;,
0.000000; 1.000000;-0.000000;,
0.000000; 1.000000;-0.000000;,
0.000000; 1.000000;-0.000000;,
0.000000; 1.000000;-0.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000; 1.000000;,
0.000000; 0.000000; 1.000000;,
0.000000; 0.000000; 1.000000;,
0.000000; 0.000000; 1.000000;,
1.000000; 0.000000; 0.000000;,
1.000000; 0.000000; 0.000000;,
1.000000; 0.000000; 0.000000;,
1.000000; 0.000000; 0.000000;;
42;
4;0;1;2;3;,
4;4;5;6;7;,
4;8;9;10;11;,
@ -450,11 +504,23 @@ Frame Root {
4;128;129;130;131;,
4;132;133;134;135;,
4;136;137;138;139;,
4;140;141;142;143;;
4;140;141;142;143;,
4;144;145;146;147;,
4;148;149;150;151;,
4;152;153;154;155;,
4;156;157;158;159;,
4;160;161;162;163;,
4;164;165;166;167;;
} //End of Cube_001 Normals
MeshMaterialList { //Cube_001 Material List
1;
36;
42;
0,
0,
0,
0,
0,
0,
0,
0,
0,
@ -500,7 +566,7 @@ Frame Root {
}
} //End of Cube_001 Material List
MeshTextureCoords { //Cube_001 UV Coordinates
144;
168;
0.625000; 1.000000;,
0.500000; 1.000000;,
0.500000; 0.625000;,
@ -644,7 +710,31 @@ Frame Root {
0.125000; 0.500000;,
0.062500; 0.500000;,
0.062500; 0.625000;,
0.125000; 0.625000;;
0.125000; 0.625000;,
1.000000; 0.500000;,
0.875000; 0.500000;,
0.875000; 0.250000;,
1.000000; 0.250000;,
0.875000; 0.500000;,
0.750000; 0.500000;,
0.750000; 0.250000;,
0.875000; 0.250000;,
0.750000; 0.500000;,
0.625000; 0.500000;,
0.625000; 0.250000;,
0.750000; 0.250000;,
0.750000; 0.250000;,
0.750000; 0.000000;,
0.875000; 0.000000;,
0.875000; 0.250000;,
0.625000; 0.250000;,
0.625000; 0.000000;,
0.750000; 0.000000;,
0.750000; 0.250000;,
0.625000; 0.250000;,
0.625000; 0.500000;,
0.500000; 0.500000;,
0.500000; 0.250000;;
} //End of Cube_001 UV Coordinates
XSkinMeshHeader {
1;
@ -652,32 +742,80 @@ Frame Root {
6;
}
SkinWeights {
"Armature_Leg_Right";
24;
20,
21,
22,
23,
64,
65,
66,
67,
80,
81,
82,
83,
88,
89,
90,
91,
124,
125,
126,
127,
140,
141,
142,
143;
"Armature_Head";
48;
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
96,
97,
98,
99,
144,
145,
146,
147,
148,
149,
150,
151,
152,
153,
154,
155,
156,
157,
158,
159,
160,
161,
162,
163,
164,
165,
166,
167;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
@ -702,67 +840,11 @@ Frame Root {
1.000000,
1.000000,
1.000000;
1.000000,-0.000000,-0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
-0.000000,-1.000000, 0.000000, 0.000000,
-1.000000, 6.750001,-0.000001, 1.000000;;
} //End of Armature_Leg_Right Skin Weights
SkinWeights {
"Armature_Arm_Left";
24;
24,
25,
26,
27,
28,
29,
30,
31,
104,
105,
106,
107,
108,
109,
110,
111,
116,
117,
118,
119,
132,
133,
134,
135;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
0.989214,-0.143940,-0.027164, 0.000000,
0.027450,-0.000000, 0.999623, 0.000000,
-0.143886,-0.989587, 0.003951, 0.000000,
3.920884,13.071540,-0.107668, 1.000000;;
} //End of Armature_Arm_Left Skin Weights
-1.000000, 0.000000,-0.000000, 0.000000,
-0.000000,-0.000000, 1.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
-0.000000,-13.500000,-0.000002, 1.000000;;
} //End of Armature_Head Skin Weights
SkinWeights {
"Armature_Body";
24;
@ -819,62 +901,6 @@ Frame Root {
0.000000, 1.000000, 0.000000, 0.000000,
0.000000,-6.750000,-0.000001, 1.000000;;
} //End of Armature_Body Skin Weights
SkinWeights {
"Armature_Head";
24;
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
96,
97,
98,
99;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
-1.000000, 0.000000,-0.000000, 0.000000,
-0.000000,-0.000000, 1.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
-0.000000,-13.500000,-0.000002, 1.000000;;
} //End of Armature_Head Skin Weights
SkinWeights {
"Armature_Arm_Right";
24;
@ -931,6 +957,118 @@ Frame Root {
0.143886,-0.989587, 0.003951, 0.000000,
-3.920884,13.071540,-0.107668, 1.000000;;
} //End of Armature_Arm_Right Skin Weights
SkinWeights {
"Armature_Arm_Left";
24;
24,
25,
26,
27,
28,
29,
30,
31,
104,
105,
106,
107,
108,
109,
110,
111,
116,
117,
118,
119,
132,
133,
134,
135;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
0.989214,-0.143940,-0.027164, 0.000000,
0.027450,-0.000000, 0.999623, 0.000000,
-0.143886,-0.989587, 0.003951, 0.000000,
3.920884,13.071540,-0.107668, 1.000000;;
} //End of Armature_Arm_Left Skin Weights
SkinWeights {
"Armature_Leg_Right";
24;
20,
21,
22,
23,
64,
65,
66,
67,
80,
81,
82,
83,
88,
89,
90,
91,
124,
125,
126,
127,
140,
141,
142,
143;
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000,
1.000000;
1.000000,-0.000000,-0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
-0.000000,-1.000000, 0.000000, 0.000000,
-1.000000, 6.750001,-0.000001, 1.000000;;
} //End of Armature_Leg_Right Skin Weights
SkinWeights {
"Armature_Leg_Left";
24;