|
|
|
|
|
January 13th, 2007, 05:09 AM
|
|
Sergeant
|
|
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
tga converter
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
|
January 13th, 2007, 02:45 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
January 13th, 2007, 04:57 PM
|
|
Sergeant
|
|
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
February 22nd, 2007, 02:29 AM
|
Private
|
|
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: tga converter
it's says the app configuration is incorrect
|
February 22nd, 2007, 04:38 PM
|
|
Sergeant
|
|
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
March 8th, 2007, 03:38 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: tga converter
You can achieve the same results with Imagemagick, if you need a cross-system approach to change the TGAs.
|
March 8th, 2007, 03:54 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
March 8th, 2007, 06:22 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
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.
|
March 8th, 2007, 07:01 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
March 8th, 2007, 07:07 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
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.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|