Help with Batch conversion of A LOT of tga files t

WrpTool island creator utility

Moderators: Lone Wolf, Snake Man

rvirding
Recruit
Posts: 34
Joined: 2004-10-06 03:43:35

Help with Batch conversion of A LOT of tga files t

Post by rvirding » 2004-11-03 23:51:26

Not really a WrpTool question but I need help.

I need help to convert a lot of tga files (over 600 in the first go) to .paa files. The reason is that we are using aerial photographs to generate ground textures over a region and you need 400 tiles for each square km. So you quickly run into large numbers.

Generating the individual tga files is easy with, say, Photoshop, but then the going gets tough, and exceedingly tedious. The conversion tools we have found require you to sit and click a number of times for each file.

Can anyone point me to a conversion tool you can run in batch file to speed things up? Any help is greatly appreciated.

OFP can handle it and results are good. Look at our website http://www.defencegaming.org under Downloads for "Computer Games as a Base for Training Simulators" where we show some screenshots. The detailed terrain there is 1x1km, the whole island is 51x51km.

User avatar
shinRaiden
Captain
Posts: 176
Joined: 2004-02-27 18:29:53

Re: Help with Batch conversion of A LOT of tga fil

Post by shinRaiden » 2004-11-04 17:54:46

Cross-linking as this is a very valuable tool.

http://www.flashpoint1985.com/cgi-bin/i ... ntry643277

http://ytti.fi/~jarkko/ofp/png2pac.rar
First, get this old tool of mine from here.

Then, just little bit of NT command prompt magic will do the trick:

Code Sample
FOR %t in (*.tga) DO png2pac %t %~nt.paa


(no, despite it's name it does not read PNG files, only 32bit uncompressed TGA.. never bothered to write proper file format support :p )
Thanks to feersum.endjin.
Last edited by shinRaiden on 1970-01-01 00:00:00, edited 1 time in total.

Who is online

Users browsing this forum: ClaudeBot [Bot] and 0 guests