Qhimm.com Forums

Final Fantasy 7 => FF7 Tools => Topic started by: satsuki on 2020-04-05 19:55:47

Title: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-05 19:55:47
Hello.

DDS (BC7) is a common texture compression format used by lots of moderns games.
And now with ffnx 1.50+ you can use this format with FF7 instead of png.

It's having lots of adventages:
-It's realy fast for loading and all the job is done with graphic card and not cpu
-It's take less memory (about 25/30% of png) so no more texture corruption problems
-It's visualy loseless
-It's compressing well so the iro or 7z share of the mod will be realy lighter (for my full pack 7z png is 6go and 7z dds is 2.3go)

To convert from png to dds i made this simple gui witch is self explainatory, but if you need help, just ask ^^

It can also convert a classic iro file mod to iro dds file.
It Can also convert dds to png (as dds is a lossy codec, don't do dds > png > dds ... you'll have quality loss after some time)

(http://ff7syw.free.fr/dd122.png)

https://mega.nz/file/PVhxyYDI#3gQPe1h2eKDH3QzivgECWb0qqU0CDMvD_pc3PG6g_X4

If you have bugs converting, install the vc runtimes (provided in "runtime" subfolder)
Title: Re: Satsuki Png2DDS simple gui
Post by: obesebear on 2020-04-06 00:30:06
This will be great for the field and battle backgrounds!
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-15 17:38:26
Added an option to convert classic iro to dds iro in one clic
(maybe some mod can move this post to ff7 tools as with iro conversion it's more an ff7 tool now)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-16 19:42:45
Version 1.12:
-Added an option to normalise png input to avoid unacurate color in some conversion with texconv
-The iro conversion now analyse the preview file in the xml and don't convert them to dds format, so previews are ok in 7H
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Fewtch on 2020-04-17 05:08:00
*shakes head* You're just too good man
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-17 06:31:20
Updated link (was the old version ^^')
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-23 18:41:11
New version :
-Added 32/64 bits OS autodetection then use the right tool version
-Updated texconv to avoid bad contrast with some file conversion
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-24 14:12:14
new version :
-The normalise png function now convert all full transparent pixel to pure black to avoid bad edge conversion (with my old iro pack for exemple)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-28 20:56:42
New version:
-Auto check for right png resolution to avoid bug ingame with mipmap
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-29 16:34:47
New version

-added a flag "dds converted" to iro's description in 7h
-added mipmap check for iro
-better log for mimap
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-04-30 08:31:26
new version:
-Now mipmap are used only with file witch can make use of it (optimising final size and avoiding bugs)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-02 12:59:35
new version:
-If a file is in bas resolution and can't use mipmap properly, it's converted without mipmap and logued, so you can manulay correct it if you want, but it won't crash even if you don't ^^
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-03 22:38:56
new version:
-Fixed a bug if iro's conversion + texconv + no mimap + no normalisation
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-07 11:34:01
New version.
-Corrected a bug in iro conversion if iro don't use a mod.xml file
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-09 14:24:57
New version:
-Add mipmap generation for fields too (slightly better quality with lastest ffnx canary)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-09 21:12:32
new version 1.22:
-add a option to convert back dds to png
Title: Re: Satsuki IroPng2DDS simple gui
Post by: orichalcon on 2020-05-09 21:39:28
new version 1.22:
-add a option to convert back dds to png

nice... yep, this is the tool i was asking for in the other thread  ;D
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-09 21:48:06
New version 1.23
-Corrected an issue with iro and png introduiced in 1.22
thanks Lord UrQuan for reporting
Title: Re: Satsuki IroPng2DDS simple gui
Post by: EQ2Alyza on 2020-05-12 02:57:19
For some reason, I can't drop anything into the file list box. I've tried PNG, DDS and IRO (not mixing them together) but my mouse cursor always changes to the "Not Allowed" symbol. I don't think it's something with your program, so just wondering if you know anything in Windows that might cause this.
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-12 08:10:20
Don't launch it as an admin ^^
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-14 19:47:47
New version 1.24:
-Corrected the iro's previews files (thanks kilyan for reporting)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: hihi on 2020-05-19 05:07:59
Hi Satsuki,

I am getting this error

(https://i.imgur.com/bwTW40C.png)

Any idea?

The full installer from another thread is working though
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-19 05:20:32
Witch windows and graphic card do you use ?
Witch option in the soft do you use ?
WItch conversion do you attemps ?
Title: Re: Satsuki IroPng2DDS simple gui
Post by: hihi on 2020-05-20 04:55:37
I am using Windows 8.1.

Been getting that error message as soon as I ran the program.
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-20 08:07:19
Do you use it from a folder where you have full accèus like the desktop ?
Could you try to install vb6 runtime ? (https://sourceforge.net/projects/vb6extendedruntime/)
Title: Re: Satsuki IroPng2DDS simple gui
Post by: hihi on 2020-05-20 08:27:20
Yes, I am running it from desktop.

I had installed the runtime included in the runtime folder and also the link you provided. Still giving the same error message.

I can run the convert.exe included in the tools folder. Is it possible if you provide me the syntax to convert all png from a folder then output it to another folder?

I will put those commands into a batch file. Manually extract and archive iro using 7H v2.
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-20 11:11:13
First Check if the png width and height are power of 2 (will be used latter)

then use the convert.exe (imagemagick) to normalize the source png :
Code: [Select]
convert.exe -background #000000 -alpha Background "source.png" "source.normalized.png"
If w and h ARE power of 2 convert to dds with mipmap :
Code: [Select]
texconv.exe -y -f BC7_UNORM -bcmax -nologo -o "output folder" "source.normalized.png"
if w or h ARE NOT a power of 2, convert to dds without mipmap :
Code: [Select]
texconv.exe -y -m 1 -f BC7_UNORM -bcmax -nologo -o "output folder" "source.normalized.png"
Title: Re: Satsuki IroPng2DDS simple gui
Post by: hihi on 2020-05-21 04:19:25
Thank you satsuki
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Barachiel on 2020-05-22 22:08:48
I can't drag and drop files to the app.  I have run it as Administrator.  I've run it from my Downloads folder.  I've had to flag it as Safe to Windows Defender.  But no matter what I do, when I try to drag, the cursor turns into a little "Circle with a Slash" symbol.  I can Drag and Drop the files anywhere else.  I have tried dragging the files to the desktop THEN to the app, and nothing works.  I tried installing the runtime files, only to get a "Setup Failed" due to a version already being installed. 

EDIT:  Nevermind, turns out Running as Administrator was the cause of the issue. 
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-23 06:40:59
New version 1.25 :
-Changed icon again to avoid A/V false positive
-Added a warning about runing it as admin disable the drag and drop
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Mcindus on 2020-05-24 02:46:02
Any chance we might be able to drag/drop folders into this instead of just files? my field folder for ff8 has a million subfolders, etc. and it's a huge pain to drag/drop the contents of each folder into the mod.  otherwise, great tool!
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-24 08:09:37
Not ATM.
But a simple way to do it is use windows to seach for the png inside your ff8 folder, then drag and drop from the search results, working great ^^
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Chrysalis on 2020-05-25 09:36:03
for menu stuff it can massively increase iro size but will compress back down with 7zip for distribution.

Thanks for this excellent tool satsuki.

--

It seems on ninostyle model pack from nexusmods, this converts the preview images, I did see a log showing mipmap failures, and in the log it mentionedit though they were unused, but they are used, in the png iro they show up in configure box, on the dds iro they missing.
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-25 10:17:32
Ok i'll try nino pack conversion ASAP to correct all that
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-25 11:08:02
witch iro have you converted without preview and with witch iropngdds version ?
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Chrysalis on 2020-05-26 02:00:25
It looks like it is just the ninostyle battle models.and ninostyle hd field models.

There is 5 iro's in the pack and the other 3 iro's are ok.

iropngdds version is 1.25 64bits.
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-26 09:34:46
Ok i'll try that asap
Title: Re: Satsuki IroPng2DDS simple gui
Post by: satsuki on 2020-05-26 20:03:41
New version 1.26:
-Corrected some preview files wasn't detected and was converted to dds
Title: Re: Satsuki IroPng2DDS simple gui
Post by: m_agil1st on 2021-12-15 08:42:54
when i tried to convert iro png file to dds iro, the output iro dds generated is only 0 kb in size, is there a way to fix it?
Title: Re: Satsuki IroPng2DDS simple gui
Post by: Valtrise on 2021-12-29 21:31:48
when i tried to convert iro png file to dds iro, the output iro dds generated is only 0 kb in size, is there a way to fix it?

Make sure the file name that you are converting has no spaces in it.