• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Custom Texture Projects v
1 2 3 4 5 ... 12 Next »

Custom Texture Tool PS v50.1
View New Posts | View Today's Posts

Pages (117): « Previous 1 ... 86 87 88 89 90 ... 117 Next »
Jump to page 
Thread Rating:
  • 8 Vote(s) - 4.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Custom Texture Tool PS v50.1
10-12-2019, 02:10 AM
#871
djneo Offline
Above and Beyond
*******
Posts: 1,307
Threads: 30
Joined: Jan 2016
Thanks for all this hard work Bighead!

I'm looking forward to try your latest version for my hockey game project Smile
Probably convert all custom textures from scratch, because I had some issues with the older version (some tiny black lines around textures)

Thanks again Smile
specs:

Windows 10
Intel i7-9900K @ 4.9Ghz
32 GB RAM
Nvidia 1080ti
Website Find
Reply
10-27-2019, 05:32 AM (This post was last modified: 10-27-2019, 05:33 AM by iwubcode.)
#872
iwubcode Offline
Member
***
Posts: 224
Threads: 2
Joined: Oct 2019
So being on an AMD GPU, my options are rather limited for upscaling textures. My hard drive needs to be upgraded so ROCm for ESRGAN is not really an option at the moment (involves installing docker and a number of other things as far as I can tell), so I started to look at 'Waifu2x-CPP' which has a OpenCL implementation and is a small executable. However, after downloading the executable from the github release page (it seems the powershell script expected a different filename?), I am getting "failed" errors running the "Apply Upscaling Filter to All Textures". Running using "waifu2x-snowshell" operates appropriately but I'd love to use the tool Bighead has implemented. I tried both PNG and DDS output (currently using ImageMagick though I might look into 'TexConv', just hate that I have to install nuget) and had no luck with either.

Anyone have any ideas what I might be doing wrong?
Find
Reply
10-27-2019, 10:56 PM (This post was last modified: 10-28-2019, 12:20 AM by Bighead.)
#873
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
It looks like waifu2x-CPP is currently broken in my script. It's been a long time since I tested it personally, and I don't think many people use it over caffe so it may have been broken for some time. I'll try to see if I can get it fixed as soon as possible.

Spoiler: (Show Spoiler)
[Image: Zm23pHS.png]
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
10-28-2019, 12:19 AM
#874
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
This should hopefully fix waifu2x-cpp:
https://www.mediafire.com/file/gq11ol210pqufdx/Custom_Texture_Tool_PS_v43.2.zip/file

I do have some conditionals in place that selects the proper arguments for each program, but it seems I was using the argument -noise_scale for both Caffe and CPP. While Caffe is expecting that argument, CPP gives an error because it wants two dashes like --noise_scale. Fortunately Caffe doesn't seem to mind two dashes, so I just updated the argument to use two dashes for either program to avoid more "if/else" or "switch" statements. I'm not sure if this is going to cause problems, but from my personal testing, Caffe doesn't seem to care about the extra dash, but CPP expects it.

Keep in mind that when adding waifu2x-cpp it must be selected in the dropdown menu. This is a dumb design and a limitation of .NET open file dialogs. I thought about updating it to select any type of file then verify after selection but meh. It would require updating more code than I feel like modifying at the moment, and this is something that isn't done often. Maybe someday...

[Image: Ltx6S3B.png]

So that covers that, here are some other random unrelated changes.

Another fix was that if using the "CTT-PS Programs" pack, the script would always scan that folder after it was started and choose the first program it finds that matches. I found this is a problem for waifu2x-cpp, as it would always choose Caffe on start even if CPP was manually selected in a previous run. Now programs are only scanned for if the currently set path is empty or a test verifies that it does not exist.

This version also allows processing icon files (extension ".ico") in "Expert Mode". Very untested, probably not completely implemented. It was something I personally wanted to add to process icons, and was meant for the next release. But since it's already in there, I'm not going to undo it.

Also some UI fixes when using the "Zelda" options in "Combine Multiple Textures". The help button created some dialog issues, which should all be fixed.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
10-28-2019, 03:38 AM (This post was last modified: 10-28-2019, 04:06 AM by iwubcode.)
#875
iwubcode Offline
Member
***
Posts: 224
Threads: 2
Joined: Oct 2019
(10-28-2019, 12:19 AM)Bighead Wrote: This should hopefully fix waifu2x-cpp:
https://www.mediafire.com/file/gq11ol210pqufdx/Custom_Texture_Tool_PS_v43.2.zip/file

Thank you Bighead. Unfortunately, it doesn't seem to have fixed the problem. How can I debug like in your first screenshot? The UI (and log) only says "error" which is not very helpful.

I tried "noise_scale" and "scale" options. Both with "use opencl" selected:

EDIT: I figured out how to enable the debug menu

Noise scale option
powershell Wrote:Value 'noise_scale' does not meet constraint: noise|scale|noise-scale

