I´m trying to find ways to get rid of flickering edges, artifacts and limitations caused by the 8 bit color resolution. It´s not as easy as it sounds. Okay, with fast moving animations all this doesn´t matter.
But for slow ambient light stuff the animation quality is better damn good, because otherwise it unveils the limitations of 8 bit math and leds with no mercy. https://www.youtube.com/watch?v=v-HSAOF6CWA&feature=youtu.be
Well, @Jason_Coon guessed right. @marmil I think it would need at least a magician, to create a similar effect with an 8x8. So okay, I overestimated the impact the smoothing has. In my eyes and according to my memory it looked pretty much like a 32x32. Obviously I was too long away from the topic to judge properly.
I don’t think you overstated the impact at all, @Stefan_Petrick . I’ve spent a lot of time starting at 32x32, 16x16, and 8x8 matrices. I think it looks amazingly smooth!
Here is roughly what I did so far: I used the 16 bit raw noise data - defined the interesting area (11000-51000), and scaled that down to an 8 bit value. Compared to the standard method (shift 8 bits to get the byte) so there is more usable range in the data = better color resolution. I also run a datasmoothing on the noise data so that a change happens over several frames and not at once. Then I defined a color palette, with no single RGB value <3. That helps a lot to limit the impact of the visible brightness steps at the very low end. Yes, the price is a minus of contrast, but the edges appear way more steady by this. Beside all this I aim of course for as many fps as possible (harware SPI + APAs = arround 300 fps with one noise layer) for a “temporal smoothing” and last but not least a physical diffusion in order to blur the edges between the leds a bit. Oh, and I run a basic gamma correction in order to get more visible details in the higher brightness range. But this affects not the smoothness, just the contrast and clarity of the animation.
Glad to see you back here Stefan! You can use the GBC setting on APA 102 LEDs to get the effect of a few more bits of color depth. More details and some code in this long thread. I’m not too far away from releasing a SmartMatrix library update that will support APA 102 LEDs on the Teensy
Hi @Louis_Beaudoin ! Nice to hear from you. Looking foreward to seeing your implementation of the GBC stuff. By the way, the last year I spend my freetime mainly with woodturning. Seriously.