marimapper icon indicating copy to clipboard operation
marimapper copied to clipboard

WLED export

Open TheMariday opened this issue 1 year ago • 1 comments

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

TheMariday avatar Aug 19 '24 07:08 TheMariday

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?

tschundler avatar Dec 16 '24 05:12 tschundler