magnetiq

Multiple Synthetic Lights

Multiple photographs taken with different light sources can be blended together to create images that appear to have all the light sources simultaneously active. The light sources can be attributed arbitrary colors as well, allowing the creation of an infinite number of synthetic scenes.

Quoting from Synthetic Lighting for Photography by Paul Haeberli:

Light from different light sources add together to illuminate objects in a scene. We can use this super-position principle to modify the lighting of a scene after it has been photographed…

I’ve created an interactive application with three light sources with different colors.

Hover over the image to change the intensities of the three light sources.

This was originally done using Processing, then ported to Processing.js (deprecated) and I’ve recently ported it to p5.js with GPT-4. You can download the original PDE file or the ported p5.js file.

The images I’ve used are below. They’re taken from this article about lighting direction.

Ambient light

Light coming from the left

Light coming from the top

Light coming from the right