We note this process is immediate, and generates accurate color sensor readings for any sun/fixture configuration even though the corresponding scene is never actually rendered. Thus, even though it may take several minutes or hours to render all the basis colormap images and collect color sensor readings (i.e., C and {dt }) , the input–output relationship in the control loop is simply a lowdimensional matrix–vector product, allowing rapid exploration of different control strategies for a given space.
Fig. 7. Procedure of real-time simulation with lighting control.
Since we ultimately want to visualize the changing illumination in the room due to the control algorithm, we also record the lightmap lt corresponding to the determined illumination at time t (i.e., a 1024 × 1024 matrix), which like (4) is a linear combination of precomputed lightmaps using the control inputs ut as weightings. These are computed in a batch after the control simulation is complete, imported all together into Unity, and allow the resulting video to be accurately rendered in real time. The overall