scale option
powershell Wrote:PARSE ERROR: Argument: --scale_ratio
+ CategoryInfo : NotSpecified: (PARSE ERROR: Argument: --scale_ratio:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName : localhost

Couldn't find match for argument

Looking at the script and comparing it with the exe help, seems like the options expect dashes instead of underscores. So "noise_level" should be "noise-level". Changing those allowed the software to run properly.

---

Also as an aside - is there a way you can make upgrading easier? Right now I have to setup all my pathes again.
Find
Reply
10-28-2019, 04:30 AM
#876
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
Ohhhhh ok, I see what's going on here.

I just realized there is more than one "waifu2x-cpp". When I added support long ago, it was for "tanakamura" branch.
https://github.com/tanakamura/waifu2x-converter-cpp

And there is an updated fork by "DeadSix27" here. I am guessing this is what you are using now?
https://github.com/DeadSix27/waifu2x-converter-cpp

I will look more into this and support it properly and drop the older version. This explains what you meant when the executable had to be renamed. Thank you for pointing this out, I did not know anyone was updating cpp!

To import options from an older version, you can just drop the old version (.ps1) onto the "Options" button, onto the "Import Stored Options" button, click that button and select it, or even copy the global vars. It's not as convenient as an external ".ini" hidden away somewhere, but I like that everything is contained within it (although I could probably make both ways work eventually).
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
10-28-2019, 04:39 AM
#877
iwubcode Offline
Member
***
Posts: 224
Threads: 2
Joined: Oct 2019
(10-28-2019, 04:30 AM)Bighead Wrote: Ohhhhh ok, I see what's going on here.

I just realized there is more than one "waifu2x-cpp". When I added support long ago, it was for "tanakamura" branch.
https://github.com/tanakamura/waifu2x-converter-cpp

And there is an updated fork by "DeadSix27" here. I am guessing this is what you are using now?
https://github.com/DeadSix27/waifu2x-converter-cpp

I will look more into this and support it properly and drop the older version. This explains what you meant when the executable had to be renamed. Thank you for pointing this out, I did not know anyone was updating cpp!

To import options from an older version, you can just drop the old version (.ps1) onto the "Options" button, onto the "Import Stored Options" button, click that button and select it, or even copy the global vars. It's not as convenient as an external ".ini" hidden away somewhere, but I like that everything is contained within it (although I could probably make both ways work eventually).

Ah did not even think of that.  I just assumed we were all using the same version Smile.  Yes, I'm using the DeadSix27 version!

Also appreciate the information on how to update.  That's easy enough!
Find
Reply
10-29-2019, 10:53 AM (This post was last modified: 10-29-2019, 02:32 PM by Bighead.)
#878
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
New version is now ready:
https://www.mediafire.com/file/8orlbn7rk740zjd/Custom_Texture_Tool_PS_v44.0.zip/file

- Options from any CTT-PS version before v43.0 can not be imported into v44.0 (as explained here).
- The updated branch of Waifu2x-CPP by DeadSix27 is now fully supported, and support for the older versions has been removed.
- Icon files (.ico) can now be converted to PNG when in "Expert Mode". This was just something I added in a few weeks ago because I wanted a quick way to convert them. Icons can not be resized or converted to other formats.
- Starting the script should be a bit faster due to removing poor design decisions.
- The age old bug of TexConv creating images lighter or darker should finally be fixed for real without workaround (this issue).
- Process Selected bug fixes. The button [!] should now become available immediately after adding ImageMagick. The GUI also had an issue where it would prevent adding some textures (a non "tex1" file in Dolphin Mode for example), but it would still count that texture which bugged out stuff like the preview.
- Fixed an issue where status message in the texture list could be overwritten (more bad design). For example, if the windows character limit exceeds 260 characters, a message should be shown "Output path exceeds Windows limit of 260 characters. Texture can not be created!". But later on, this status would be overwritten with a generic "Texture Failed Creation" message, so the user would have no idea of what went wrong.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
11-04-2019, 06:45 AM
#879
djneo Offline
Above and Beyond
*******
Posts: 1,307
Threads: 30
Joined: Jan 2016
Hi man,
I have a little problem here Smile I installed the latest version, but under the DDS options I can choose only BC1/BC3 format, I would love to use the highest possible again, which is BC7?

I have installed Compressonator already and set.

Thanks a lot!
specs:

Windows 10
Intel i7-9900K @ 4.9Ghz
32 GB RAM
Nvidia 1080ti
Website Find
Reply
11-04-2019, 07:07 PM (This post was last modified: 11-20-2019, 03:11 PM by Bighead.)
#880
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
You also need to link TexConv to the script to create BC7 textures. The reason being Compressonator can fail to create some images while TexConv never fails (or almost never fails), so it serves as a backup for when that happens. There has been no build posted on its GitHub for the past few versions, but this one already works fine for our needs (you only need texconv.exe).
https://github.com/microsoft/DirectXTex/releases/tag/feb2019

If you really want to take your chances, you can force BC7 to appear in the lists with this debug option found on the options menu, but don't be surprised if some images fail conversion:

Spoiler: (Show Spoiler)
[Image: TfwBvAn.png]
Do keep in mind that the latest Compressonator may have issues. I and some others could not get the latest command line versions to work. So I do suggest this version.
https://github.com/GPUOpen-Tools/Compressonator/releases/tag/v3.0.3707

Alternatively, I have compiled all the necessary programs into a single pack. If this programs pack is extracted to "C:\CTT-PS Programs", you can simply check the box "Tools Master Path" and it will automatically link all programs and unlock all the script's features. If installing somewhere else, the master path can be changed. Do not extract it to any "Program Files" folder if you want to use included ESRGAN/SFTGAN, as Windows is very protective of those paths and will not allow me to write to the script files if installed there. (This could be worked around with an elevated PowerShell instance, but that comes with its own issues and nuances.)
http://www.mediafire.com/file/oczxb5ljbh428b3/CTT-PS_Programs_%25287-7-2019%2529.7z/file

Spoiler: (Show Spoiler)
[Image: nXOUYv9.png]
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
« Next Oldest | Next Newest »
Pages (117): « Previous 1 ... 86 87 88 89 90 ... 117 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode