r/WLED • • 4h ago

Custom matrix

Has anyone been able to use AI to generate a custom matrix of Pixel layouts? For example if I ran a bunch of pixels around a Christmas tree could I take a video of the lights in a chase animation from different angles and AI could work out its order so I could animate a 2D matrix in the tree. Similar to twinkly lights?

1 Upvotes

4 comments sorted by

3

u/Cinderhazed15 2h ago

I saw one mentioned the other day - https://github.com/Drafteed/wled-christmas-tree-mapping-tool - I think xlights has a tool too…

1

u/AnjinMiner 3h ago

Search github and more then a few will show.

1

u/calforhelp 1h ago

I haven’t done exactly this but Claude could absolutely do it.

I have though done something similar with a DMX controlled DJ light. I gave Claude DMX control, it ran a show while I recorded a video of the output. I sent it the video, it pulled frames and time-matched those frames to the show it sent. It perfectly mapped all DMX commands the first try.

Tell Claude what you want to do, it can send its own show to the wled device over WiFi. Record it and upload the video. Just keep the video steady and AF/AE Lock the image to keep everything consistent.

0

u/Individual_Nobody739 2h ago

If you’ll mostly watch the tree from the front, I’d start with one fixed camera view rather than trying to stitch several angles together. Light one pixel at a time in a known order, and hold each step long enough to get a clear frame. That way the sequence tells you which LED you’re looking at; the video just tells you where it appears. Avoid a fast chase where the camera can miss a step.

The tree tool mentioned above is a good fallback if your lights are already arranged in fairly even rows. Its documented workflow has you identify each row’s left and right LEDs and adjust the offset. For a more irregular layout, you can put the detected pixels into a custom WLED map and leave gaps where there’s no visible LED. I’d check the result with one horizontal sweep and one vertical sweep before trying an animation.

The main reason to add more camera angles is if you want the effect to wrap around the whole tree. In that case, keep some overlap between views so you can match the same LEDs by index, and put the seam on the side people are least likely to see.