Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: DDS Batch Converter?  (Read 37655 times)

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
DDS Batch Converter?
« 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?
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: DDS Batch Converter?
« Reply #1 on: November 13, 2012, 03:46:04 pm »

Xnview has an integrated batch converter.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #2 on: November 14, 2012, 08:44:07 am »

Thank you very much for your effort.
(I should really make a new topic from beginning)
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #3 on: November 14, 2012, 08:57:59 am »

Right, I end up with this using Xnview.


Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: DDS Batch Converter?
« Reply #4 on: November 14, 2012, 09:36:31 am »

What target format did you use?
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #5 on: November 14, 2012, 09:53:02 am »

DDS - Direct Draw Surface.
(apart from that there's not much other options)
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: DDS Batch Converter?
« Reply #6 on: November 14, 2012, 09:57:31 am »

I see, there are fewer options available than when saving individual files :(
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #7 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.
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: DDS Batch Converter?
« Reply #8 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 that was supposed to be good for batch conversion, but I have got install error when trying to install the 64bit version.
Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #9 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.
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

angrypig

  • Sr. Member
  • ****
  • Posts: 454
Re: DDS Batch Converter?
« Reply #10 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


Logged

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #11 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?
« Last Edit: November 14, 2012, 12:21:27 pm by deathevor »
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #12 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.
« Last Edit: November 14, 2012, 12:36:15 pm by deathevor »
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com

deathevor

  • Sr. Member
  • ****
  • Posts: 265
  • User
    • Sk-Films
Re: DDS Batch Converter?
« Reply #13 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:







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
« Last Edit: November 14, 2012, 04:51:53 pm by deathevor »
Logged
VFx Artist/Supervisor, Private Pilot - www.sk-films.com