|Color bug in Windows for my TINS entry|
Winnddooowwws! shakes fist
First I'm thrilled that I can actually run/test this on Windows. I was developing exclusively with Mac during the competition, and did do a quick build "check-in" on Windows to make sure the build was working, but never actually ran the executable.
(I did have to apply a patch to fix a hard-coded resource path to fix a run-time crash of my entry.)
Upon running, though, all the flowers are white. Some of the flowers appear to be blending into the stem indicating that the color values themselves are not correctly set. I think there may be a bug in the color initialization, or value assumptions of the ALLEGRO_COLOR data members/manipulation itself.
I expect something more like this:
Has anyone experienced seen something similar when working with colors?
(Official entry ZIP from TINS site if anyone wants to look)
It turns out my Windows machine actually implicitly initialized the ALLEGRO_COLOR alpha to 0, where on Mac it was 1. Either way, I neglected to initialize the value and it went unnoticed.
With that in place, new odd things started happening during blend, and I attempted to fix it by simply not mixing the alpha during mix, assuming the problem was in my mix code and my lack of understanding of how to properly handle mixing and something with premultiplied alpha. In appearance, this fix worked because alpha was initializing to 1.0 on the Mac.
Later, the "actual" solution was added here, and the old alpha mixing "fix" was never put back.
I should have some binaries up shortly!
Nice job team!