Page 1 of 1
TXM to TGA?
Posted: Thu Feb 01, 2007 6:13 am
by Darkfox
I'm modding an old game (Die By The Sword) and planned to make a player variant of a training dummy just for fun to find out this fellow has TXMs instead of the regularly used TGA or BMP. TXM is a type of obsolete texture use for the old version of the game and is uncompressed. Would it be possible to convert the TXM format listed below to a format like the TGA it uses (also listed)?
Posted: Thu Feb 01, 2007 2:16 pm
by Xela
Your picture easily oppens as 8 bit RAW 256x256 and 36 bytes header. I do not think I see any information about palette there. Unless that hex 20 on the begining of the file stands for something? There must be in other files of the game some palette file.
Posted: Fri Feb 02, 2007 12:45 am
by Darkfox
Thank you for the info. I'll see if I can find the pallete data. If I do find it it should be very possible correct?
Posted: Fri Feb 02, 2007 12:53 am
by Darkfox
Alright, I found palette data in the trainer stage. This is the one it uses I believe.
Posted: Fri Feb 02, 2007 2:52 am
by Xela
PMView
http://www.pmview.com/ will do the trick.
Load TXB as RAW (256x256 8bit in Photoshop or other) then save to 24bit RGB, and then open it in PMView while loading IFF palette. It will save the result to TGA as desired.
Not sure though if the palette indicated by you was the right one because the picture was not too colorful. But that was some old game, was it not ?
Posted: Fri Feb 02, 2007 6:20 am
by Darkfox
Was it brownish?
Posted: Fri Feb 02, 2007 2:19 pm
by Xela
Brownish/bluish.

Posted: Sat Feb 03, 2007 4:17 am
by Darkfox
Open it as raw in PMView?
Posted: Sun Feb 04, 2007 1:57 am
by Xela
Open it as raw in PMView?
No. I am afraid, PMView does not support this format. I use Photoshop to "open as" RAW. What other free and popular programs support RAW. Perhaps GIMP? If not u can always d/l trial version of Photoshop.
PMView suports IFF format with palette.
Posted: Mon Feb 05, 2007 8:42 pm
by Matsy
XNView supports RAW images afaik. It's freeware
Posted: Tue Feb 06, 2007 6:41 am
by Darkfox
And pallette files as well? Like IFF?