Skip to content
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

spinning matrix hack (experimental) #122

Draft
wants to merge 7 commits into
base: mdev
Choose a base branch
from
Draft

spinning matrix hack (experimental) #122

wants to merge 7 commits into from

Conversation

softhack007
Copy link
Collaborator

@softhack007 softhack007 commented Feb 28, 2024

Adding a new dynamic mapping for 2D effects.

The idea is

  • "intercept" pixels on their way from the SEGMENT (with buffer) down to the led driver.
  • use a transformation matrix to modify pixel coordinates dynamically
  • write out pixels at their new, transformed locations.

As proof of concept, I'm transforming the matrix so its constantly rotating at the same speed.
UI support will come later. Also there is a lot of optimization potential, so performance will be very good finally.

YouCut_20240229_003008953_001.mp4
VID-20240228-WA0020.mp4

@softhack007 softhack007 marked this pull request as draft February 28, 2024 21:21
scale down the size after projection, to fit everything into the original 2D panel.

--> creates a slowly "pumping" effect in addition to the rotation.

math probably still buggy.
- hook into strip.service(), to get active segment bounds
- update angle once per frame
- math optimizations
Kind of a "poor man's anti-aliasing" algorithm
* edge smoothing
* disable spinning
@softhack007 softhack007 self-assigned this May 1, 2024
@softhack007 softhack007 added brilliant enhancement New feature or request labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brilliant enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant