Outerra forum

Anteworld - Outerra Game => Modding: Importer, Tools & Utilities => Topic started by: deathevor on November 12, 2012, 07:47:51 pm

Title: DDS Batch Converter?
Post by: deathevor on November 12, 2012, 07:47:51 pm
Offtopic: CAn you suggest any good DDS Batch Converter?
(DDS Converter 2.1 doesn't work under Win7)

Or any simple way of using Nvidia Texture tools for DDS batch converting?
Title: Re: DDS Batch Converter?
Post by: cameni on November 13, 2012, 03:46:04 pm
Xnview (http://www.xnview.com/) has an integrated batch converter.
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 08:44:07 am
Thank you very much for your effort.
(I should really make a new topic from beginning)
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 08:57:59 am
Right, I end up with this using Xnview.

(http://img441.imageshack.us/img441/4778/screen1352901348.th.jpg) (http://img441.imageshack.us/i/screen1352901348.jpg/)
Title: Re: DDS Batch Converter?
Post by: cameni on November 14, 2012, 09:36:31 am
What target format did you use?
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 09:53:02 am
DDS - Direct Draw Surface.
(apart from that there's not much other options)
Title: Re: DDS Batch Converter?
Post by: cameni on November 14, 2012, 09:57:31 am
I see, there are fewer options available than when saving individual files :(
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 10:46:14 am
Are we talking about the same thing - XnView (not XnConvertor or anything else).
As "save as" options are the same as in batch converter.
Title: Re: DDS Batch Converter?
Post by: cameni on November 14, 2012, 10:58:14 am
My bad, sorry I have totally confused it. I'm using Xnview and Gimp, and for some reason mistook options in Gimp for saving DDS files, thinking that they were in Xnview.

There is ATI Compressonator (http://developer.amd.com/resources/archive/archived-tools/gpu-tools-archive/the-compressonator/) that was supposed to be good for batch conversion, but I have got install error when trying to install the 64bit version.
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 11:51:57 am
Then another question:

How does the proper command line looks to convert images to dds in Nvidia Texture tools.
As a simple script will make a batch converter from it.
Title: Re: DDS Batch Converter?
Post by: angrypig on November 14, 2012, 12:11:28 pm
Then another question:

How does the proper command line looks to convert images to dds in Nvidia Texture tools.
As a simple script will make a batch converter from it.

for diffuse texture: nvcompress.exe -bc1 in.tga out.dds
for normal texture: nvcompress.exe -bc5 in.tga out.dds


Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 12:17:53 pm
Nice thanks.

Should it be Tga, or it's just a sample.

Also - bc1 and bc5  difference?
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 12:28:24 pm
Nice thanks.

Should it be Tga, or it's just a sample.

Also - bc1 and bc5  difference?

UPD: Just checked readme file:

where 'infile' is and TGA, PNG, PSD, DDS or JPG file, 'outfile' is a DDS file
and 'options' is one or more of the following:


However tried to convert any of those (except TGA) and got following error - The file '1.jpg' is not a supported image type.
Title: Re: DDS Batch Converter?
Post by: deathevor on November 14, 2012, 04:19:23 pm
Ok. I did small thing that might simplify life a little bit:
It's a small "app" that will convert a whole folder of *.tga files into  *.dds.

Download:
http://www.sk-films.com/downloads/TGA%20to%20DDS%20Converter.zip


Basically it is just a *.bat file  that will read TGA folder and using Nvidia Texture Tools will convert everything to *.DDS  (BC1 option)
and store it in DDS folder.

Here's instruction for use:


(http://img17.imageshack.us/img17/8486/ddsconverter.jpg) (http://imageshack.us/photo/my-images/17/ddsconverter.jpg/)




Just in case, here's a code you'll be running:

Code: [Select]
@echo off

for %%f in (TGA/*.tga) do call :sk "%%f"
goto done

:sk
call Nvidia\nvcompress.exe  -bc1 "%~dp0/TGA/%1" "%~dp0/DDS/%~n1.dds"

:done