Thanks you very much for this stuff.
I already use texconv inside the FSW plugin but in some cases (texture folder dnot at the right place), it hangs. With this BAT, it is possible to solve theses bad cases.
Did you know if it is possible to do the opposite and to obtain useable textures under MSFS ?
I have some texture that fspackagetools cann't or doesn't convert in DDS and no explication in the ConsoleLog. I have modify your BAT in order to produce DDS: it run OK but the result is strange ...
Of course, I can test under MSFS but it will take several tests to find the right parameters so if you had a track this would be a plus
What I test:
texconv.exe -r:keep input\*.png -o output -f:rgba -ft:dds
But we can use a lot of format:
<format>: R32G32B32A32_FLOAT R32G32B32A32_UINT R32G32B32A32_SINT
R32G32B32_FLOAT R32G32B32_UINT R32G32B32_SINT R16G16B16A16_FLOAT
R16G16B16A16_UNORM R16G16B16A16_UINT R16G16B16A16_SNORM
R16G16B16A16_SINT R32G32_FLOAT R32G32_UINT R32G32_SINT
R10G10B10A2_UNORM R10G10B10A2_UINT R11G11B10_FLOAT R8G8B8A8_UNORM
R8G8B8A8_UNORM_SRGB R8G8B8A8_UINT R8G8B8A8_SNORM R8G8B8A8_SINT
R16G16_FLOAT R16G16_UNORM R16G16_UINT R16G16_SNORM R16G16_SINT
R32_FLOAT R32_UINT R32_SINT R8G8_UNORM R8G8_UINT R8G8_SNORM
R8G8_SINT R16_FLOAT R16_UNORM R16_UINT R16_SNORM R16_SINT
R8_UNORM R8_UINT R8_SNORM R8_SINT A8_UNORM R9G9B9E5_SHAREDEXP
R8G8_B8G8_UNORM G8R8_G8B8_UNORM BC1_UNORM BC1_UNORM_SRGB BC2_UNORM
BC2_UNORM_SRGB BC3_UNORM BC3_UNORM_SRGB BC4_UNORM BC4_SNORM
BC5_UNORM BC5_SNORM B5G6R5_UNORM B5G5R5A1_UNORM B8G8R8A8_UNORM
B8G8R8X8_UNORM R10G10B10_XR_BIAS_A2_UNORM B8G8R8A8_UNORM_SRGB
B8G8R8X8_UNORM_SRGB BC6H_UF16 BC6H_SF16 BC7_UNORM BC7_UNORM_SRGB
AYUV Y410 Y416 YUY2 Y210 Y216 B4G4R4A4_UNORM
DXT1 DXT2 DXT3 DXT4 DXT5 RGBA BGRA FP16 FP32 BPTC
BPTC_FLOAT
I thought I read that the format was BC5 signed but this format don't be present in the texconv's help.
Ref:
https://www.fsdeveloper.com/forum/threads/normal-map-introduces-excessive-gloss.457592
This post (
https://forums.flightsimulator.com/t/resize-norm-dds-textures/563494) seems to indicate this infos:
ALBD - .DDS- BC1 (Linear, DXT1)
ALBD (Blurred) - .DDS- BC3 (Linear, DXT5)
NORM - .DDS- BC5 (Linear, Signed)
COMP & Decals - .DDS- BC7 (Linear, DX 11+)
PS: I have found a good link to have information about texconv :
https://github.com/Microsoft/DirectXTex/wiki/Texconv