.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   tga converter (http://forum.shrapnelgames.com/showthread.php?t=32789)

paradoxharbinger January 13th, 2007 05:09 AM

tga converter
 
1 Attachment(s)
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

Re: tga converter
 
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

Re: tga converter
 
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

Re: tga converter
 
it's says the app configuration is incorrect

paradoxharbinger February 22nd, 2007 04:38 PM

Re: tga converter
 
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 they are

lch March 8th, 2007 03:38 PM

Re: tga converter
 
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

Re: tga converter
 
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

Re: tga converter
 
Quote:

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

Re: tga converter
 
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

Re: tga converter
 
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.


All times are GMT -4. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.