- 3D printing
- Light & shadow
- DIY hardware
Build story · LumenCast
LumenCast: DIY 3D-Printed Shadow Lamp
How an Instagram reel motivated me to create a web application, that calculates light obstructions and creates shadow projections on the wall.

LumenCast is a DIY 3D-printed shadow lamp: you see one image on the wall itself, while an LED and four shaped side panels cast a different shadow image around it. For this build I combined a reusable A5 frame, replaceable paper artwork and a browser-based editor that generates the printable parts.
I came across orosi.light on Instagram and immediately wanted to try making a shadow lamp myself. The appeal was the relationship between two pictures: something you recognise in the image itself, and a shadow image that appears around it when the light comes on. My starting pair was Ellie and Joel from The Last of Us.
That became LumenCast. I wanted more than a one-off shape: an editor where I could place two images, move the light, and turn the result into parts I could actually print. The inspiration belongs to orosi.light. What follows is my own attempt to work through the geometry, printing and assembly, while staying as parametrized as possible for future adjustments.
The ideaTwo pictures, one light source
A small LED sits on a stem in front of the artwork and shines back toward the artwork and the wall. Four shaped panels around the image interrupt that light. Their silhouettes combine into the larger wall shadow image.
It is tempting to think of this as projecting a photograph. But in reality it is a set of carefully placed obstructions which combine into a larger shadow image. Move the LED and the geometry changes. Make a panel thicker and it casts more shadow. Add a necessary connector for stability and that connector gets a vote in the image too.

I turned the browser into my workbench: image placement, thresholding and cleanup, a 3D assembly preview, and STL export. It was important to me that the preview uses the actual parts, including their thickness, supports and holders. Showing the target picture behind the model would look convincing without proving that the lamp could cast it.

First prototypesStart with something measurable
Before chasing faces and tiny details, I printed a measurement grid and simple comb-shaped side panels. A ruler and an actual LED told me more than another polished render. The test made the central rectangular shadow, the direction of the light and the effect of the mounting edges very obvious.


Part of the unwanted rectangular shadow came from the structure surrounding the image: In the very first iteration, the obstacles that cast the shadow were attached to the image from above rather than from the side, which created additional dark edges. In the second iteration, I moved the connectors to the outer wall of the model. I also made each side of the connectors asymmetrical and spaced them differently, so that with the printed parts, you no longer had to guess which side they needed to be attached to. 🧠💡.
The slicer disagreedA connected mesh is not a sturdy print
Atreus and Kratos made a good next test: recognisable heads, an axe, and plenty of awkward narrow contours. They also exposed the difference between a detail surviving in an image and being a stable 3d printed surface.

Some walls had isolated fragments even before slicing. Others looked connected in the model, but the slicer could not preserve a hairline link with my 0.4-mm nozzle and roughly 0.4-0.45-mm line width. Enlarging the construction helped, and I eventually settled on A5, 148 × 210 mm, as the standard image size. Scale alone did not fix the topology.
I added island connections and checks for narrow passages. Then a pumpkin design revealed a different problem: a large outer section could be connected, printable, and still hang from one long, thin part connected to the images side. So next I added short cross-braces across nearby gaps, giving those sections another route back into the rest of the panel.
Every extra bridge changes the shadow. I tried more constrained bridge directions, including ones aligned with the light, but preferred the first iteration of short supports. My goal was a useful compromise: keep the important features, connect the fragile parts, and show the extra material in the preview instead of hiding its effect.
I added a "detail brush" feature to LumenCast to mark which areas matter most, such as Kratos's head or the axe outline. It prioritises those features; it cannot make physically unreachable, i..e. "floating" parts of a target appear.
The turning pointThe best image was not 3D printed
My original image plate was a printed relief with a filament change for the contrasting image. It worked, but replacing the picture meant printing another large plate. My Atreus relief plate came out at 102 g of filament and 4 hours 32 minutes in the slicer. That is a lot of plastic and printer time to repeat just to change the picture.
So I tried a normal paper print laid over a reusable image plate. Atreus already looked good on paper. That way I no longer had to print every line of the image, I could use colour, and changing the artwork became much cheaper in time and material.
A solid reusable plate still had a catch: its LED hole stayed in one place. If the next image needed the light somewhere else, I would have to print the plate again. My answer was a full grid of sockets. The LED snaps to an available position, and the paper template gets its hole at that same location.


The reuse has a boundary: moving the LED changes the shadow geometry, so the contour walls may still need reprinting. The expensive image plate and the rear frame can stay when their dimensions and fittings remain compatible.
Even securing a sheet of paper to the 3D-printed wall mount took several attempts. Corner retainers did not work well. Sloping tabs were no better in practice. I went back to small, flat lips with a short overhang: a 0.4-mm paper gap, followed by a 0.4-mm lip, or two layers at a 0.2-mm layer height. There are two tabs on each edge. I also gave the print template a thin cutting outline and a half-A4 option for printers that can handle borderless output.

Let the shadow continue across the picture
Another idea was to print the part of the shadow hidden by the image plate onto the paper itself. That dark pattern would sit behind the subject of the image, aligned with the shadow on the wall, so the larger shadow image reads as a complete composition. The character in the image and its enclosed light areas should stay intact. I also added an inverted-shadow option to try different contrasts.
Physical feedbackSmall fits, many iterations
The LED stem had its own cycle of fit coupons, promising prints and revisions. One snap fit seemed right, then its small hooks proved too fragile. I enlarged the receiver and strengthened the hooks. A later print was harder to insert than expected, so I gave the spring section back 1 mm of the length I had previously removed. And, of course, everything has been tested in PETG, but even there, such small tabs often turn out to be too brittle.

This is why I now derive the geometry from shared dimensions across the stem, the sockets in the image plate and the test pieces. A hole that follows one formula and a plug that follows yesterday's formula are an excellent way to waste an evening.
The software needed the same care. Once I had several nearly identical versions on disk, I added draft names, overwrite confirmation, recoverable revisions and revision suffixes on downloads. I also wanted every blocked STL download to explain the reason, and a paper template to remain downloadable while the slower 3D preview was calculating. Not all of it made it into the publicly available app, since I didn't want to require users to register just to get started. However, you can still download the drafts, so nothing is “lost” if you spend some time configuring your shadow lamp.
Behind the pictureMake the back as useful as the front
My early experiments had a USB power cable. For the battery version I used a switched four-AAA holder behind the image plate, with its cable running upward to the LED. The switch faces the wall. For that I increased the rear space and made the frame and hanger do more work by adding a "lock-in" tube mechanism.
Instead of building a solid box around the battery holder, I switched to a separate support that slots into the mounting grid from the back. It’s still a bit fiddly to turn on right now. Maybe there will be a revision at some point with a switch that’s easier to reach.


In the next revision I separated two jobs that the tubes had been doing: locating the battery and fitting the socket grid. Four small stops now define the 63 × 48.5-mm interior, while the tubes can move outward to match a suitable pair of holes. That lets a non-A5 design use the same battery holder too.

I gave the frame extra snap points at the top and bottom, plus a smooth support plug below the nail opening. The separate battery cradle uses 17.9-mm outer tubes and 3.5-mm insertion pins. The latest frame reference has 18.8 mm of rear space. I found these dimensions through successive fitting attempts.
Point the light the right wayThe light and the wiring
The light source is a through-hole LED sold on AliExpress as a 0.5-W LED. In the early setup, the LED largely shone away from the wall and the cap redirected some light back. For the later arrangement I bent the LED legs through 180 degrees so the LED points back down the stem toward the artwork and wall.
For quick tests, I powered the first version through a cable and a PENGLIN USB-C socket breakout board. It gave me a small, solderable power connection while I worked through the optics and printed parts. I added the battery holder later, to make the finished lamp self-contained. The USB-C board is a connector, not an LED current regulator.
I had also tried an adjustable driver. Flicker after a few minutes, slight warming and a trimmer that did not produce the brightness change I expected made that stage confusing. The battery build uses a 10-Ω and a 20-Ω resistor in series, giving 30 Ω in total. I used those because I already had them lying around. Power comes from four AAA batteries, not rechargeable cells, with the switch built into the battery holder. The resistors are soldered directly at the LED and insulated there. The two-pin connector lets that LED assembly unplug from the battery leads.


This records my build, not a universal resistor recommendation. The wattage of my spare resistors and the LED's continuous-current rating are not documented here. Verify those ratings and the actual current before reproducing the circuit.
The actual hardwareWhat went into the build
This is the parts list for the later battery-and-paper version. The earlier USB-C test board is listed separately below. The adjustable driver and the clear sleeve I considered during development are not part of this build.
| Part | What I used it for |
|---|---|
| 1 × AliExpress LED, sold as 0.5 W | The light source in the printed stem. The AliExpress listing I bought from, selecting the 0.5-W variant. |
| 1 × 10-Ω resistor 1 × 20-Ω resistor | Soldered in series directly at the LED for 30 Ω total, from parts I already had. The power ratings of these spare resistors are not recorded. |
| 1 × switched four-AAA battery holder | The enclosed 63 × 49 × 16-mm style discussed during the build. Original Amazon listing; the package contains multiple holders, the lamp uses one. |
| 4 × AAA batteries | Four ordinary AAA batteries, not rechargeables. The photographed cells are Amazon Basics, labelled 1.5 V. |
| 1 × two-pin connector pair with leads | Lyeteung PH 2.0-mm connector set, sold as JST-PH-compatible with 150-mm, 22-AWG leads. One mating pair disconnects the battery from the lamp. |
| Heat-shrink tubing and solder | Insulate the resistor and wire joints. The connector leads provide the short wiring runs. |
| Opaque printing filament | The socket image plate, four contour walls, LED stem and cap, rear frame and battery cradle. Black for the light-blocking parts. |
| Printer paper and a paper printer | The replaceable image, printed at 100% scale with its cutting outline and LED opening. |
| A suitable wall fixing | The rear frame hangs from its keyhole. Match the fixing to the wall and the finished lamp. |
Earlier bench-test part: one PENGLIN USB-C socket breakout board, with a USB supply and cable, for the initial wired version. It is not needed for the battery version above.
Product links are included for reference and are not affiliate links.
Built on open sourceThe code behind the lamp
LumenCast is a browser-based modelling tool written in TypeScript. The path from two pictures to a printable kit combines a few excellent libraries with the projection and printability logic I developed for this project:
- React connects the image editors, dimensions and LED controls to the application's state. Lucide supplies the interface icons.
- Three.js renders the assembled lamp and its parts, with orbit controls for inspecting the model and transform controls for moving the light.
- Manifold is the geometry engine. Its WebAssembly build turns outlines into solid parts and performs the unions, intersections and cuts needed for contour walls, sockets and holders.
- fflate packages the generated files into the downloadable ZIP kit, directly in the browser.
The geometry calculation runs in a native Web Worker, off the main UI thread. LumenCast's own code handles the relationship between the target image, LED position and side panels, then adds island connections, narrow-passage repairs and cross-braces. The resulting parts feed the preview and export. That distinction mattered throughout the build: a geometry library can construct a solid, but deciding where a fragile contour needs another bridge is specific to this lamp.
Vite handles the bundling. Vitest runs the automated checks. A big thank you to the maintainers and contributors behind all these projects. Their work let me spend my time on shadows, paper images and physical prototypes instead of building a renderer, geometry engine or ZIP library from scratch.
Before printingDIY shadow lamp: common questions
Which parts need to be 3D printed?
The image plate, four contour walls, LED stem and rear frame are printed parts. The paper version replaces the printed relief image with an ordinary paper print held against a reusable socket grid. The LED, resistors and battery holder are separate components listed in the parts list.
Can I change the picture without printing a new lamp?
A compatible image plate, rear frame and holder can be reused. Changing the target shadow or LED position can require new contour walls. For my Atreus comparison, the reusable image plate was 68 g versus 102 g for the relief plate, a 34-g saving on the initial print. Later compatible paper swaps avoid another plate print entirely.
Where do the STL files come from?
The LumenCast editor calculates a kit for the chosen images, dimensions and LED position, then exports the STL files in a ZIP. Open the public LumenCast editor to generate your own kit. Its geometry and export run in the browser.
From a pair of characters to a toolWhere LumenCast goes next
Ellie and Joel were the spark. Atreus and Kratos became a demanding geometry test. A ghost and a pumpkin pushed the paper version further. The reusable image plate is what makes me want to keep trying new combinations: change the picture, choose the LED socket, print the walls that belong to that arrangement.

The biggest lesson was to keep bringing the design back to the real object. A disconnected sliver in the slicer, a hook that breaks on insertion, a paper tab that sags or a battery lid that cannot slide open are all information the next iteration needs. I built the useful version of LumenCast out of exactly those corrections.
What I want to try next
- LED cap: revisit the cover over the LED and test its shape on the real lamp.
- A transparent tube: try an acrylic tube or clear plastic film rolled into a small sleeve around the LED.
- Rechargeable power and automatic light: explore USB-C charging, a rechargeable battery, and an ESP32 with an ambient-light sensor to turn the lamp on when it gets dark outside and off when it is bright again.
More build photos: the LumenCast album. Original inspiration: orosi.light. Character artwork is shown here as part of my personal builds; the characters belong to their respective creators.