r/FastLED • u/DCorboy • Nov 23 '25
Share_something 3D Point Cloud LED Christmas Tree
I’m in the final stages of the animated LED Christmas Tree I’m building with FastLED and a Dig-Quad.
My goal was to create procedural animations that would render based on the 3D positions of each light on the tree so I first created a point cloud-based tree simulation in JavaScript, and some basic tools for making simple animations. Later I added a porting layer to allow the animations to be more easily implemented in C++ on the ESP32.
Over the intervening year-and-a-half (having missed the 2024 Christmas window), I built out the animation component system with timelines and easing, UV mapping, particle systems, 3D transforms, and spatial distribution, as well as portable math, noise, and color blending/management. The tree ESP32 serves a web page for choosing an animation or playlist for the tree, as well as monitoring temperature and memory use.
The clips in the video are from the JavaScript development simulator and I’m stringing the actual tree right now. At this point in the construction, the one completed light strand shows promising results with coherent patterns. It also shows quite a few platform bugs. Most of the animations have been ported and the overall problems seem manageable. I hope it’ll be smooth-enough sailing into Christmas!
Relevance: FastLED, QuinLED Dig-Quad, Wemos D1-Mini32, five-hundred WS2815 lights in three 12-volt strands.
9
u/HungInSarfLondon Nov 23 '25
I did something like this some years back - used opencv to process a video of the tree flashing each LED in turn, build an x-y map and use that as a 2d array. Fun project but I only had a string of 50.
4
u/zuptar Nov 23 '25
I built my own 3d point cloud system recently, but I'm specifically impressed with your simulation thing and I'm curious how you approached doing that.
Also I'm curious how you get animations to look good, I'm very hit and miss, 3d is a lot harder than 2d.
2
u/LateralThinkerer Nov 23 '25
This is very cool. How will you handle the disassembly/storage/reassembly-indexing of the strings on the tree?
2
u/0b1kenob Nov 25 '25
You forgot to simulate a big fire....
2
u/ericbruggema Feb 02 '26
Amazing project! I'm working on the same kind of led strip at the moment. Working on using a script with multiple led strips and multiple segments per strip. So i can create / display differend demo's on part of led strips.
But a tiny question. How do you solder these, i have gaps between leds of 2.5cm... so not alot of space to work with and would use it outside, so the connection must be waterproof..
2
u/Sufficient_Cook8997 Nov 24 '25
For anyone looking for a commercial version of this, search for Twinkly. We have them and they’re awesome.
3
u/IntrovertMoTown1 Nov 24 '25
That is awesome. Unfortunately no amount of technical knowledge or skill is enough to put those away and take them out again without them getting tangled. 😄
1
u/Conscious-Anybody553 Nov 25 '25
Smurfberry crunch ruined the Nutcracker suite for me
1
u/Gastje888 Nov 27 '25
Awesome! I made a small tree with the same kind of lights. I mapped the entire tree( 50leds) as a 2d array, that way you can also create a few nice effects. I do address some LEDs multiple times, bit you can hardly notice it because it's not that big
1
u/wondercreatory Nov 27 '25
Ok this is awesome, the tree is on fire!!
0
u/[deleted] Nov 23 '25
[deleted] — view deleted comment
2
u/[deleted] Nov 26 '25
[removed] — view removed comment