Maintenance

left wtiny

Maintenance

“Say. That’s an interesting Dwemer piece you have there. What can you tell me about it?

It is requested that this article, or a section of this article, be expanded.

Link to original

About

Infobox

PNGtoDDSTextureScripts

Caption

center
StaticNation’s Nexus Mods avatar.
(image source)

Details

PNGtoDDSTextureScripts by StaticNation are a set of Python scripts for use with NVIDIA Texture Tools 3 when batch converting PNG textures to DDS.

Usage

See Gigapixel Texture-Upscaling Tutorial.

this is used to detect the alpha channels and sorts out pngs with alphas and those without so they can be converted to BC1 and BC3 as needed
the convert_images.py script is not recursive so you have to run it on each folder
there is a second script for normal maps etc which is recursive and converts everything to BC1 (convert_maps.py)
the batch files allow drag and drop of files

everything is set up to use a Kaiser filter for the mip maps as it gives really nice results and prevents things from seeming blurry from a distance in game in the batch files
these are the CLI settings

nvcompress -color -mipfilter kaiser -bc1 "%input%" "%output%"
`nvcompress -color -mipfilter kaiser -bc3 "%input%" "%output%"`

the python scripts have lines with where you need to put in the paths, these are commented in the files

‘convert_images.py’ lines 26, 27, 57 and convert_maps.py lines 31, 34

use my scripts to convert to DDS because it allows me to set the mip map filters and color correction (the scripts apply the correct BC1 and BC3 DDS types with detection of if there is alpha channels in the png) while using CUDA to save on processing time1

Footnotes

  1. StaticNation, Discord, Morrowind Modding Community, October 12, 2024