SET SKY TIMELIVE
● RETURN TO LIVE SKY
← JOURNAL
·WIP, DEMO

stereoflux [prototype]

A web-based lighting calculation and rendering prototype

The problem: Lighting designers keep two models, one for the picture and one for the numbers.

The prototype: One model in a browser gives both.

The result: It works, and the engine passes the electric-light cases of the CIE 171 accuracy tests. I parked it because building a 3D modeler from scratch ate all my time.

The problem

Lighting designers traditionally work with two separate models. One is for visualization, if we aren't just borrowing the architect's renders. The other is for calculations.

Neither is great. The architect's renders often wildly misrepresent how the lighting in a space will look. The calc model looks like something out of Windows 98, mostly because the legacy lighting design platforms haven't changed much since then.

Stereoflux was my attempt to do both in one model, in a browser.

What it does

You import a model, place luminaires (light fixtures) and calc grids (the surfaces where light levels get measured), and hit Calculate. The results come back in false color on the same model. Hit Simulate and you get a photoreal render of that scene too.

How it's built

Stereoflux system architecture: a React and Three.js web app, a Fastify API, PostgreSQL, Redis and object storage, and render workers running headless Blender Cycles
How it fits together.

The editor is a React app with a Three.js viewport. Three.js is a JavaScript library for 3D in the browser. The rendering runs on Blender's Cycles, a path tracer (a renderer that simulates light by tracing rays through the scene). It runs headless, meaning with no interface, on a machine with a GPU. Luminaires are built from IES files, the photometric data manufacturers publish for their fixtures.

Accuracy

I tested the engine against CIE 171:2006, the standard set of test cases for checking the accuracy of lighting software.

  • Electric light: all six cases I ran pass. The largest error at any measurement point was 4.94%, against a 5% tolerance. Five of the six landed within about 1%.
  • Daylight: the six cases pass partially. The misses are at points on the edges of openings, at grazing angles, and at shadow boundaries.

The full results are on GitHub.

What I learned

All of it works fairly well. But building 3D modeling tools from scratch was eating all my time.

This was proof that I could build something that worked the way I wanted it to. It was really fun and exciting to build. It was also hacked together quickly, which would make it a nightmare to maintain. And some foundational decisions would end up limiting parts of the platform: the render engine, the material libraries, the from-scratch modeler.

What's next

The next version will likely be a Rhino or 3ds Max plugin. That lets me lean on established modeling programs and focus on the parts that matter to me. I'll post more about that later.

FILED FROM LAS VEGAS, NVLAST REVISED 2026/12/04
← PREVIOUSIntro
© 2026 JEFF THOMPSONWX · OPEN-METEO.COMLIVE SKY — 45.37°N 121.69°W
stereoflux [prototype] — Jeff Thompson