.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old January 13th, 2007, 05:09 AM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default 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
Attached Files
File Type: zip 486944-torle.zip (17.1 KB, 147 views)
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #2  
Old January 13th, 2007, 02:45 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #3  
Old January 13th, 2007, 04:57 PM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default 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.
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #4  
Old February 22nd, 2007, 02:29 AM

wildshane wildshane is offline
Private
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
wildshane is on a distinguished road
Default Re: tga converter

it's says the app configuration is incorrect
Reply With Quote
  #5  
Old February 22nd, 2007, 04:38 PM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default 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
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #6  
Old March 8th, 2007, 03:38 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: tga converter

You can achieve the same results with Imagemagick, if you need a cross-system approach to change the TGAs.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #7  
Old March 8th, 2007, 03:54 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #8  
Old March 8th, 2007, 06:22 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #9  
Old March 8th, 2007, 07:01 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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!)
Reply With Quote
  #10  
Old March 8th, 2007, 07:07 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:40 AM.


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