kk
that's still a little confusing :/
I'm trying to figure out the data of this object:
header:
00 00 04 C0 FF FE 67 A0 00 00 00 0F 00 00 54 00
00 00 00 02 00 00 00 15 00 00 00 E0 00 00 00 80
00 00 00 68 00 00 03 60 00 00 03 60 00 00 01 3C
00 00 2E 00 00 00 00 00 00 01 0D F4 00 00 00 04
00 00 00 C3 00 00 00 89 00 04 00 04 00 00 FF FF
00 04 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00 00 00 64
weights:
00 00 00 00
shader instructions:
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 08 50 00 00 54 00
08 60 00 00 00 02 10 00 00 10 08 00 00 00 15 00
08 70 41 37 70 09 08 80 C8 24 12 09 08 90 04 82
41 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
I assume this is padding (between header and data offset)
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
polygons: (data offset + 36)
98 00 18 4B 22 00 4B 52 29 00 52 21 21 00 21 35
25 00 35 34 34 00 34 2E 2E 00 2E 33 33 00 33 30
30 00 30 41 3E 00 41 31 31 00 31 40 2E 00 40 32
32 00 32 3F 3D 00 3F 3E 3C 00 3E 37 36 00 37 3D
3B 00 3D 3C 3A 00 3C 24 24 00 24 25 25 00 25 0D
0D 00 0D 16 16 00 16 0C 0C 00 0C 17 17 00 17 14
14 00 14 98 00 12 4F 4B 00 4F 51 4D 00 51 2F 2F
00 2F 12 12 00 12 11 11 00 11 10 10 00 10 19 19
00 19 1A 1A 00 1A 18 18 00 18 05 05 00 05 06 06
00 06 00 00 00 00 03 03 00 03 04 04 00 04 0C 0C
00 0C 07 07 00 07 14 14 00 14 13 13 00 13 98 00
10 4B 22 00 4B 21 21 00 21 23 23 00 23 20 20 00
20 1F 1F 00 1F 1D 1D 00 1D 1C 1C 00 1C 1E 1E 00
1E 2B 2B 00 2B 2C 2C 00 2C 2A 2A 00 2A 29 29 00
29 1B 1B 00 1B 26 26 00 26 16 16 00 16 25 25 00
25 98 00 0C 20 20 00 20 45 42 00 45 1D 1D 00 1D
46 43 00 46 1E 1E 00 1E 39 1F 00 39 36 35 00 36
37 36 00 37 38 37 00 38 3A 38 00 3A 26 26 00 26
25 25 00 25 98 00 0A 05 05 00 05 01 01 00 01 00
00 00 00 02 02 00 02 04 04 00 04 08 08 00 08 07
07 00 07 09 09 00 09 13 13 00 13 15 15 00 15 98
00 09 01 01 00 01 0E 0E 00 0E 02 02 00 02 0F 0F
00 0F 08 08 00 08 48 45 00 48 0A 0A 00 0A 4D 49
00 4D 4A 47 00 4A 98 00 08 30 30 00 30 11 11 00
11 31 31 00 31 19 19 00 19 32 32 00 32 28 28 00
28 3E 3C 00 3E 3D 3B 00 3D 98 00 08 39 1F 00 39
46 43 00 46 37 36 00 37 45 42 00 45 44 41 00 44
22 22 00 22 34 34 00 34 21 21 00 21 98 00 07 1E
1E 00 1E 36 35 00 36 2C 2C 00 2C 38 37 00 38 2D
2D 00 2D 26 26 00 26 29 29 00 29 98 00 06 19 19
00 19 18 18 00 18 28 28 00 28 27 27 00 27 3D 3B
00 3D 24 24 00 24 98 00 06 4A 47 00 4A 49 46 00
49 0A 0A 00 0A 0B 0B 00 0B 09 09 00 09 15 15 00
15 98 00 06 44 41 00 44 34 34 00 34 43 40 00 43
42 3F 00 42 37 36 00 37 41 3E 00 41 98 00 05 35
25 00 35 52 29 00 52 2E 2E 00 2E 50 4C 00 50 4E
4A 00 4E 98 00 05 24 24 00 24 06 06 00 06 0D 0D
00 0D 03 03 00 03 0C 0C 00 0C 98 00 05 3C 3A 00
3C 25 25 00 25 3B 39 00 3B 3A 38 00 3A 37 36 00
37 98 00 04 3F 3D 00 3F 37 36 00 37 40 2E 00 40
41 3E 00 41 98 00 04 4F 4B 00 4F 2F 2F 00 2F 4E
4A 00 4E 2E 2E 00 2E 98 00 04 2F 2F 00 2F 11 11
00 11 2E 2E 00 2E 30 30 00 30 98 00 04 18 18 00
18 06 06 00 06 27 27 00 27 24 24 00 24 98 00 04
4D 49 00 4D 48 45 00 48 4C 48 00 4C 47 44 00 47
98 00 04 48 45 00 48 0F 0F 00 0F 47 44 00 47 0E
0E 00 0E 98 00 04 45 42 00 45 20 20 00 20 22 22
00 22 21 21 00 21 98 00 04 41 3E 00 41 42 3F 00
42 33 33 00 33 34 34 00 34 90 00 12 17 17 00 17
1B 1B 00 1B 16 16 00 16 49 46 00 49 15 15 00 15
0B 0B 00 0B 0A 0A 00 0A 09 09 00 09 08 08 00 08
2D 2D 00 2D 29 29 00 29 2C 2C 00 2C 37 36 00 37
44 41 00 44 43 40 00 43 37 36 00 37 3C 3A 00 3C
3B 39 00 3B 00 00 00 00 00 00 00 00 00 00 00 00
the polygons are the trickiest part,
and I'm haing a heck of a time trying to read that confusing code I posted earlier
basically, the points of each polygon type are different sizes for each object
the size is specified in the header in some form that I am unsure of :/
that part of the code I posted is (I believe) what returns the correct data...
the polygon types are:
0x20 - Position matrix
0x28 - Normal matrix
0x30 - Texture matrix
0x38 - Light matrix
^(usually len(4))
0x80 - Quads
0x90 - Triangles
0x98 - Tristrip
0xA0 - Trian
0xA8 - Lines
0xB0 - Linestrip
0xB8 - Points
as specified in the first polygon:
98 00 18 #is a tristrip with a point list of 24
4B 22 00 4B
52 29 00 52
21 21 00 21
35 25 00 35
34 34 00 34
2E 2E 00 2E
33 33 00 33
30 30 00 30
41 3E 00 41
31 31 00 31
40 2E 00 40
32 32 00 32
3F 3D 00 3F
3E 3C 00 3E
37 36 00 37
3D 3B 00 3D
3C 3A 00 3C
24 24 00 24
25 25 00 25
0D 0D 00 0D
16 16 00 16
0C 0C 00 0C
17 17 00 17
14 14 00 14
the points vary in length depending on the object being looked at
(all points for any polygon in the above object have a lengh of 4)
but what I need to know is how to find that length...
can you help??
yea...
the entire thing about this thread hes changed...
it's not really so much conversion anymore...
I need the stuff explained to me on how the code works :/
sry I failed to mention that earlier <:|