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 » Thu Feb 01, 2007 6:13 am

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 » Thu Feb 01, 2007 2:16 pm

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 » Fri Feb 02, 2007 12:45 am

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 » Fri Feb 02, 2007 12:53 am

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 » Fri Feb 02, 2007 2:52 am

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 » Fri Feb 02, 2007 6:20 am

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 » Fri Feb 02, 2007 2:19 pm

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 » Sat Feb 03, 2007 4:17 am

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 » Sun Feb 04, 2007 1:57 am

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 » Mon Feb 05, 2007 8:42 pm

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 » Tue Feb 06, 2007 6:41 am

And pallette files as well? Like IFF?

Post Reply