HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: DDS all images in a directory (right click)  (Read 2256 times)

creativityheaven

  • World Owners
  • ****
  • Posts: 156
    • View Profile
DDS all images in a directory (right click)
« on: Jan 13, 14, 12:00:10 PM »

https://developer.nvidia.com/legacy-texture-tools

Get DDS utilities.

Using Context Menu Editor 1.1, run as administrator:

On the "Add" page, click "Browse"; and after "Path", select C:\Program Files (x86)\NVIDIA Corporation\DDS Utilities\nvdxt.exe

It'll automatically use the icon for that program.

Then click the text input box next to path and copy and paste this:

cmd /c "for %%f IN (*.tga *.bmp *.gif *.ppm *.jpg *.tif *.cel *.png *.psd *.rgb *.bw *.rgba) DO start /b cmd /c "nvdxt -file %%f -outdir %%f_TEMPDIR & move %%f_TEMPDIR\*.dds . & rmdir /Q %%f_TEMPDIR""

It'll automatically create a temp directory for each image, create a copy therein, then run dds on that copy, and then move the result back into the present directory.

If you just use the -all option, it's not multithreaded. And if you try to multithread it, all the threads will attempt to share the same temp file, and everything will go haywire. The only way to multithread it is to create a copy of each imagine in another directory, and apply the tool there.
« Last Edit: May 03, 14, 10:36:52 AM by creativityheaven »
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: DDS all images in a directory (right click)
« Reply #1 on: Jan 13, 14, 02:35:22 PM »

Do you know what DTX setting or compression this uses?
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile
Re: DDS all images in a directory (right click)
« Reply #2 on: Jan 14, 14, 12:26:59 PM »

If you have Photoshop, automation is an easy way to go also.
Logged