Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.06 KB | None | 0 0
  1. Version 8.30
  2. NVDXT
  3. This program
  4. compresses images
  5. creates normal maps from color or alpha
  6. creates DuDv map
  7. creates cube maps
  8. writes out .dds file
  9. does batch processing
  10. reads .tga, .bmp, .gif, .ppm, .jpg, .tif, .cel, .dds, .png, .psd, .rgb, *.bw and .rgba
  11. filters MIP maps
  12.  
  13. Options:
  14. -profile <profile name> : Read a profile created from the Photoshop plugin
  15. -quick : use fast compression method
  16. -quality_normal : normal quality compression
  17. -quality_production : production quality compression
  18. -quality_highest : highest quality compression (this can be very slow)
  19. -rms_threshold <int> : quality RMS error. Above this, an extensive search is performed.
  20. -prescale <int> <int>: rescale image to this size first
  21. -rescale <nearest | hi | lo | next_lo>: rescale image to nearest, next highest or next lowest power of two
  22. -rel_scale <float, float> : relative scale of original image. 0.5 is half size Default 1.0, 1.0
  23.  
  24. Optional Filtering for rescaling. Default cube filter:
  25. -RescalePoint
  26. -RescaleBox
  27. -RescaleTriangle
  28. -RescaleQuadratic
  29. -RescaleCubic
  30. -RescaleCatrom
  31. -RescaleMitchell
  32. -RescaleGaussian
  33. -RescaleSinc
  34. -RescaleBessel
  35. -RescaleHanning
  36. -RescaleHamming
  37. -RescaleBlackman
  38. -RescaleKaiser
  39. -clamp <int, int> : maximum image size. image width and height are clamped
  40. -clampScale <int, int> : maximum image size. image width and height are scaled
  41. -window <left, top, right, bottom> : window of original window to compress
  42. -nomipmap : don't generate MIP maps
  43. -nmips <int> : specify the number of MIP maps to generate
  44. -rgbe : Image is RGBE format
  45. -dither : add dithering
  46. -sharpenMethod <method>: sharpen method MIP maps
  47. <method> is
  48. None
  49. Negative
  50. Lighter
  51. Darker
  52. ContrastMore
  53. ContrastLess
  54. Smoothen
  55. SharpenSoft
  56. SharpenMedium
  57. SharpenStrong
  58. FindEdges
  59. Contour
  60. EdgeDetect
  61. EdgeDetectSoft
  62. Emboss
  63. MeanRemoval
  64. UnSharp <radius, amount, threshold>
  65. XSharpen <xsharpen_strength, xsharpen_threshold>
  66. Custom
  67. -pause : wait for keyboard on error
  68. -flip : flip top to bottom
  69. -timestamp : Update only changed files
  70. -list <filename> : list of files to convert
  71. -cubeMap : create cube map .
  72. Cube faces specified with individual files with -list option
  73. positive x, negative x, positive y, negative y, positive z, negative z
  74. Use -output option to specify filename
  75. Cube faces specified in one file. Use -file to specify input filename
  76.  
  77. -volumeMap : create volume texture.
  78. Volume slices specified with individual files with -list option
  79. Use -output option to specify filename
  80. Volume specified in one file. Use -file to specify input filename
  81.  
  82. -all : all image files in current directory
  83. -outdir <directory>: output directory
  84. -deep [directory]: include all subdirectories
  85. -outsamedir : output directory same as input
  86. -overwrite : if input is .dds file, overwrite old file
  87. -forcewrite : write over readonly files
  88. -file <filename> : input file to process. Accepts wild cards
  89. -output <filename> : filename to write to [-outfile can also be specified]
  90. -append <filename_append> : append this string to output filename
  91. -8 <dxt1c | dxt1a | dxt3 | dxt5 | u1555 | u4444 | u565 | u8888 | u888 | u555 | L8 | A8> : compress 8 bit images with this format
  92. -16 <dxt1c | dxt1a | dxt3 | dxt5 | u1555 | u4444 | u565 | u8888 | u888 | u555 | A8L8> : compress 16 bit images with this format
  93. -24 <dxt1c | dxt1a | dxt3 | dxt5 | u1555 | u4444 | u565 | u8888 | u888 | u555> : compress 24 bit images with this format
  94. -32 <dxt1c | dxt1a | dxt3 | dxt5 | u1555 | u4444 | u565 | u8888 | u888 | u555> : compress 32 bit images with this format
  95.  
  96. -swapRB : swap rb
  97. -swapRG : swap rg
  98. -gamma <float value>: gamma correcting during filtering
  99. -outputScale <float, float, float, float>: scale the output by this (r,g,b,a)
  100. -outputBias <float, float, float, float>: bias the output by this amount (r,g,b,a)
  101. -outputWrap : wraps overflow values modulo the output format
  102. -inputScale <float, float, float, float>: scale the inpput by this (r,g,b,a)
  103. -inputBias <float, float, float, float>: bias the input by this amount (r,g,b,a)
  104. -binaryalpha : treat alpha as 0 or 1
  105. -alpha_threshold <byte>: [0-255] alpha reference value
  106. -alphaborder : border images with alpha = 0
  107. -alphaborderLeft : border images with alpha (left) = 0
  108. -alphaborderRight : border images with alpha (right)= 0
  109. -alphaborderTop : border images with alpha (top) = 0
  110. -alphaborderBottom : border images with alpha (bottom)= 0
  111. -fadeamount <int>: percentage to fade each MIP level. Default 15
  112. -fadecolor : fade map (color, normal or DuDv) over MIP levels
  113. -fadetocolor <hex color> : color to fade to
  114. -custom_fade <n> <n fadeamounts> : set custom fade amount. n is number number of fade amounts. fadeamount are [0,1]
  115. -fadealpha : fade alpha over MIP levels
  116. -fadetoalpha <byte>: [0-255] alpha to fade to
  117. -border : border images with color
  118. -bordercolor <hex color> : color for border
  119. -force4 : force DXT1c to use always four colors
  120. -weight <float, float, float>: Compression weightings for R G and B
  121. -luminance : convert color values to luminance for L8 formats
  122. -greyScale : Convert to grey scale
  123. -greyScaleWeights <float, float, float, float>: override greyscale conversion weights of (0.3086, 0.6094, 0.0820, 0)
  124. -brightness <float, float, float, float>: per channel brightness. Default 0.0 usual range [0,1]
  125. -contrast <float, float, float, float>: per channel contrast. Default 1.0 usual range [0.5, 1.5]
  126.  
  127. Texture Format Default DXT3:
  128. -dxt1c : DXT1 (color only)
  129. -dxt1a : DXT1 (one bit alpha)
  130. -dxt3 : DXT3
  131. -dxt5 : DXT5n
  132. -u1555 : uncompressed 1:5:5:5
  133. -u4444 : uncompressed 4:4:4:4
  134. -u565 : uncompressed 5:6:5
  135. -u8888 : uncompressed 8:8:8:8
  136. -u888 : uncompressed 0:8:8:8
  137. -u555 : uncompressed 0:5:5:5
  138. -p8c : paletted 8 bit (256 colors)
  139. -p8a : paletted 8 bit (256 colors with alpha)
  140. -p4c : paletted 4 bit (16 colors)
  141. -p4a : paletted 4 bit (16 colors with alpha)
  142. -a8 : 8 bit alpha channel
  143. -cxv8u8 : normal map format
  144. -v8u8 : EMBM format (8, bit two component signed)
  145. -v16u16 : EMBM format (16 bit, two component signed)
  146. -A8L8 : 8 bit alpha channel, 8 bit luminance
  147. -fp32x4 : fp32 four channels (A32B32G32R32F)
  148. -fp32 : fp32 one channel (R32F)
  149. -fp16x4 : fp16 four channels (A16B16G16R16F)
  150. -dxt5nm : dxt5 style normal map
  151. -3Dc : 3DC
  152. -g16r16 : 16 bit in, two component
  153. -g16r16f : 16 bit float, two components
  154.  
  155. Mip Map Filtering Options. Default box filter:
  156. -Point
  157. -Box
  158. -Triangle
  159. -Quadratic
  160. -Cubic
  161. -Catrom
  162. -Mitchell
  163. -Gaussian
  164. -Sinc
  165. -Bessel
  166. -Hanning
  167. -Hamming
  168. -Blackman
  169. -Kaiser
  170.  
  171. ***************************
  172. To make a normal or dudv map, specify one of
  173. -n4 : normal map 4 sample
  174. -n3x3 : normal map 3x3 filter
  175. -n5x5 : normal map 5x5 filter
  176. -n7x7 : normal map 7x7 filter
  177. -n9x9 : normal map 9x9 filter
  178. -dudv : DuDv
  179.  
  180. and source of height info:
  181. -alpha : alpha channel
  182. -rgb : average rgb
  183. -biased : average rgb biased
  184. -red : red channel
  185. -green : green channel
  186. -blue : blue channel
  187. -max : max of (r,g,b)
  188. -colorspace : mix of r,g,b
  189.  
  190. -norm : normalize mip maps (source is a normal map)
  191.  
  192. -toHeight : create a height map (source is a normal map)
  193.  
  194.  
  195. Normal/DuDv Map dxt:
  196. -aheight : store calculated height in alpha field
  197. -aclear : clear alpha channel
  198. -awhite : set alpha channel = 1.0
  199. -scale <float> : scale of height map. Default 1.0
  200. -wrap : wrap texture around. Default off
  201. -minz <int> : minimum value for up vector [0-255]. Default 0
  202.  
  203. ***************************
  204. To make a depth sprite, specify:
  205. -depth
  206.  
  207. and source of depth info:
  208. -alpha : alpha channel
  209. -rgb : average rgb (default)
  210. -red : red channel
  211. -green : green channel
  212. -blue : blue channel
  213. -max : max of (r,g,b)
  214. -colorspace : mix of r,g,b
  215.  
  216. Depth Sprite dxt:
  217. -aheight : store calculated depth in alpha channel
  218. -aclear : store 0.0 in alpha channel
  219. -awhite : store 1.0 in alpha channel
  220. -scale <float> : scale of depth sprite (default 1.0)
  221. -alpha_modulate : multiplies color by alpha during filtering
  222. -pre_modulate : multiplies color by alpha before processing
  223.  
  224.  
  225. Examples
  226. nvdxt -cubeMap -list cubemapfile.lst -output cubemap.dds
  227. nvdxt -cubeMap -file cubemapfile.tga
  228. nvdxt -file test.tga -dxt1c
  229. nvdxt -file *.tga
  230. nvdxt -file c:\temp\*.tga
  231. nvdxt -file temp\*.tga
  232. nvdxt -file height_field_in_alpha.tga -n3x3 -alpha -scale 10 -wrap
  233. nvdxt -file grey_scale_height_field.tga -n5x5 -rgb -scale 1.3
  234. nvdxt -file normal_map.tga -norm
  235. nvdxt -file image.tga -dudv -fade -fadeamount 10
  236. nvdxt -all -dxt3 -gamma -outdir .\dds_dir -time
  237. nvdxt -file *.tga -depth -max -scale 0.5
  238. Send comments, bug fixes and feature requests to texturetools@nvidia.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement