Here’s the initial version of my python Kelvin to RGB converter:
For people unfamiliar with the “temperature” measurements for lighting, incandescent sources can by represented in Kelvins. For example, a candle might be 1800K, and lightbulb around 3000K, noon-day sun would be about 5000K and partly cloudy sky is about 8000K or more.
Films have a white-balance that’s usually 3200K for indoors and 5500K for outdoors. The difference between the light source temp and the reference determines the visible color cast of the light. Temps less than the reference get more orange and temps greater get more blue.
For example, a lightbulb appears creamy white and light from a window is blue when using indoor film or with a camera white-balanced that way. Using outdoor film, however, the bulb’s light will cast yellow-orange and sunlight will appear white.
This script allows you to manually set a reference and light temperature or choose from a set of approximate preset values. You can select any of the lamps that exist in your blend at the time the script is started. The GUI will compare your current light color with a preview color, and allow you to change the color of that light from its interface.
It’s can be useful for:
- rapidly producing realistic lighting scenarios
- compositing blender-created objects on to actual photos or films
- learning more about lighting and color
- just messin’ around
Let me know what you folks think! If the response is good, I’ll get in touch with the bundled scripts group and see if this is something worth including in the distributions. Other 3D packages have something like this, so it makes sense that we would, too!