TXTR (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
no edit summary
>Aruki (Created page with "'''TXTR''' is, as the name suggests, the Retro Studios texture format. It's identical from Metroid Prime all the way up to Donkey Kong Country Returns. __TOC__ == Structure...") |
>Aruki No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''TXTR''' is, as the name suggests, the Retro Studios texture format. | '''TXTR''' is, as the name suggests, the Retro Studios texture format. The format remains completely unchanged from Metroid Prime all the way up to Donkey Kong Country Returns. | ||
__TOC__ | __TOC__ | ||
== | == Format == | ||
TXTR files contain a very short 12-byte header, followed by the image data. | TXTR files contain a very short 12-byte header, followed by the image data. | ||
Line 29: | Line 29: | ||
| 4 | | 4 | ||
| '''Mipmap count''' | | '''Mipmap count''' | ||
|- | |||
| 0xC | |||
| colspan=2 | End of header | |||
|} | |||
=== Palettes === | |||
The C4 and C8 image formats contain a palette table after the header, before the image data begins. | |||
{| class="wikitable" | |||
! Offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 4 | |||
| '''Palette format'''. Possible values range from 0 to 2. | |||
|- | |||
| 0x4 | |||
| 2 | |||
| Always 0x1 in C4, 0x100 in C8 | |||
|- | |||
| 0x6 | |||
| 2 | |||
| Always 0x10 in C4, 0x1 in C8 | |||
|- | |||
| 0x8 | |||
| Varies | |||
| '''Palette colors'''. 16-bit color values; 16 colors in C4, 256 in C8. | |||
|- | |||
| colspan=3 | End of palette table; image data begins immediately after | |||
|} | |} | ||
Line 114: | Line 145: | ||
* [http://wiki.tockdom.com/wiki/Image_Formats Custom Mario Kart Wiiki]: More detailed information on each format, and how to decode them. | * [http://wiki.tockdom.com/wiki/Image_Formats Custom Mario Kart Wiiki]: More detailed information on each format, and how to decode them. | ||
[[Category:File Formats]] | |||
[[Category:Metroid Prime]] | |||
[[Category:Metroid Prime 2: Echoes]] | |||
[[Category:Metroid Prime 3: Corruption]] | |||
[[Category:Donkey Kong Country Returns]] |