Implement better texture extraction algorithm for some 32x textures
PersonTheCat opened this issue ยท 3 comments
In hopes of obtaining 32x overlays for off-limits ore textures from certain mods, I've written a more advanced texture extraction algorithm which can be seen here. It is able to produce some very nice looking textures, as seen here. However, most of these textures do not look quite as good as this one, as it was designed specifically for this single texture. Only a couple of other textures (lapis, for example) actually look decent in addition to this one. I would like to implement this new algorithm into the mod, but will not be doing so until I can generate some new ideas for how to make this algorithm more flexible. This is keeping me from adding a couple of mods which are very important for my own uses, which is quite a shame.
Until then, that's the status. I'm mainly just posting this as a public issue to give some notice as to why certain mod support has been put on hold, for anyone interested.
I should note that this algorithm has not been tested with 16x textures. As it was based on the original algorithm written by @pupnewfster , it may still work fine, at least when using a different function that applies fewer visual effects to the final image. A couple of values used for extracting the overlay have changed in the process, so some sort of method for determining which threshold to use should also be implemented before this can be used.
-Cat
I'm finding it necessary to make a huge deal out of this problem. Here's a vastly updated version of the algorithm from above. It's also a standalone program with recursive functions to make testing a lot of images very easy. It supports commands for determining whether to apply affects and also which files to use, while backing up all previous files to make repeated tests as easy as spamming enter.
The algorithm has now been replaced. It's still overly complicated and sometimes doesn't work as well as the original (though sometimes it works even better), but damn, I want those sprites.
Just pushed the first major update to the texture extraction algorithm. As it stands, for all ores included in the mod by default (and some others) where the background is 16x stone, there is not a single ore that doesn't generate flawlessly. This includes the ability to capture the shaded and highlighted regions of an image and use them to create similar textures as part of the overlay sprites. Maybe no Conquest textures or other textures made in similar styles (at 32x or otherwise) actually generate well. More changes will be needed for that.
As for actual Conquest textures (and Conquest support), I'll most likely be including an optional texture pack with handmade textures from the John Smith community resourced pack in future releases.
So that's better, anyway.