TXTR (Tropical Freeze): Difference between revisions

Jump to navigation Jump to search
>Aruki
>Aruki
 
(7 intermediate revisions by the same user not shown)
Line 13: Line 13:
{| class="wikitable"
{| class="wikitable"
! Offset
! Offset
! Type
! style="width:110px;"|Type
! Count
! style="width:100px;"|Count
! Name
! style="width:170px;"|Name
! Notes
! Notes
|-
|-
Line 57: Line 57:
| u32
| u32
| 1
| 1
| {{unknown|Unknown}}
| '''Tile Mode'''
|  
| Indicates how the texture image data is tiled.
|-
|-
| 0x30
| 0x30
Line 75: Line 75:
| u32
| u32
| ''Mipmap Count''
| ''Mipmap Count''
| {{unknown|Unknown array}}
| '''Mipmap Sizes'''
| Appears to be mipmap sizes, but it doesn't match the size of the image data (unless there's 1)...
| 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}}
Line 115: Line 115:
{| class="wikitable"
{| class="wikitable"
! ID
! ID
! GX2SurfaceType
! Type
|-
|-
| 0
| 0
| GX2_SURFACE_DIM_1D
| 1D Texture
|-
|-
| 1
| 1
| GX2_SURFACE_DIM_2D
| 2D Texture
|-
|-
| 2
| 2
| GX2_SURFACE_DIM_3D
| 3D Texture
|-
|-
| 3
| 3
| GX2_SURFACE_DIM_CUBE
| Cube Texture
|-
|-
| 4
| 4
| GX2_SURFACE_DIM_1D_ARRAY
| 1D Texture Array
|-
|-
| 5
| 5
| GX2_SURFACE_DIM_2D_ARRAY
| 2D Texture Array
|-
|-
| 6
| 6
| GX2_SURFACE_DIM_2D_MSAA
| Multisampled 2D Texture
|-
|-
| 7
| 7
| GX2_SURFACE_DIM_2D_MSAA_ARRAY
| Multisampled 2D Texture Array
|}
|}


Line 302: Line 302:
| 1
| 1
| {{unknown|Unknown}}
| {{unknown|Unknown}}
|  
| Always 4
|-
|-
| 0x4
| 0x4
Line 319: Line 319:
| u32
| u32
| 1
| 1
| {{unknown|Unknown}}
| '''Base Alignment'''
|  
| Alignment of the surface image data
|-
|-
| 0x10
| 0x10
Anonymous user

Navigation menu