Rendered Milum Lights

Selection of showcased lights rendered with our web-based light simulation system

Modern lighting systems are highly configurable, which makes it hard for manufacturers to show what a configuration does to a real room, especially as lamp shopping moves online. Traditional lighting design software is built for professionals, complex and non-interactive, and unsuitable for an online store. Existing web configurators are limited to 2D top-down views or a single lamp per scene.

Together with M. Riedi and H. Cords I built a web-based configurator with real-time light simulation running on the client. It does physically accurate path tracing in the browser, so someone shopping for lighting sees a realistic render update as they change fixtures. The work was published at IADIS Applied Computing 2024.

Lights use real photometric data from IES files. Analytical calculations and a texture-based approach keep it interactive on low-specification hardware and mobile devices instead of needing a GPU workstation.

LiSi Path Tracing Steps

(1) Direct light contribution, (2) Indirect light contribution, (3) Blurred indirect light contribution, (4) Final blended texture

Light Simulation

Room and lamp configurations are static while configuring, so the diffuse, view-independent light of each wall is precomputed into a wall texture and only recalculated when the room or lights change. Only the simple room geometry is rendered in real time. The pipeline has four steps:

  1. Direct light textures are created by sampling the IES data relative to each light's position and orientation.
  2. An indirect light texture per wall is calculated iteratively with reverse path tracing: rays are cast from the wall in random hemispherical directions, intersected analytically with all other walls, and the direct light textures at those points are averaged.
  3. The noisy indirect textures are blurred.
  4. The blurred indirect and direct textures are blended into the wall light maps.

Light and room positions are encoded directly in generated shader code, which is compiled at runtime and keeps slow GPU memory access low. The per-lamp radiation data from the IES file is passed as a texture, which also gives fast interpolation. The rooms are simple, so analytical geometry replaces ray intersections with polygon meshes. The system is now used in production in the online store of the lighting manufacturer RIBAG.

LiSi Web Interface Screenshot

The configurator: place and adjust lights and see the result in real time

Configurator

The configurator is built with React and TypeScript, using the Milum system by RIBAG as the case study: long support rails connected in snake-like layouts with light modules inserted. It is designed for novices. Zooming works like a map, so zooming in reveals light module settings and zooming out shows the whole system. An always-valid approach prevents incorrect configurations from the start, and presets let users begin from a predefined system. React Spring handles the animations during zooming.

My Role

I was in a team of 3 at the Institute for Interactive Technologies. I built the WebGL path tracer, the texture-based lighting precompute and made sure the whole system worked together seamlessly. The project was led by H. Cords and M. Riedi was responsible for the web configurator.

Features

  • GPU reverse path tracing with real photometric data (IES files)
  • Runs in the browser with WebGL, nothing to install
  • Precomputed lighting textures keep it smooth on low-end hardware
  • Change light position, color temperature and intensity and see the result immediately

Tech Stack

  • Rendering & Simulation: WebGL, GPU-based path tracing, texture-based global illumination
  • Frontend: React, TypeScript, JavaScript, SVG-based UI rendering
  • Optimization Techniques: Shader-based analytical calculations, iterative texture updates for indirect lighting
  • User Interaction: Always-valid configuration approach, smooth animations with React Spring

Publications

  • Fluri, L., Riedi, M., & Cords, H. (2024). Web-based light simulation and interactive configuration for lighting systems. In Proceedings of the 21st International Conference on Applied Computing.