Extracting bitmaps from a (compressed?) file (Gamecube game)
Extracting bitmaps from a (compressed?) file (Gamecube game)
No need anymore.
Last edited by Fedor on Wed Jun 08, 2016 12:43 am, edited 1 time in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
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](http://www.gc-forever.com/files/emusig.jpg)
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
files are deleted
Last edited by Fedor on Wed Jun 08, 2016 12:44 am, edited 1 time in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
files deleted
Last edited by Fedor on Wed Jun 08, 2016 12:46 am, edited 1 time in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
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.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
no need anymore
Last edited by Fedor on Wed Jun 08, 2016 12:47 am, edited 1 time in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
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.
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](http://www.gc-forever.com/files/emusig.jpg)
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
files deleted
Last edited by Fedor on Wed Jun 08, 2016 12:47 am, edited 2 times in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
Dolphin can only extract and replace textures once the game's own logic has decoded them. Wouldn't be useful on hardware
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
no need
Last edited by Fedor on Wed Jun 08, 2016 12:48 am, edited 1 time in total.
Re: Extracting bitmaps from a (compressed?) file (Gamecube game)
The textures are probably compressed, indexed or low bit depth and getting converted to RGB32 before being dumped as bitmaps.