Flightsim.toFlightsim.to
    MSFS Textures Toolbox - Image 1

    Description

    It brutally appeared to me that DDS textures generation for MSFS are quite painful.

    If you're working on a complete asset that you're going to build with the SDK anyway, it's not a problem. But if you're simply working on a livery, maybe you don't want to create a whole package and build it all the time. 

    This toolbox uses "Compressonator CLI" (freeware available here https://github.com/GPUOpen-Tools/compressonator/releases) to handle PNG <> DDS conversions.

    And "imagemagick" (freeware available here https://imagemagick.org/script/download.php#windows) to detect PNG channels depth (8-bit or 16-bit) and handle the Composite "Join" and "Split" operations. Go for this version : ImageMagick-7.1.0-portable-Q16-x64.zip which contains all the required executables.


    PNG2DDS.ps1

    You can convert a single PNG file or all the PNG files of a folder to apporopriate DDS textures + JSON descriptors:

    • It auto-detects if the PNG source has an alpha layer and depending on the type of texture (Albedo, Composite, Normals), it selects the appropriate DDS compression (BC1, BC3, BC7, BC5_S) and writes the correct JSON tags.
    • For now, 16-bits textures are ignored.

    DDS2PNG.ps1

    Exactly the opposite. Converts DDS files (a complete folder or a single file) to PNG.

    DDS-JSON-Generator.ps1

    You can generate a correct DDS.json file for a given DDS file or all the DDS files of a folder.

    Join-COMP.ps1

    Generates a Composite RGB file with Ambient Occlusion/Roughness/Metallic channels from any PNG given as input or any suitable files in a given folder.

    • You can specify any of the 3 channels as the argument. The script will find the others if your files are named as expected and located within the same folder. (xxx_AO.PNG, xxx_ROUGH.PNG, xxx_METAL.PNG).

     Split-COMP.ps1

    Separates the RGB channels of a composite PNG file to 3 standalones PNGs. Or does the same for all COMP files within a given folder.

    • These files will be suffixed with _AO.PNG, _ROUGH.PNG and _METAL.PNG
    • The script checks first if these files don't already exist and will throw an error if any of them is present.

    Requirements:
    • it works on Windows 10/11
    • You need to be able to run unsigned PowerShell scripts
    • You will need to have Compressonator CLI (freeware) and set the path to "compressonatorcli.exe" in the $compressonatorPath variable of PNG2DDS.ps1 and DDS2PNG.ps1.
    • And finally, you need to have ImageMagick (freeware) and set the path to the folder containting all executables in the $magickPath variable of PNG2DDS.ps1, DDS2PNG.ps1, Join-COMP.ps1 and Split-COMP.ps1.

    Comments(52)

    Log in to join the discussion

    Log In

    22 days ago

    Is there a way to use it to convert FSX DDS into MSFS format, or if that isn't required, to just generate the .dds.json and texture.cfg?

    I am trying to convert FSX AI repaints to MSFS20, if you know of a good tutorial would be much appreciated, hard to find info.

    about 1 year ago

    Imagemagick:

    Here's 7.0.7-17 for windows
    https://www.filepuma.com/download/imagemagick_64bit_7.0.7-17734/download/

    I could really use some help with this proggie getting it to run etc. Thanks.

    about 1 year ago

    ImageMagick-7.1.1-Q16 is missing the identify. exe which seems to be needed for the PNG2DDS.ps1.

    Is there a way to fix this on my side?

    about 1 year ago

    Copy paste of my answer from a week ago:

    I think you should try to see if you can find an old 7.0 version which includes everything needed (the last time I tried, at least)

    about 1 year ago

    auch convert.exe missing from ImageMagick-7.1.1-45

    about 1 year ago

    Yes, for some reason their strategy is to remove features with every new update :D So I think you should try to see if you can find an old 7.0 version which includes everything needed (the last time I tried, at least)

    about 1 year ago

    can't find it. but replacing convert.exe with magick.exe work after googling

    about 1 year ago

    import then export (dds2png -> png2dds) . unfortunately the resultant COMP DDS output has alpha channel and won't work .

    over 1 year ago

    When this says "Compatible for 2020" but "INcompatible for 2024", it that a confirmed FAILURE? or is it just nobody has checkd it and changed the flag on this page?

    over 1 year ago

    I suppose it works on FS2024 as well. I haven't used them recenlty, I'm more focused on creating complete aircraft and generating my COMP textures directly with Substance Painter, then compiling them to DDS with the SDK.

    But if you can find a proper version of ImageMagick, as indicated in the description, you should be good to go.

    over 1 year ago

    any video tutorial that explains what exactly we do with all this?

    almost 2 years ago

    DDS-JSON-Generator won't run as a non-admin user because it tries to write the output files into System32. With admin privileges it works but the json files still end up in System32 when they should be written to the folder where the textures are.

    almost 2 years ago

    Thanks for taking the time and effort to share this, its much appreciated!
    It would seem however that the required version of ImageMagick is no longer available and the latest version does not have split executables, so doesn't work. Took a long time to figure everything out, so even if you are able to get a copy of the required executable, this is not for the faint of heart. Certainly not for a casual programmer such as myself, let alone someone who has no command line or powershell experience.
    Roel

    almost 2 years ago

    what is the difference from photoshop since it does everything? what difference does the magic image make?

    almost 2 years ago

    The purpose of these scripts is to help you convert your textures from/to DDS/PNG formats without having to do the following actions: start your image manipulation software, load your file, save it in an other format, close the file and repeat the process... And if your workflow is PNG to DDS, you would also have to create (manually?) all the JSON files that go with each texture at the end (because Photoshop doesn't generate these files).

    With these scripts, if you set them up correctly, you can just call the right script and provide it the path where you have all your textures located, and it will batch process everything for you.

    about 2 years ago

    What an awesome tool! It makes converting textures so easy. Thank you very much :)

    about 1 year ago

    Do you know of a video that shows you how to use it?

    Thanks

    about 2 years ago

    Wonderful tool! I have a dummy question on batch processing. I intend to use it for creating COMP files. My test worked fine with a single file (giving the full path and name of a single PNG file, like _AO.png, when prompted for it). But I don't know how to use in batch, on a folder with 50 (x3) files. The usual * wouldn't work ...

    about 2 years ago

    Hi and thanks! I use this everytime against folders. It's even easier than files: you give the script the path to this folder and it will scan all the files in there by itself and according to their naming, it will deduce if it's a COMP file, or a DIFFUSE, NORMAL or EMISSIVE. And if it stumble upon a file that has an ambiguous name, it will ask you how it must treat it.
    MSFS 2020MSFS 2024

    MSFS Textures Toolbox

    A comprehensive toolbox for MSFS texture management, allowing for seamless PNG to DDS conversions and handling of composite files. Utilizes "Compressonator CLI" and "imagemagick" for efficient texture processing. Includes scripts for converting, generating DDS files, and manipulating RGB channels. Requirements include Windows 10/11 and setting paths for Compressonator CLI and ImageMagick executables in the scripts.

    Downloads2K
    Version2.4
    File Size8.53 KB
    Published4 years ago
    Updated3 years ago

    User Reviews

    4.6

    10 reviews

    5
    90%
    4
    0%
    3
    0%
    2
    0%
    1
    10%

    More Information

    Simulator
    MSFS2020
    CategoryUtilities
    Sub-CategoryToolkits

    Version History

    Thanks to "FiveBirds"s suggestion: Now, "Join-COMP.ps1" and "Split-COMP.ps1" work also on the content of a given folder and not only on individual files.

    Related

    Boeing 747 SCA

    Boeing 747 SCA

    Experience the rare Boeing 747 SCA in Microsoft Flight Simulator with this detailed add-on. Includes the Endeavour Shuttle Orbiter attachment, modern livery, additional vertical tail ailerons, tuned engines, and more. Explore the unique detach console and Shuttle Payload Manager EFB for a fully immersive simulation. Enhance your simulation experience with this meticulously crafted aircraft mod.

    by LordFrites

    4.7
    The Scrapyard Monster

    The Scrapyard Monster

    The Scrapyard Monster is a fictional aircraft inspired by the powerful Cosworth RA engine, offering extreme STOL and aerobatic capabilities. With highly detailed 4K textures and custom sound pack, it features dual VOR navigation, autopilot, and various effects like engine smokes and contrails. Choose between the Bush Monster or the Sea Monster variant for a unique flying experience.

    by Flying Fries

    4.9
    Pelican Improvement Mod

    Pelican Improvement Mod

    I've never played Halo. Let's start with this statement! Nevertheless, I think the lore of this universe is really rich and the Pelican Asobo provided is simple enough to let us dream and create our own adventures around it. So get ready for a fun mod!

    by LordFrites

    5.0
    FSB - Weather Pack

    FSB - Weather Pack

    A few custom weather presets made for FSB Flight Groups, by myself and other virtual wingmen! These presets aim for epicness, contemplation and sometimes challenges. This pack is going to be updated on regular basis, with only great and very specific presets.

    by LordFrites

    5.0