# Blinkfade in Cube Frame

**URL:** <https://forum.electromage.com/t/blinkfade-in-cube-frame/1280>\
**Category:** Show and Tell\
**Created:** [June 3, 2021, 3:54pm UTC](https://forum.electromage.com/t/blinkfade-in-cube-frame/1280 "2021-06-03T15:54:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Scruffynerf](https://forum.electromage.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@Scruffynerf](https://forum.electromage.com/u/Scruffynerf)\
**Post date:** [June 3, 2021, 5:25pm UTC](https://forum.electromage.com/t/blinkfade-in-cube-frame/1280/4 "2021-06-03T17:25:03Z")

</div>

> [@JustPete](#):
>
> sequential lighting and photography would be a better alternative

One example (scroll to bottom of post for my recommended solution, but listed a pile of others first…)

> **[GitHub - aaknitt/pixel\_mapper: Semi-automatic mapping of RGB pixels in 3D space...](https://github.com/aaknitt/pixel_mapper)**
>
> Semi-automatic mapping of RGB pixels in 3D space using computer vision

Another:

> **[Generate Custom Model | xLights Manual](https://manual.xlights.org/xlights/chapters/chapter-five-menus/tools/generate-custom-model)**

Another:

> **[Christmas tree](https://lorraine.mcunderwood.org/christmas-tree/)**
>
> This year we decided to add some RGB programmable lights to our Christmas tree. However, having worked with OpenCV on our PiWars Robot we thought we could make the lights even cooler. The problem: RGB programmable light strips are numbered...

Another: [Spatially-Mapped Christmas Lights | ch00ftech Industries](https://ch00ftech.com/2017/12/15/spatially-mapped-christmas-lights/)

More:

> **[GitHub - anfractuosity/lightfantastic: led mapping using ws2812 led strips and a...](https://github.com/anfractuosity/lightfantastic)**
>
> led mapping using ws2812 led strips and a raspberry pi. The leds transmit encoded data, which is decoded from video to determine the leds position and id number.

Btw, there is a commercial product, Twinkly.  
But I suspect we can do better.

Getting closer:

[![](https://img.youtube.com/vi/Ueim2Ko8VWo/maxresdefault.jpg "Magic LEDs: Self-Organizing with ESP32 CAM & Simple Image Processing!") ](https://www.youtube.com/watch?v=Ueim2Ko8VWo)

> **[GitHub - atomic14/self-organising-leds: Using an ESP32 Camera board to create self...](https://github.com/atomic14/self-organising-leds)**
>
> Using an ESP32 Camera board to create self organising LEDs

This is a ESP32 cam based solution, which is neat..  
but it looks like this next guy used some of this code, and made it better:

I’d [linked](https://forum.electromage.com/t/2d-pixel-coordinate-mapping-tool-for-images/714/3) this before here and just refound that post, and [another](https://forum.electromage.com/t/awesome-exporation-of-3d-mapping-of-abstract-shapes/856/3) by @devoh that mentioned it as well.

> **[LED3DMap](https://led3dmap.lights0123.com)**
>
> A tool to automatically create 3D mappings of lights from two videos

This one is a web app you upload video to…(and the web stuff is [open sourced](https://github.com/lights0123/LED3DMap)) and it uses an Arduino program to generate the led pattern (just a run thru each led) which you then video. SO… If someone ports that [super simple .ino](https://github.com/lights0123/LED3DMap/blob/main/static/LightMapper.ino) pattern code into a PB pattern, then with just that pattern and two self recorded videos, you’d be all set.  
Right now that is the method I’d prefer to see us flesh out. I think we can make this into a PB recommended solution.

Ben did a great [2D mapping tool](http://app.bhencke.com/pixelmap.html), but I’m not aware of a 3D one (yet). @wizard , since the above led3D code runs entirely locally in a browser (no video uploading is needed), you could tweak and host that, if you wished, and have a 3D tool as well. An .epe to download the pattern onto the PB, take two videos at right angles, and then load the webpage add videos, and then 3D video mapping that generates the map in a cut/paste format ready to go for PB.

---

_[View the full topic](https://forum.electromage.com/t/blinkfade-in-cube-frame/1280)._
