PDA

View Full Version : tga converter


paradoxharbinger
January 13th, 2007, 05:09 AM
this is a little windows app i threw together to that will compress tga images to rle, thought it might be of use to people out there. it will take 24 or 32 bit non-rle and rle images and output 24 bit rle images. i suppose of there is a demand for it i could expand the functionality, but right now this suits my purposes fine.

i remember seeing somewhere that old dom2 maps sometimes used the alpha channel, though it had no in game affect, and the alpha bits were causing problems in dom3. this app will fix that problem, as it just strips out the alpha channel if it is present.

to use it, drag a supported tga (or multiple at once) onto the app. the files will be converted and saved in the same directory, with .rle.tga extension rather than .tga. other than that the names are identical, none of the old files are overwritten, deleted or modified.

hope this is useful

Gandalf Parker
January 13th, 2007, 02:45 PM
Just for clarity...
it converts a tga to a different form of tga which still works but doesnt have the alpha transparency channel?
Feel free to add a post for this to the tools stickied thread.

paradoxharbinger
January 13th, 2007, 04:57 PM
yeah thats the idea. it takes 24 bit tga, 32 bit tga, 24 bit rle tga and 32 bit rle tga and they get converted to 24 bit rle tga's.

wildshane
February 22nd, 2007, 02:29 AM
it's says the app configuration is incorrect

paradoxharbinger
February 22nd, 2007, 04:38 PM
yeah, i made that with ms visual studio, had this happen with some other apps i've made. you need to have a few dll files to run stuff developed with vs,here (http://www.microsoft.com/downloads/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en) they are

lch
March 8th, 2007, 03:38 PM
You can achieve the same results with Imagemagick, if you need a cross-system approach to change the TGAs.

Gandalf Parker
March 8th, 2007, 03:54 PM
I LOVE ImageMagick. I use it extenzively on my servers for displaying the random map sets that were regenerated each day.
Unfortunately Ive developed a bug where the RGB's turn into black squares when I try to converty them

lch
March 8th, 2007, 06:22 PM
Gandalf Parker said:
Unfortunately Ive developed a bug where the RGB's turn into black squares when I try to converty them


What exactly is the problem? I think all that you have to do is to use the "flatten" conversion to cast away the alpha channel. Maybe some more things are required, but I remember that I looked it up and it was quite simple to achieve.

Gandalf Parker
March 8th, 2007, 07:01 PM
For some reason one of my servers will convert rgb to jpg and another wont. I get a jpg but its just a black square. Both servers are Debian altho different versions. I thought it might be a library difference.

Id be interested in trying the flatten thing but I make alot of use of transparency so Im not sure if Id like the results

lch
March 8th, 2007, 07:07 PM
That flatten thing was addressing the problems that old images from Dom2 maps used to give, they had an added alpha channel which wasn't used in Dom2, but was "visible" (more like, not visible) in Dom3. Flatten should "fix" this by removing the alpha channel, IIRC.

Gandalf Parker
March 8th, 2007, 07:13 PM
Ahh yes, that does work well for converting dom2 maps