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

WLED export #28

Open
TheMariday opened this issue Aug 19, 2024 · 1 comment
Open

WLED export #28

TheMariday opened this issue Aug 19, 2024 · 1 comment

Comments

@TheMariday
Copy link
Owner

As a user I want to be able to export to WLED so that I can use their effect driver.

This might have to be a quantised 2D projection

@tschundler
Copy link

tschundler commented Dec 16, 2024

yeeaaah.... another thing I've started to dig into - not for my 3D camera mapping project, but for a graph-based mapping project of mine (tiktok demo) that is good for 2D stuff.

+follow for if you get to it first. Or if not, I may dig into this within a few months.

I have some ideas:

  • use RANSAC
  • pick random LEDs & their nearby neighbors (from a KD tree?)
    • or not so random, find nearest neighbor for each LED, and select from 20% percentile of LEDs with closest neighbors?
  • pick a minor rotation amount + grid spacing for the neighbors to fit well
  • layout the rest
    • for each bin, keep track of how far off the LED is from its ideal center
    • if a bin would be a better match for a later pixel, go back and re-place previous pixel
    • if no free pixel < 1.75 pixels away (tuneable?), give up - bad map
    • rank based on minimal total graph size

That way, mapping something lightly misaligned should still be able to be put on a grid neatly


did you have any approach in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants