You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> |**Tutorial Files**| Any vanilla Morrowind textures will do |
32
32
>
33
33
> %% embed download link to tutorial files if applicable %%
@@ -38,26 +38,36 @@ This step-by-step tutorial describes a workflow for upscaling textures with AI,
38
38
39
39
By the end of this tutorial, you should be able to:
40
40
41
-
1. Convert textures in bulk from TGM/DDS format to PNG, ready to be upscaled.
41
+
1. Convert textures in bulk from TGA/DDS format to PNG, ready to be upscaled.
42
42
2. Upscale textures using Gigapixel 7
43
43
3. Optionally generate normal maps and specular maps using [[normalmap-generator|NormalmapGenerator]].
44
44
4. Convert the upscaled textures back to the appropriate DDS format using [[nvidia-texture-tools|NVIDIA Texture Tools 3]] via Python batch scripts
45
45
46
46
### Prerequisites
47
47
48
+
The tools outlined here are required in order to follow this tutorial. Several of these have equivalent tools which could be used instead by experienced users. However, this tutorial will assume the user is using the tools described below.
49
+
48
50
#### Gigapixel 7
49
51
50
52
Gigapixel 7 (personal) is required. Theoretically the trial version will suffice, but any output textures processed by it will have a watermark applied to them. Gigapixel Pro will also work, but it is more than is necessary.
51
53
52
54
#### XnConvert
53
55
54
-
[XnConvert](https://www.xnview.com/en/xnconvert/) will be used to convert the original textures from DDS or TGM into DDS format in bulk. Equivalent batch image converters can be used instead, but the tutorial will assume usage of XnConvert.
56
+
[XnConvert](https://www.xnview.com/en/xnconvert/) will be used to convert the original textures from DDS or TGA into DDS format in bulk. Equivalent batch image converters can be used instead. If only working on a handful of textures, even [[gimp|Gimp]] or [[photoshop|Photoshop]] will suffice, but these are not suitable for batch processing large amounts of images.
57
+
58
+
#### NVIDIA Texture Tools 3
59
+
60
+
[[nvidia-texture-tools|NTT3]] is used for converting the Gigapixel-upscaled textures to the appropriate DDS format. NTT3 must be used, as opposed to [[nvidia-texture-tools|NVIDIA Texture Tools]], because PNGtoDDSTextureScripts utilizes NTT3's API.
61
+
62
+
#### Python + PIL
63
+
64
+
[Python](https://www.python.org/downloads/) is required in order to run the PNGtoDDSTextureScripts used for processing the textures through NTT3.
55
65
56
-
#### Python
66
+
In addition, the scripts utilize [PIL](https://pillow.readthedocs.io/en/stable/), which can be installed via [pip](https://pypi.org/project/pip/).
57
67
58
-
This is required in order to run BAT files used for processing the textures through NTT3.
description: PNGtoDDSTextureScripts by StaticNation are a set of Python scripts for use with NVIDIA Texture Tools 3 when batch converting PNG textures to DDS.
**PNGtoDDSTextureScripts** by StaticNation are a set of Python scripts for use with [[nvidia-texture-tools|NVIDIA Texture Tools 3]] when batch converting PNG textures to DDS.
34
+
35
+
## Usage
36
+
37
+
See [[gigapixel-texture-upscale-tutorial|Gigapixel Texture-Upscaling Tutorial]].
38
+
39
+
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
40
+
the convert_images.py script is not recursive so you have to run it on each folder
41
+
there is a second script for normal maps etc which is recursive and converts everything to BC1 (convert_maps.py)
42
+
the batch files allow drag and drop of files
43
+
44
+
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
45
+
these are the CLI settings
46
+
47
+
```python
48
+
nvcompress -color -mipfilter kaiser -bc1 "%input%""%output%"
49
+
```
50
+
51
+
```python
52
+
`nvcompress -color -mipfilter kaiser -bc3 "%input%""%output%"`
53
+
```
54
+
55
+
the python scripts have lines with where you need to put in the paths, these are commented in the files
56
+
57
+
'convert_images.py' lines 26, 27, 57 and convert_maps.py lines 31, 34
58
+
59
+
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 time[^1]
60
+
61
+
[^1]: [StaticNation, Discord, Morrowind Modding Community, October 12, 2024](https://discordapp.com/channels/210394599246659585/976440577044402217/1294416067653009480)
0 commit comments