Important information: this site is currently scheduled to go offline indefinitely by end of the year.

TXM to TGA?

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

TXM to TGA?

Post 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)?
You do not have the required permissions to view the files attached to this post.
Xela
VIP member
VIP member
Posts: 225
Joined: Sun Jul 31, 2005 4:12 am
Been thanked: 1 time

Post 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.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post 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?
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

Alright, I found palette data in the trainer stage. This is the one it uses I believe.
You do not have the required permissions to view the files attached to this post.
Xela
VIP member
VIP member
Posts: 225
Joined: Sun Jul 31, 2005 4:12 am
Been thanked: 1 time

Post 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 ?
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

Was it brownish?
Xela
VIP member
VIP member
Posts: 225
Joined: Sun Jul 31, 2005 4:12 am
Been thanked: 1 time

Post by Xela »

Brownish/bluish. :)
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

Open it as raw in PMView?
Xela
VIP member
VIP member
Posts: 225
Joined: Sun Jul 31, 2005 4:12 am
Been thanked: 1 time

Post 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.
Matsy
beginner
Posts: 20
Joined: Mon Aug 21, 2006 8:12 am

Post by Matsy »

XNView supports RAW images afaik. It's freeware
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

And pallette files as well? Like IFF?
Post Reply