A while back, around January 2025, Scott Brunner compiled and released code written by David Webb. It is a command-line tool that helps batch convert Ace files into BMP files for editing. With it, you could process whole directories at once. It's pretty handy if that's the sort of thing you want to do and you are not afraid of the command line in Windows.
But it got me wondering... what if we had something to go the other way? A tool that would convert files (or folders) from TGA, BMP, or PNG files into DDS (DXT3 / BC2_UNORM_SRGB) using an existing program called "texconv.exe", from the legacy DirectX SDK. The program is concise and complex, but if it had a nice wrapper that made it worthwhile for *our* purposes, would that be useful?
For example, converting to DDS:
1) Single file (any supported type)
ts_tex2dds.exe mytexture.png
ts_tex2dds.exe mytexture.bmp
ts_tex2dds.exe mytexture.tga
2) Whole tree of mixed PNG/BMP/TGA → DDS in-place
ts_tex2dds.exe textures/
3) Whole tree → DDS into separate folder
ts_tex2dds.exe textures/ -o textures_dds
4) Explicit texconv location
ts_tex2dds.exe textures/ -o dds_out --texconv "C:/Tools/DirectX/texconv.exe"
... And rather than have a slew of command line options... There are only a few since we know the environment these files are used... but there is a " --srgb" option if you need the extra gamma related to that option (technically, we don't, so that's not a default)
I actually have this Train Sim specific "texconv" wrapper compiled as an exe file... I'm just not sure if I'm the only one who wants it or needs it.
But it got me wondering... what if we had something to go the other way? A tool that would convert files (or folders) from TGA, BMP, or PNG files into DDS (DXT3 / BC2_UNORM_SRGB) using an existing program called "texconv.exe", from the legacy DirectX SDK. The program is concise and complex, but if it had a nice wrapper that made it worthwhile for *our* purposes, would that be useful?
For example, converting to DDS:
1) Single file (any supported type)
ts_tex2dds.exe mytexture.png
ts_tex2dds.exe mytexture.bmp
ts_tex2dds.exe mytexture.tga
2) Whole tree of mixed PNG/BMP/TGA → DDS in-place
ts_tex2dds.exe textures/
3) Whole tree → DDS into separate folder
ts_tex2dds.exe textures/ -o textures_dds
4) Explicit texconv location
ts_tex2dds.exe textures/ -o dds_out --texconv "C:/Tools/DirectX/texconv.exe"
... And rather than have a slew of command line options... There are only a few since we know the environment these files are used... but there is a " --srgb" option if you need the extra gamma related to that option (technically, we don't, so that's not a default)
I actually have this Train Sim specific "texconv" wrapper compiled as an exe file... I'm just not sure if I'm the only one who wants it or needs it.







Comment