It is currently Fri, 15-12-17, 21:39 GMT

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Wed, 24-10-07, 14:28 GMT 
Offline
User avatar

Joined: Sun, 21-10-07, 5:43 GMT
Posts: 21
Location: Minnesota, USA
Hi all,

Does anybody know if converting PNG files to DXT5NM via NVDXT, is any different than converting with NVCOMPRESS from the new Nvidia texture tools. With NVDXT I can convert a whole folder to DDS then rename to DXT5nm. With NVCOMPRESS, I only know how to convert one file at a time. I'm probably using the wrong syntax, but here are a few examples I've tried:

Code:
C:\Documents and Settings\Ozark\Desktop\New Folder>nvcompress -nomips -bc3n tx_0_0.png tx_0_0.dxt5nm
time taken: 0.329 seconds


then when I try to do more than one file i get this:

Code:
C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n *png *dxt5nm
The file '*png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n *.png *.dxt5nm
The file '*.png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n <*.png> *.dxt5nm
The filename, directory name, or volume label syntax is incorrect.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n "*".png "*".dxt5nm
The file '*.png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n "*"png "*"dxt5nm
The file '*png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n -out "*"dxt5nm
The file '*dxt5nm' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n -outfile "*"dxt5nm
The file '*dxt5nm' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n "*png" *dxt5nm
The file '*png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n "*png" "*dxt5nm"
The file '*png' is not a supported image type.

C:\Program Files\Celestia\textures\hires\Srtm\level1>nvcompress -nomips -bc3n "*.png" "*.dxt5nm"
The file '*.png' is not a supported image type.


I don't know what else to try. :? :oops:

Ozark

_________________
Celestia 1.6 4GHZ E6550
4GB DDR3 ram
Windows XP
512 GeForce GTS 250 - NVIDIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 24-10-07, 15:39 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4514
Location: Hamburg, Germany
Ozark,

of course you can use the old NVDXT tools. But the whole point of the new nvcompress tool is of course the considerably better compression quality (based on the SQUISH algorithm), notably also as to DXT5nm! The price is clearly execution speed of nvcompress. Unfortunately, the binary version for download at the NVIDIA side, did not activate the advanced sse2 option that increases the performance of nvcompress by big factors!

As to the conversion of whole directories with nvcompress, this just requires practical knowledge of the Windows console commands, or more elegantly using CYGWIN under Windows. Under Linux or MAC OSX, such console operations are a trivial task anyway. In any case, one best arranges the task in a little .bat script, since also the file ending (.dds -> .dxt5nm) has to be renamed in case of normalmaps.

It is amusing to see that the proper DOS commands and .bat scripting tend to be forgotten these days among Windows users.

As soon as I find some time, I'll write a few lines about how to to this.

Bye Fridger

_________________
Image


Last edited by t00fri on Wed, 24-10-07, 23:59 GMT, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed, 24-10-07, 23:33 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4514
Location: Hamburg, Germany
Ozark,

as promised, here comes a 1 line example of how to do the conversion of all your .png files e.g. in DXT1 files with nvcompress.

Use your favored editor and open a batch file, called e.g. run.bat

run.bat just needs a single command line

----------------run.bat-------------
for %%x in (tx*.png) do nvcompress -nocuda -bc1 %%x
-------------------------------------

save that bat file in the directory where your .png tiles are.

Then at the command prompt type

> run.bat

That's it. Just wait until everything is finished.

There are more ways, of course... I am sure DW finds a few more, too ;-)


Bye Fridger

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 24-10-07, 23:51 GMT 
Offline
User avatar

Joined: Sat, 13-10-07, 18:18 GMT
Posts: 373
t00fri wrote:
Ozark,

Use your favored editor and open a batch file, called e.g. run.bat

run.bat just needs a single command line

----------------run.bat-------------
for %%x in (tx*.png) do nvcompress -nocuda -bc1 %%x
-------------------------------------

save that bat file in the directory where your .png tiles are.

Then at the command prompt type

> run.bat

Bye Fridger


You're going to create a brand-new batch of texture-generating fools
if you keep THIS stuff up. :wink: Even us brain-dead types can do
this kind of work.

Thanks again Good Doctor... Great Stuff from Celestial Matters.

_________________
Brain-Dead Geezer Bob
Windows 8.1 Home Premium
AMD A8-5500 APU with Radeon HD Graphics
8.00 GB RAM, 64-bit Operating System
HP Hardware


Top
 Profile  
 
 Post subject:
PostPosted: Thu, 25-10-07, 2:39 GMT 
Offline
User avatar

Joined: Sun, 21-10-07, 5:43 GMT
Posts: 21
Location: Minnesota, USA
Fridger,

Much appreciated!

Ozark

_________________
Celestia 1.6 4GHZ E6550
4GB DDR3 ram
Windows XP
512 GeForce GTS 250 - NVIDIA


Top
 Profile  
 
 Post subject:
PostPosted: Sat, 23-02-08, 3:10 GMT 
Offline

Joined: Thu, 21-02-08, 23:26 GMT
Posts: 16
I just did a test of nvconvert with and without CUDA on Q6600/8800GTX
I converted 513 tiles with 213 MB from png to dxt1
with CUDA : 2 min 50 sec
without CUDA : 8 min 35 sec

Thats three times faster.
The times per tile are even 5.3 times faster.
I don´t know if it should be more but it´s nice that it works out of the box and better than without CUDA.

Jörg


Top
 Profile  
 
 Post subject:
PostPosted: Sun, 24-02-08, 8:36 GMT 
Offline
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4514
Location: Hamburg, Germany
Aha, that's interesting! Thanks for your report. I still have a pretty old NVIDIA card, hence CUDA has no effect.

The question is how your XP x64 interferes with x64 or could be possibly improved by optimization of the binary executable for x64. Moreover I found that a recompilation and setting of sse and sse2 options gives a much larger speedup. These options are NOT activated in the standard NVIDIA binary download.

F.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group