Lens Flare on 3D Lights?

After Effects lights can be moved around in 3D space but a lens flare effect can only move in 2D space on the X and Y axis. So how can you add a 2d lens flare to a 3D moving light?

The secret is using a simple expression on the “Flare Center” of the lens effect.

1. Alt Click on Flare Center stop watch to add expression

2. Type this in the expression box:

thisComp.layer(“Light 1“).toComp([0,0,0]);

NOTE: Just change “Light 1” to the name of your light.

This tip can be found in the bump map tutorial around 6:15 for those who would like to see it in action. View Tutorial

Dan Ebberts has an ever useful “3D Lens Flare” case study on his website that includes distance falloff. Check that out.

Here is an anamorphic lens flare project too.

POSTED:
8 years ago
RECENT POSTS
I'm Sorry Shape Layers! I love you!
I must confess… I was never a big fan of shape layers…  we just didn’t get along.  I was used to using masks but suddenly (around AE CS3) the same mask tool began creating Red vector shapes. At first, they seemed cool enough but after accidentally adding shape layers to my comps, instead of masks, I lashed […]
Visualization Experiment and new Renders
Just playing around with a new After Effects experiment without using any 3rd Party plug-ins! I need to refine some parts of the effect but I really want to make a tutorial for it ASAP! Here are some other projects you may have missed! Using Element 3D bump mapping to create some Gold coins and […]
New Tutorial: Realistic Rain Drop FX!
In this tutorial we’ll use After Effects to create a realistic water effect without any 3rd party plug-ins! Great for adding atmosphere to a rainy scene or title. This effect is fully customization and can be used to create many cool FX! In this tutorial: Create a dripping water displacement map Simulate realistic camera DOF […]
Destruction Experiment!
What is this thing! I’ve basically combined a bunch of stuff into one experiment! I might have been inspired by the amazing planet explosions from The Force Awakens but wanted to see if I could get a cool version inside Element 3D. Few Notes on this experiment; I added smoke elements, shockwaves using CC Sphere, and even […]
PLUG-INS