May 8
Eira has been fun, and I will probably still be pulled back into the game a fair bit this month, to recover my gold after buying a Nature's Breeze set and crafting a new Dullahan Revolver for Eira, since the freebie isn't worth reforging.
Yesterday marked my continued work on the Armory, and another look at the icon problem that has been bugging me. Fair warning, I've made the realization since April that I've been holding back too much on actual technical details of what I've been doing, and will be making an effort to correct this in future.
As I resumed trying to correct icons, I continued calibrating values on my code, trying to pretty much blindly stumble into something passable enough. After a while at this, in stepped Florrick, and eventually the answer was found. My original implementation was based off the code HeroesDB published when they went offline, and I was far from experienced enough at graphics code to make major changes to it myself.
Basically, the HeroesDB method decided which color to apply per pixel, based on the dominant shade of Red, Green, or Blue there originally. My changes from there stemmed on boosting the brightness multiplier it used to generate color, resulting in my icons being brighter and more vivid, thus slightly closer to reality. This implementation was apparently completely off the mark on how to actually do it.
The actual method seems to be to treat every pixel as at least partially every color on the item, with values based on the strength of the original Red/Green/Blue shades there. I admit that I still don't understand why this fixes the brightness for solidly colored areas, but it seems to, so I am not going to question it.
I setup a comparison image based on my last Dev Log image, to show off how significant the difference is:
The image on the left is the color corrected version, and the image on the right is cropped from that Dev Log's image.
As an added bonus, here is an image of equipment my Lann will never have:
(Bracelets are not included because the sockets cannot actually be defined client-side yet, please conveniently ignore that for now.)
With this resolved, the server-side portion of icons is now fully stable and accurate. The client-side is still very much questionable though. In particular, items like Wings, Tails, and locked color vanity items are still erroneously showing they can be dyed, causing visual bugs. There is also a separate issue where some items are showing the incorrect amount of color boxes, for some reason.
My next work will be to correct those issues to fully smooth out all color handling, finishing this part of the Armory completely.