-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Arc option (1d expand FX) #4416
Comments
doc_2024-12-22_18-27-50.mp4 |
@mitrokun I think this part of the video is your 2D layout, correct? So the matrix you have is 15 x 13 pixels, and the segment "reverse X" option is enabled. |
@blazoncek it looks like a commit from you has last modified the "arc" logic e82f38e any ideas? |
Yes. Reverse is at issue here. Why? Because Waterfall (and some other effects) use The change you pointed fixed a complaint that Arc was not filling entire matrix, i.e. corners. If you want to fix this issue you can either reduce Arc expansion range (and then have reopened original issue when Arc was not filling entire matrix/segment) or fix forementioned effect(s). |
@blazoncek thanks, yes I agree it's most likely the "shifting" (combined with reverse) that does not work in arc with this very small 2D resolution. So basicially it's the same problem that we are fighting in the "pinwheel" expansion - exact getPixelColor is not working sometimes because the reference pixel might actually overlap with other pixels. I think the best solution would be to add a dedicated pixel buffer for arc and pinwheel, so getPixelColor could retrieve the exact color that was previously sef with setPixelColor. |
There is another fix possible which will consume a bit more resources. That is - getting pixel at x,y coordinates instead of x,0 (or y,0). |
I don't think so. That would add too much complexity. I can prepare such PR if you wish. |
I see your point - and a Experience from MM - and also from particle effects by @DedeHai - is that we can expect around 30% of speedup, plus we will never again need to worry about gaps that are not mapped to any physical pixels. Maybe Let's continue the topic after Xmas days 👍 (grandpa currently has higher duties 🎅 ) |
It does not need to be (explicitly) as And yes, triple buffering has always been an option. Expensive, though. |
@mitrokun while you are at it, please check other effect if anyone else also exhibits similar issue. BTW I have fix for Waterfall ready. |
Tnx
Ок. |
What happened?
After the 0.15 b4 update to release I got a bug for the 2D matrix.
The arc modifier stopped working adequately for some
sound effects (waterfall, matripix). The diodes light up only at the edge and there is no animation.
I tried a clean installation and installing the night version 0.16, but it did not help.
Can anyone confirm or deny the existence of the problem?
To Reproduce Bug
Enable the Waterfall effect on the 2D matrix (you can use sine instead mic) and compare the animation with "1d expand FX" modifier "corner" and "arc".
Expected Behavior
Animation on the entire matrix area for both options
Install Method
Binary from WLED.me
What version of WLED?
WLED 0.15.0 (build 2412100)
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: