Simulation-ready glazing materials, based on manufacturer data

Another past project, at dusk. The store sign and billboard across the street are modeled too, so the glass reflects what's really there.
The problem: A glass data sheet gives a few numbers. A renderer's settings don't match them, so facade renders get tuned by eye.
The tool: Enter the build-up and three numbers from the data sheet. It solves the glazing and writes a material for NVIDIA Iray.
The result: In Iray, light transmission lands within 1% of the data sheet.
The problem
Glass often decides a building's visual identity.
Choosing it is a blend of art and science. Years of experience. And a lot of guess and check, honestly.
Mockups are expensive. Comparing samples takes time. And it's hard to imagine a 12-inch square at the scale of a building.
Then the sky changes. The season, the time of day, the weather. The building changes with it.

A glazing study from a past project. Materials tuned by hand.
So it's hard to predict how a building will look. Sometimes it goes wrong in public. In Vancouver, the city stopped work on One Wall Centre mid-construction because the glass going up was darker than what it had approved. The top floors got lighter glass. The tower stood two-toned for more than a decade.
A data sheet doesn't help much. It gives a few numbers. Transmission. Reflectance outside, reflectance inside. The real thing has coatings, frit, light bouncing between the panes, the color of the mullions. All of it matters.
Physically based rendering was supposed to take out the guesswork. Simulate light the way it behaves. But a material can look right and still be way off. Most people get pretty far without knowing which settings decide whether the render matches the real world.
I closed that gap by hand for years. We picked stock materials from the Iray library and tuned them, every time. We got pretty close. It was still a pain in the butt. Slow, clunky, hard to automate. And almost nobody else at a very large firm could do it.
The numbers on a data sheet don't map onto a renderer's settings. The names don't match. There's no "put this number here."
That's the problem. How do we help architects simulate a facade accurately, so the client gets the building they're paying big money for?
How it works
So I built glass2mdl. (Naming convention carried over from pbr2rad.com, post here.)

How it works, end to end.
You build the glass the way the data sheet describes it. One pane, two, or three. How thick. Which glass. Where the coating sits.

A double-pane unit with a low-e coating, drawn by the tool.
Then you type in three numbers. Transmission. Reflectance outside. Reflectance inside.
The tool does the math. It starts from what's known about common glass. Then it solves for what the coating has to be doing for the whole unit to hit your numbers.

The fit check. What each pane and the coating have to do to hit the numbers.
That includes the light bouncing between the lites, the panes. It's really tough to do in your head, and it gets worse with every lite you stack.
It writes the result in MDL, NVIDIA's Material Definition Language. MDL describes a material in physical terms, so the math carries over. Some renderers' settings are more convoluted.
It draws the light for you. 100% arrives. You watch it step down through each pane. You see what comes out the other side, next to what the data sheet says.
Then you download the files and load them into Iray, NVIDIA's physically based renderer, in 3ds Max. A script finds the glass in your model and assigns the materials.

The script's window in 3ds Max, with a test scene rendering in Iray.
Results
I tested it in Iray. An overhead light, a black environment, a matte-black floor, and a light reading in the middle of it. First with no glass, then through the generated glass. The ratio between the two should match the data sheet's transmission.

Light measured on a black floor, no glass.

The same floor, through the generated glass.
In the cases I measured, the light getting through landed within 1% of the data sheet.
A double-pane AGC unit rated at 53% transmission measured 52.9%. The triple-pane version, rated at 48%, measured 48.0%.
How it's built
The solver and the MDL writer are a standalone TypeScript library that runs in your browser.
What's next
It's slated for use on several upcoming projects in 2027.
It's free. It's experimental. Spandrel glass, better frit, spectral rendering and an in-app preview are next.