Extracting bitmaps from a (compressed?) file (Gamecube game)

Post Reply
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Tue Dec 08, 2015 12:16 pm

No need anymore.
Last edited by Fedor on Wed Jun 08, 2016 12:43 am, edited 1 time in total.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by emu_kidid » Wed Dec 09, 2015 12:51 am

Upload what you believe is a "compressed" image on here in a zip file and someone will be able to work it out. You say they're just .bmp on PS2, but on GameCube they might be TPL.
Image
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Wed Dec 09, 2015 9:55 am

files are deleted
Last edited by Fedor on Wed Jun 08, 2016 12:44 am, edited 1 time in total.
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Wed Dec 09, 2015 6:42 pm

files deleted
Last edited by Fedor on Wed Jun 08, 2016 12:46 am, edited 1 time in total.
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by tueidj » Thu Dec 10, 2015 3:37 am

Gonna take a wild guess here: if you've got two identically sized files and the PS2 version can be opened and the NGC version can't, the tool you're using probably can't handle big-endian data.
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Wed May 11, 2016 3:11 am

no need anymore
Last edited by Fedor on Wed Jun 08, 2016 12:47 am, edited 1 time in total.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by emu_kidid » Wed May 11, 2016 4:05 am

I had a quick look, the .txs sfiles need to be flipped every 4 bytes as you've discovered. When you then run it through the Texture tool, the files that come out the other end are incorrect as you say, most likely because the format the decompressed files store the data in is GameCube specific rather than just 8-bit per pixel bitmap data.

It looks like the texture tool has some smarts to it because it correctly recognises that the GameCube format is different and tries to produce a 4-bit per pixel bitmap image. If someone with a bit of time can be bothered, and if you are able to get the source code from the texture tool, this will probably be fairly easy to do.
Image
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Thu May 12, 2016 5:28 am

files deleted
Last edited by Fedor on Wed Jun 08, 2016 12:47 am, edited 2 times in total.
novenary
Posts: 1754
Joined: Mon Dec 30, 2013 7:50 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by novenary » Thu May 12, 2016 6:25 am

Dolphin can only extract and replace textures once the game's own logic has decoded them. Wouldn't be useful on hardware
Fedor
Posts: 7
Joined: Tue Dec 08, 2015 10:51 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by Fedor » Thu May 12, 2016 6:36 am

no need
Last edited by Fedor on Wed Jun 08, 2016 12:48 am, edited 1 time in total.
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Extracting bitmaps from a (compressed?) file (Gamecube game)

Post by tueidj » Thu May 12, 2016 10:37 am

The textures are probably compressed, indexed or low bit depth and getting converted to RGB32 before being dumped as bitmaps.
Post Reply