Difference between revisions of "BATTLE.BIN Model Data"
Jump to navigation
Jump to search
m |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | There is | + | There is model data that seems to be structured as if it were an external file, but is baked into the BATTLE.BIN file. for constructing projectile models. |
+ | 801b8534 - pointers to start of model data | ||
+ | Arrow model - 801b69dc | ||
+ | Stone model - 801b6d00 | ||
+ | Reflect model - 801b6f00 | ||
+ | Shuriken model- 801b73b8 | ||
+ | |||
+ | |||
==Section 1== | ==Section 1== | ||
− | the first section is dedicated to address pointers? may be split into 2 sections? using the | + | the first section is dedicated to address pointers? may be split into 2 sections? using the arrow model as an example: |
AA AA AA AA|BB BB BB BB|CC CC CC CC | AA AA AA AA|BB BB BB BB|CC CC CC CC | ||
00000000: 41 00 00 00|00 00 00 00|01 00 00 00 | 00000000: 41 00 00 00|00 00 00 00|01 00 00 00 | ||
Line 9: | Line 16: | ||
0000000c: 01 e8 00 00|13 00 00 00|80 02 00 00|13 00 00 00|1c 00 00 00|11 00 00 00|00 00 00 00 | 0000000c: 01 e8 00 00|13 00 00 00|80 02 00 00|13 00 00 00|1c 00 00 00|11 00 00 00|00 00 00 00 | ||
*DD: | *DD: | ||
− | Used as a pointer relative to 0x0000000c. points to a table of raw | + | Used as a pointer relative to 0x0000000c. points to a table of raw points in xyz space. EE points long. |
*FF: | *FF: | ||
− | Used as a pointer relative to 0x0000000c. | + | Used as a pointer relative to 0x0000000c. Data seems to be completely superfluous. safe to remove/ignore? GG entries long. |
*HH: | *HH: | ||
− | Used as a pointer relative to 0x0000000c. points to palette data per polygon, that is II | + | Used as a pointer relative to 0x0000000c. points to palette data per polygon, that is II polygons long. |
*JJ | *JJ | ||
does not seem to be used? | does not seem to be used? | ||
Line 20: | Line 27: | ||
==Section DD== | ==Section DD== | ||
− | Contains exclusively | + | Contains exclusively point position data. |
XX XX YY YY|ZZ ZZ 00 00| | XX XX YY YY|ZZ ZZ 00 00| | ||
DD: 32 00 32 00|00 00 00 00|... | DD: 32 00 32 00|00 00 00 00|... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Section HH== | ==Section HH== | ||
Line 35: | Line 37: | ||
AA BB CC are unknown. | AA BB CC are unknown. | ||
*DD | *DD | ||
− | + | Polygon type. includes semi-transparency flag. | |
− | |||
− | |||
− | |||
*Palettes | *Palettes | ||
− | + | RGB palettes per corner of model. | |
*Vector Pointers | *Vector Pointers | ||
− | point to the points in xyz space that make up the polygon | + | point to the points in xyz space that make up the polygon. |
Latest revision as of 11:44, 4 September 2025
There is model data that seems to be structured as if it were an external file, but is baked into the BATTLE.BIN file. for constructing projectile models. 801b8534 - pointers to start of model data Arrow model - 801b69dc Stone model - 801b6d00 Reflect model - 801b6f00 Shuriken model- 801b73b8
Section 1
the first section is dedicated to address pointers? may be split into 2 sections? using the arrow model as an example: AA AA AA AA|BB BB BB BB|CC CC CC CC 00000000: 41 00 00 00|00 00 00 00|01 00 00 00
I cannot be sure these 3 are pointers, because they aren't treated that way? unsure what their purpose is yet.
Section 1.5? DD DD DD DD|EE EE EE EE|FF FF FF FF|GG GG GG GG|HH HH HH HH|II II II II|JJ JJ JJ JJ 0000000c: 01 e8 00 00|13 00 00 00|80 02 00 00|13 00 00 00|1c 00 00 00|11 00 00 00|00 00 00 00
- DD:
Used as a pointer relative to 0x0000000c. points to a table of raw points in xyz space. EE points long.
- FF:
Used as a pointer relative to 0x0000000c. Data seems to be completely superfluous. safe to remove/ignore? GG entries long.
- HH:
Used as a pointer relative to 0x0000000c. points to palette data per polygon, that is II polygons long.
- JJ
does not seem to be used?
Sections DD, FF, and HH may not be in sequential order in the file; in this case, HH is first.
Section DD
Contains exclusively point position data. XX XX YY YY|ZZ ZZ 00 00| DD: 32 00 32 00|00 00 00 00|...
Section HH
a Table related to vector data that is, admittedly, yet to be tracked down; HH points to this table. the following can be said about it though: AA BB CC DD|Palette 1 |Palette 2 |Palette 3 |Palette 4 |Vector pointers? |AA BB CC DD| HH: 08 06 01 39|56 56 56 39|bd bd c1 00|3e 3e 3e 00|a1 a1 a6 00|00 00 01 00 03 00 02 00|08 06 01 39|... AA BB CC are unknown.
- DD
Polygon type. includes semi-transparency flag.
- Palettes
RGB palettes per corner of model.
- Vector Pointers
point to the points in xyz space that make up the polygon.