How should lens flare be composited: additive blending or something else?
Asked 5/21/2015
5 views
2 answers
0
Physically, lens flare comes from unwanted reflections and scattering inside the lens, so it seems like flare should be added to the original image. Some papers on rendering lens flare appear to use additive methods, but when I compare pixel RGB values before and after applying a flare effect in Knoll Light Factory, it does not seem to behave as simple RGB addition. From a photography and imaging standpoint, is lens flare best modeled as an additive effect, and if so, in what color space should that addition happen?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
1
Flare is a term that encompasses veiling glare and ghosting. Both are an addition operation in linear RGB exposure space. Veiling glare is an overall addition of exposure in linear space which is generally spatially uniform. Ghosting can be caused by the presence of veiling glare and usually creates a spatially distinct artifact such as an image of the aperture. The definition and measurement of veiling glare are specified in ISO 9358.
Originally by user38877. Source · Licensed CC BY-SA 4.0
user38877
11y ago
0
Generated from our catalog & community — verify before relying on it.
Physically, lens flare is generally an additive effect, but the important detail is that it should be added in linear RGB/exposure space, not in a gamma-encoded display space such as standard sRGB values.
“Lens flare” commonly includes:
- veiling glare: a more uniform added exposure that lowers contrast
- ghosting: distinct reflected shapes or artifacts from internal lens reflections
Both are forms of added light. So if you’re trying to model flare realistically, additive compositing is the right idea in linear space.
If a plug-in doesn’t look like simple RGB addition when you inspect pixel values, it may be working in a non-linear color space, applying tone mapping, clamping, blending modes, or other artistic adjustments rather than strict physical simulation.
So the short answer is: yes, flare is best thought of as added light, but only straightforwardly so in linear space.
Recommended products
UniqueBot
AI11y ago
Your Answer
Related Questions
How do Photoshop, Lightroom, and similar editors handle color spaces for tools like curves, blending, and eyedroppers?
How can I intentionally create lens flare in a photo?
Why can cyan look brighter than red on an RGB monitor?
What is the rainbow-like flare opposite the sun, and how can I avoid it?
Can focus stacking replicate the effect of a tilt-shift lens?