- Feb 19, 2022
- 2,099
- 3,114
Thanks for suggestions.
As you see, I resize texture to 1/16 size and calculate. It isn't takes long time.
I think that filename is not important to us. It's just using by games(apps).
If need to categorized, use sub folder. As I said "Translate(images) ", He categorized translated images as below
I don't think prepared image is must same as target. for example, The Fairy Tale of Holy Knight Ricca: Two Winged Sisters has the 4k modded textures.1.) First filter runtime textures based on their height and width (only act on those that match the heights and widths of the target images you want to replace) - this should reduce the number of images that you need to hash greatly
Succubus Reborn it is. But many other games are not. for example, Succubus Heaven, Rampant Pervert vs the Public Discipline Committee, and so on. Rapidly scenes loaded and changing textures counts. So, marking replaced has some risk. If using with options(set with .ini file), It can be possible.2.) Only replace textures that have not been replaced once before (can use Texture2D.name field as unique key) - this assumption probably only works on games like Succubus Reborn, where scene resources are additive and not unloaded, so a 1-time replacement is sufficient
It's similar with my process. But your way check iterations count. If texture is large and added small size texture on unity atlas, can missing those area. And there can be similar textures just different little bit. Can be those hash are same.3.) Only hash a subset of the bytes in the raw image data. I was able to get away with only 20 iterations for succubus reborn, but as you decrease the # of iterations, you risk increasing the number of hash collisions
Here's a snippet of what I'm doing for a sample hash (it can definitely be improved, was a quick and dirty implementation, not actually java, but there's no C# markdown):
As you see, I resize texture to 1/16 size and calculate. It isn't takes long time.
I think that filename is not important to us. It's just using by games(apps).
If need to categorized, use sub folder. As I said "Translate(images) ", He categorized translated images as below
- BOOKS\
- ICONS\
- UI\
Yes. Texture's name is not easy be changed.won't be getting updates frequently requiring me to rename image files
Last edited: