Iconoclasts PS VITA *.GXT

Textures, recreate headers, conversions, algorithms and parsing of image files
Zolodei
Posts: 36
Joined: Sat Sep 16, 2017 6:34 pm

Iconoclasts PS VITA *.GXT

Post by Zolodei »

Tell me, how to translate *.png > *.GXT?

The file itself "*.GXT".

File structure Iconoclasts GXT:
Beginning With 0x0
0 4 SizeFilesGXT
4 ? FilesGXT
? ? UnknownDATA
Zolodei
Posts: 36
Joined: Sat Sep 16, 2017 6:34 pm

Re: Iconoclasts PS VITA *.GXT

Post by Zolodei »

UP
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: Iconoclasts PS VITA *.GXT

Post by happydance »

save that to DDS then use psp2gxt.exe to convert DDS -> GXT

you should know the value of your GXT original GXT header fo you would know what properties your DDS texture will have



not really sure how accurate this is, but usually I encounter this values for single texture gxt

Code: Select all

0x0 ID string (GXT)
0x4 version (usually 3.01)
0x8 number of texture on the gxt
0xC start of the texture (data)
0x10 size of the texture (data)
0x14 Number of 16 entry palettes if (P4 gxt if not just 0x00000000)
0x18 Number of 256 entry palettes if (P8 gxt if not just 0x00000000)
0x1C Padding (0x00000000)
0x20 start of the 1st texture (data)
0x24 size of the 1st texture (data)
0x28 Index of the palette (usually 0xFFFFFFF)
0x30 Texture Type
0x34 Texture Format
0x38 Texture Width
0x3A Texture Height
0x3C Number of Mipmaps


Texture type (GXT)
0x00 = SWIZZLED
0x40 = CUBE
0x60 = LINEAR
0x80 = TILED
0x0C = LINEAR STRIDED

Texture format
00 00 00 85 = DXT1 no alpha
00 00 00 86 = DXT3
00 00 00 87 = DXT5
10 00 04 00 = 1555
00 00 00 10 = ARGB4444
00 10 00 0C = ARGB8888
00 50 00 0C = XRGB888
00 10 00 98 = RGB888
00 10 00 05 = RGB565
00 50 00 04 = RGB555
00 10 00 02 = RGB4444
imjinjia
Posts: 29
Joined: Wed Jul 18, 2018 11:10 pm

Re: Iconoclasts PS VITA *.GXT

Post by imjinjia »

Zolodei wrote:Tell me, how to translate *.png > *.GXT?

The file itself "*.GXT".

File structure Iconoclasts GXT:
Beginning With 0x0
0 4 SizeFilesGXT
4 ? FilesGXT
? ? UnknownDATA

How did you unpack Assets.dat?
Zolodei
Posts: 36
Joined: Sat Sep 16, 2017 6:34 pm

Re: Iconoclasts PS VITA *.GXT

Post by Zolodei »

Dismantled the format, and then wrote the program.