SinusoidDelta Posted March 24, 2019 Posted March 24, 2019 I posted this in another thread but wanted to share it here for visibility. The guide below will allow you to import and export BC7 DDS textures in GIMP (I’m using build 2.10.8 ) Importing: Install the GIMP dds plugin from here Download the Microsoft DirectXTex utility called texconv.exe from here. Extract it to a folder and make note of the directory. Download this python script here. Open file-dds-texconv.py in Notepad++. Now enter the full directory for your texconv.exe binary from the previous step. Save file-dds-texconv.py Paste file-dds-texconv.py in your gimp plug-in folder (eg, Program Files\GIMP 2\lib\gimp\2.0\plug-ins Now open GIMP and select a BC7 .dds file. A script will run briefly and the texture will import. You should now see the pretty tomcat texture you chose in GIMP: Exporting: Select export from the file menu. Clicking + to view the different file types, you will see that “direct draw surface —-> .dds” is listed twice. Choosing one of the two file types (can’t remember which at the moment) will bring up the original DDS export options e.g Selecting the other will immediately export as BC7. Let me know if you have any issues, cheers! 1
gabuzomeu Posted March 24, 2019 Posted March 24, 2019 Works great. Many thanks. Step 3, I forgot first to enter the path including filenale textconv.exe , Also note the windows \ need to be replaced by / Details: Asus Z-170E, Intel i5-6600K @ 4.2GHz, 16GB RAM MSI GTX970 Gaming 4G Win 10 Home
BlackLibrary Posted March 24, 2019 Posted March 24, 2019 (edited) you are the best!!! thank you!!!! Now my kitten is getting pretty one problem i got: when i open HB_F14_CPT_FRONT_01.dds i dont see all of the texture. normal i will load it with DXTBMP to splitt the alpha. anyone has a solution? Edited March 24, 2019 by BlackLibrary aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server
Father Cool Posted September 16, 2019 Posted September 16, 2019 (edited) Hi I cant get this to work. There is no texconv.exe file contained in the download. Where do I point the python file to? Edited September 16, 2019 by Father Cool
Mnemonic Posted November 12, 2019 Posted November 12, 2019 Excellent guide, thank you! I only had a problem on step 2, latest few releases don't include actual compiled exe file, you have to scroll down the page, "February 7, 2019" has texconv.exe that works
whisky.actual Posted February 2, 2021 Posted February 2, 2021 Same issue than @Father Cool, D/L the texconv.exe and other exe added them to the directory. Pasted everything in the plugin folder and tried to run the application. No dice :(
Megalax Posted February 4, 2021 Posted February 4, 2021 Did you edit the python script to point it to texconv? Megalax's Livery Studio My Liveries in the User Files I'll stick a maple leaf on anything...
whisky.actual Posted February 4, 2021 Posted February 4, 2021 Yep BINARY="""C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\DirectXTex-feb2019\texconv.exe""" I tried the current version and the "February 7, 2019" as suggested above
Megalax Posted February 4, 2021 Posted February 4, 2021 What do you mean by run the application? texconv.exe is not an application you run, you just save to dds with Gimp and it runs the script. Megalax's Livery Studio My Liveries in the User Files I'll stick a maple leaf on anything...
whisky.actual Posted February 4, 2021 Posted February 4, 2021 (edited) 15 hours ago, Megalax said: What do you mean by run the application? texconv.exe is not an application you run, you just save to dds with Gimp and it runs the script. I mean run Gimp. Is the texconv.exe the only file required from the first link? Maybe it has dependencies on other files to run correctly? MS Visual C++ or DX9 (d/l and install DX) FYI, I am trying to open a BC7 DDS. Got the same error as Father Cool Edited February 4, 2021 by whisky.actual
prccowboy Posted February 5, 2021 Posted February 5, 2021 (edited) 3 files from the first post. 1) dds plugin 2) texconv.exe 3) python script However, I see something else that "might" be your problem. In the python script I have forward slashes / where you have back slashes \ (may or may not be your problem - I always have issues with syntax) - gabuzomeu mentioned this in post #2 example, my python code has: BINARY="""C:/Program Files/GIMP 2/texconv.exe""" Edited February 5, 2021 by prccowboy
whisky.actual Posted February 5, 2021 Posted February 5, 2021 21 hours ago, prccowboy said: 3 files from the first post. 1) dds plugin 2) texconv.exe 3) python script However, I see something else that "might" be your problem. In the python script I have forward slashes / where you have back slashes \ (may or may not be your problem - I always have issues with syntax) - gabuzomeu mentioned this in post #2 example, my python code has: BINARY="""C:/Program Files/GIMP 2/texconv.exe""" Thanks! that did it... guess the python did not like the \ from the windows path and requires the / as per unix, weird :S
Father Cool Posted February 11, 2021 Posted February 11, 2021 (edited) Yes the slashes were the issue for me as well. I have now however started exporting my textures as png's from GIMP and converting to DDS via paint.net as the GIMP plugin is nowhere near as simple and fast at doing the job. Edited February 11, 2021 by Father Cool 1
Double_Tap Posted February 21, 2021 Posted February 21, 2021 Thanks so much for this. I have been waiting for years for a Gimp solution. 1
speed-of-heat Posted March 27, 2021 Posted March 27, 2021 Yes ditto. Many thanks for this stripped countless hours out of my effort, almost seamless SYSTEM SPECS: Hardware AMD 9800X3D, 64Gb RAM, 4090 FE, Virpil T50CM3 Throttle, WinWIng Orion 2 & F-16EX + MFG Crosswinds V2, Varjo Aero SOFTWARE: Microsoft Windows 11, VoiceAttack & VAICOM PRO YOUTUBE CHANNEL: @speed-of-heat
Worrazen Posted June 21, 2021 Posted June 21, 2021 (edited) The first step is actually not needed. That old plugin will not work for BC7 I think, well, I'm not sure if I opened a BC7 texture, but the ones I tried didn't work. Texconv and the python script plugin does it all. Edited June 21, 2021 by Worrazen Modules: A-10C I/II, F/A-18C, Mig-21Bis, M-2000C, AJS-37, Spitfire LF Mk. IX, P-47, FC3, SC, CA, WW2AP, CE2. Terrains: NTTR, Normandy, Persian Gulf, Syria
RedRabbit_61 Posted October 17, 2021 Posted October 17, 2021 I am still getting these errors I've downloaded the plugin and placed it in the Gimp plugin directory as the txt file indicated, I've updated the python file for show the location of the texconv.exe file
western_JPN Posted November 21, 2021 Posted November 21, 2021 Hi, RedRabbit_61 . In my experience, the combo of plugin and script in the 1st post works only for BC7 format and doesn't have backward compatibility to old dds files like BC3. When I want to open a BC3 / DXT5 dds file with THE plugin , GIMP shows the similar error you posted. GIMP 2.10.xx has one of default in/out plugins for dds and it works with/for BC1/2...5 . So, they are exclusive: BC1 - BC5 dds = GIMP's default plugin BC7 dds = THE new plugin We have to switch enable / disable THE plugin due to which generation dds we want to read / write. Setting BAT files to move plugin files or JSGME-like tool ? I think. Modules: A-10C/II, F-4E, F-5E(Re), F-14A/B, F-15E, F-16C, F/A-18C, AV-8B, FC3, Ka-50-2/3, UH-1H, Mi-8MTV2, SA342, Mi-24P, AH-64D, CH-47F, P-51D Maps: Nevada, PG, Syria, SA, Sinai, Kola, Afghanistan, Iraq, CW Germany, Channel, Normandy2.0 Assets etc.: CA, Sc, WW2AP Mods and Skins in User Files: files/filter/user-is-western0221/
Chally850 Posted December 20, 2021 Posted December 20, 2021 Is this working with GIMP 2.10.xx ? I don't get the same installation path for GIMP and Texconv.exe is not present in the DirectXTex-nov2021 version ... How do you open your BC7 dds ?
prccowboy Posted December 20, 2021 Posted December 20, 2021 7 hours ago, Chally850 said: Is this working with GIMP 2.10.xx ? I don't get the same installation path for GIMP and Texconv.exe is not present in the DirectXTex-nov2021 version ... How do you open your BC7 dds ? works fine with latest - just RTFM (posts above). Check that you have files in the right locations and that you edited the python script accordingly. (I have the dds.exe and python script both in the Program Files\GIMP 2\lib\gimp\2.0\plug-ins folder, but I put the texconv.exe file in the Program Files\GIMP 2\ parent.) Then edit the python code and reverse the / and \ in the line that says where you put the texconv.exe file (see my previous post above)
Chally850 Posted December 21, 2021 Posted December 21, 2021 14 hours ago, prccowboy said: works fine with latest - just RTFM (posts above). Check that you have files in the right locations and that you edited the python script accordingly. (I have the dds.exe and python script both in the Program Files\GIMP 2\lib\gimp\2.0\plug-ins folder, but I put the texconv.exe file in the Program Files\GIMP 2\ parent.) Then edit the python code and reverse the / and \ in the line that says where you put the texconv.exe file (see my previous post above) i read and did all that was in the previous post, but like i said my Gimp location is different (2.10.28) and there is no texconv.exe in the DirectXTex package, just a Textconv.rc I went back and found a Texconv.exe outside the package and it is now working fine to read the BC7 file. Thanks for your time
Swamp_Fox Posted May 12, 2022 Posted May 12, 2022 So, tried doing this, noticed it was taking a lot longer than the original plugin and figured "that's okay I'll just move the .py out of the plugins page and put it back in to save as BC7 at the end." Instead it's throwing this error now. So, what's wrong?
Recommended Posts