Skip to content

Dissolve/Dissolve Rnd with secondary color stopped working in 0.14 #3502

Closed

Description

@TripleWhy

What happened?

Dissolve doesn't do much when there is a background color set, that isn't black:
It will dissolve to to the background color, and keep all LEDs at the background color indefinitely.

To Reproduce Bug

  1. Use WLED 0.14.
  2. Select the Dissolve (or Dissolve Rnd) effect.
  3. Chose a background color that isn't black.

Expected Behavior

Fills LEDs with primary in random order, then with background color, then repeats.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.14.0 (build 2310130)

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

This worked in WLED 0.13.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. blazoncek commented on Nov 5, 2023

    @blazoncek
    Contributor

    It works as expected on my system.

  2. added
    cannot reproduce
    on Nov 5, 2023
  3. TripleWhy commented on Nov 6, 2023

    @TripleWhy
    ContributorAuthor

    I played around some more, and it currently seems to me that:

    • The issue doesn't exist on the ESP32, just the ESP8266.
    • The issue only happens when the overall brightness is < 200.
  4. blazoncek commented on Nov 6, 2023

    @blazoncek
    Contributor

    Nope. Works on ESP32, ESP32-S2, SEP32-C3 and ESP8266.
    Matrix or not. Brightness 200 or less, palette Default or any other. Fx and Bg any color. Random or not.

    Must be something particular to your set-up. Have you tried "Global LED buffer"?

  5. TripleWhy commented on Nov 6, 2023

    @TripleWhy
    ContributorAuthor

    Enabling that option does indeed fix this.

    When I copy a configuration backup from my ESP8266 to my ESP32, I have to enable the option as well, otherwise I get the same issue.
    However, when I erase the ESP32, re-flash the firmware, and try with a clean setup, I don't need the option. Strange, but I don't know if you consider that an issue or not.

  6. blazoncek commented on Nov 7, 2023

    @blazoncek
    Contributor

    So the problem is lossy getPixelColor(). Good to know.

  7. added and removed
    cannot reproduce
    on Nov 7, 2023
  8. blazoncek commented on Nov 8, 2023

    @blazoncek
    Contributor

    The problem lies in this comparison: SEGMENT.getPixelColor(i) == SEGCOLOR(1) which may never be true if the global brightness (or even segment opacity) is not 255.

  9. blazoncek commented on Nov 8, 2023

    @blazoncek
    Contributor

    I think I have it sorted out.

  10. added
    fixed in source
    on Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugeffectfixed in source

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions