The problem
I code and read at this desk for hours, and my eyes get tired. The usual advice is "get more light", which is useless, because it does not tell me which lamp or where to put it. A lux meter app gives one number for wherever the phone happens to be lying, not for the surface I actually work on.
Lighting standards answer the question properly. SNI 6197:2011 asks for 300 lx in a work room at home, and EN 12464-1:2021 asks for 500 lx for reading, writing, typing and screen work. Both are defined as the average over the task area. But nobody can look at their desk and tell whether it is at 9 lx or 500 lx.
What Lumen does
Lumen draws the light on your desk, in lux, at real size, and compares it with a published standard. You place a lamp where you are thinking of putting one, and the Lens tells you whether the surface you work on would then reach the target.
The one spatial moment: with only my ceiling light on, my laptop's footprint gets about 9 lux and the whole desk is amber, meaning below target. I turn on the lamp and drag it toward the laptop. The reading climbs past 500 lux, the amber area shrinks as the light reaches the target, and dragging the lamp away lets it fall again.
Features
- The light on the surface, not one point. A heatmap over the whole desk, a white contour line exactly where the light equals the target, and the below-target area in light amber.
- A reading that follows the task, not the room. A flat footprint the size of my laptop lies on the desk and is dragged like anything else. The number is the average illuminance inside it, because that is how both standards define their target.
- Two standards, one button. A flat 8 cm button on the desk's front-right corner, outside the lit area, switches between 300 lx (SNI 6197:2011) and 500 lx (EN 12464-1:2021, Table 34, row 34.2). The contour on the desk moves with it; the button flashes the standard's name for two seconds and then gets out of the way.
- Tap and drag on the same object. A short pinch on the lamp toggles it; a pinch that moves more than 2 cm drags it. No second button to learn.
- Your own lamp's numbers. The lamp's lumens, cone angle and height are script inputs, so you can enter the lamp you are considering and see what it would do on your desk.
- Your head blocks light too. A sphere at the camera position blocks the lamp and draws its shadow on the desk in light violet. See the honest note below.
Why glasses
The answer has to appear on the surface you are judging, from where you sit. A phone app can tell you a number; it cannot show you that the left half of your desk, where your laptop actually sits, is the part below target. And your hands stay on the keyboard: one pinch switches the standard.
Honest limits, up front
- The light is calculated, never measured. No light sensor. Illuminance comes from the lamp's lumens, cone angle and distance, using the inverse-square law with a cosine term.
- No bounced light. I checked the model against reality once, on my own desk, with only the ceiling light on: Lumen gives about 9 lux, and a lux meter app on my phone reads 34 lux. The difference is light reflecting off walls and ceiling, which Lumen ignores. The model was deliberately not tuned to match the phone, because that would make it look accurate without being so. Both numbers are far under 300 lx, which is the finding that matters.
- In the preview, the desk and lamps are stand-ins, generated in code at real size from my own room's measurements. On glasses they are your real desk and your real lamps; a script hides every stand-in on a real device.
- The desk lamp is one I do not own yet. That is the point: the Lens shows where it would have to go for the desk to reach the standard, before I buy it.
- The head shadow passes its automated test but I could not reproduce it by hand in the preview, so it is not shown in the video. It is recorded as unproven in the repository.
- Nothing has run on Spectacles hardware; none was available.
How it was built
Planned with the Learn AR with SPECS skill pack. The plan-lens interview produced
devpost/design-brief.md, which was approved before any code existed, and it is in the repo
unchanged. The Lens was then built by an AI coding agent through CLAD, Lens Studio and the Lens
Studio MCP, from that brief.
Five LEAF scenarios, one per done criterion, all passing in one run: 208.3 -> 705.9 -> 138.1 lx for
the drag, 9.03 lx with the lamp off, 55.1 % -> 79.4 % of the desk below target when the standard
switches, 138.1 -> 2.7 lx under the head, and 0 cm versus 87 cm for tap against drag. The numbers
and what they do not prove are in devpost/LEAF_RESULTS.md.
What I learned
Measuring my own room was harder than building the Lens. I own no tape measure, so I estimated the desk in hand spans and was 43 % out. Calibrating against my laptop's known width (359.8 mm) in a photograph fixed it. The ceiling fixture turned out not to be a bulb at all, but an LED module inside a ceiling fan, which changed its height and position in the model.
The display being additive also forced a design decision: black renders as transparent on Spectacles, so "not enough light" cannot be drawn by darkening the desk. It is drawn in light amber instead, and the heatmap never lets that colour fall below 0.55 brightness.
What is next
A book standing upright at the back of the desk, with its own footprint and reading, because a lamp that lights the desk surface well can still leave an upright page dim. It is recorded under Later in the brief. Also: screen reflection, which EN 12464-1 names for this exact row but Lumen does not model, and recognising real lamps so the placement is remembered between sessions.
Built With
- clad
- leaf-test-framework
- lens-studio
- lens-studio-mcp
- snap-spectacles
- spectacles-interaction-kit
- typescript
