Is there an addon, or an easy way to add lens flare effects or light aberrations in Blender? I've been using Blender for a while now, and it's very time consuming to always have to export to another software to do them, and sometimes it's impossible if the scene is complex.

  • $\begingroup$ Do you mean light glares/flares that analyzes an image and add the flares/glares on top, or custom flares (i.e. you position it where you want it)? $\endgroup$
    – CharlesL
    Jul 17 '13 at 14:22
  • $\begingroup$ either one I guess. I know blender has the com positing capabilities with the glare node and such, but it's not very versatile... $\endgroup$
    – Wilhelm
    Jul 17 '13 at 14:37
  • $\begingroup$ In what way? The glare controls are robust enough, and if you want more or less flare, you can adjust the contrast. $\endgroup$
    – CharlesL
    Jul 17 '13 at 15:43

lens-flare shader

There is an OSL lens-flare shader by iReboot (aka Dylan Whiteman) which may interest you.

From his blog post referring to a lens-flare shader originally written for the Renderman language by Larry Gritz & Tony Apodaca of pixar, iReboot writes:

I decided to try and port this to OSL - (...) I added a few features, such as user definable images for lens-flare elements and have got to a point where the shader can now be released.(...) - along with video tutorial links

  • $\begingroup$ but this blog is for 2.67, the nodes have already changed, so how do you adapt it? $\endgroup$
    – user58715
    Jul 28 '19 at 13:50

In addition to the OSL shader mentioned by zeffi, you can try these:

  • Blender Internal(2.79 or less) only:
    You can use the Halo material with the Flare option enabled to fake lens flares.

  • Cycles and BI:
    Using Compositing nodes:
    You can use a Glare node set to Ghosts to make a lens flair.
    For chromatic aberration, you could use a Lens Distortion node with the Dispersion value set to something greater than zero.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.