TXTR (Tropical Freeze): Difference between revisions
Jump to navigation
Jump to search
→Format
>Aruki (→Format) |
>Aruki (→Format) |
||
Line 76: | Line 76: | ||
| ''Mipmap Count'' | | ''Mipmap Count'' | ||
| '''Mipmap Sizes''' | | '''Mipmap Sizes''' | ||
| The size of the base level mipmap is calculated with padding and alignment taken into account. The size of subsequent mipmaps is calculated as Width*Height*Depth*BPP/8. This does '''not''' take padding and alignment into account so it cannot be used to accurately locate and read mipmap data | | The size of the base level mipmap is calculated with padding and alignment taken into account. The size of subsequent mipmaps is calculated as Width*Height*Depth*BPP/8. This does '''not''' take padding and alignment into account, and so it does not accurately reflect the amount of space the mipmap takes up in the file, and it cannot be used to accurately locate and read mipmap data. The offset and size needs to be calculated from the other parameters in the header. The game calculates this data by calling GX2CalcSurfaceSizeAndAlignment. | ||
|- | |- | ||
| {{none}} | | {{none}} |