Anteworld - Outerra Game > Modding: Importer, Tools & Utilities
DDS Batch Converter?
angrypig:
--- Quote from: 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.
--- End quote ---
for diffuse texture: nvcompress.exe -bc1 in.tga out.dds
for normal texture: nvcompress.exe -bc5 in.tga out.dds
deathevor:
Nice thanks.
Should it be Tga, or it's just a sample.
Also - bc1 and bc5 difference?
deathevor:
--- Quote from: 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?
--- End quote ---
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.
deathevor:
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:
Just in case, here's a code you'll be running:
--- Code: ---@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
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version