-
Notifications
You must be signed in to change notification settings - Fork 6
Textures
ProgSys edited this page Jun 1, 2024
·
21 revisions
*.TX2 is the format in which almost all Disgaea textures are stored.
They come in six types:
- DXT1 (0) - Lossy block compression optimize for the GPU
- DXT4 (1) - Lossy block compression optimize for the GPU, with not pre-multiplied alpha (very rare)
- DXT5 (2) - Lossy block compression, with explicit alpha, optimize for the GPU
- BGRA (3) - Uncompressed image
- FONT (4) - Like BGRA but also has fixed colortable with 16 entries (however not sure jet what it does)
- Color table BGRA with max 16 entries (16) - Max 16 colors, mostly used for sprites
- Color table BGRA with max 255 entries (256) - Max 255 colors
Type | Size | Description |
---|---|---|
uShort | 2 byte | image width |
uShort | 2 byte | image height |
uShort | 2 byte | Image type |
uChar | 1 byte | Power of width |
uChar | 1 byte | Power of height |
uShort | 2 byte | Color table size |
uShort | 2 byte | Number of color tabels |
uInt | 4 byte | is always 65536 (00 00 01 00)? |
If color table size is bigger zero, then BGRA colors follow the header. Note, even if color table 16/255 is used there can be less or even more colors be stored.