Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Oct 20, 2018 3:19 pm

All times are UTC

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 27, 2018 11:11 pm 

Joined: Fri Mar 10, 2017 7:23 am
Posts: 53
I need help to convert the TGS texture packs into readable format, preferably tga or own PS2's tm2 because I wanted the alpha channels of those textures still intact.

Here's both samples, in palletized textures (8bpp) and the 32bpp ones

aya00.rar [187.31 KiB]
Downloaded 42 times

le_05h.rar [722.49 KiB]
Downloaded 41 times

PostPosted: Sat Mar 31, 2018 3:01 pm 

Joined: Fri Oct 27, 2017 7:36 pm
Posts: 98

the 32bit rgba are tiles you could raw haxor and puzzle yourself. 0x08 has the number of tiles. 0x14 the offset to the tile array. in the array you have the offsets to the tile headers. the tile headers are 128 bytes long (to skip). at 0x50 and 0x54 of the headers you have the width and height of the tiles. format obviously rgba with ps2 typical mid alpha (you could ignore). you could just remove the tgs header and tile headers and copy paste the 12 tiles (256x256) in raw rgb(a). alpha seems irrelevant.

will see what i can do with the other file. problem at hand is it's a multichunk file and gotta be deswizzled (i only got noesis for this). gotta dump a temporary format for noesis. the not so obvious problem is some tiles/textures have multiple palette iterations. gotta find where the counter to iterate is.

edit: if you wanna raw foo it, you could do it with console texture explorer.


the offsets are all there. you just need to skip ahead to the next palette iteration if the image tiles seem to be palette data. if you need this lil helper to detect multi-pals, you can raw it in irfan view with 32x2280 in 32bit mode. this is nuts to try to auto with a script. the pal headers have some numbers, but...

note: you can extract the alphas using the texture explorer's alpha mode.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited