Video Copilot's Advanced Electricity Effects in After Effects: A Step-by-Step Tutorial
In this series we explore the treasure trove of VFX tutorials from the archives. Join us on a journey back in time to revisit the timeless teachings of Andrew Kramer and Video Copilot. Despite changes in software and trends, the practical wisdom embedded in these classic tutorials remains just as relevant today. Let’s dig into these tutorials together, re-discovering practical insights that can still be applied in our modern VFX projects. This tutorial focuses on advanced electricity VFX. It's broken down into sections for easier understanding and you can download the project files here.
I. Project Setup & Basic Lightning
- Bit Depth: Set your After Effects project to 32-bits per channel (Alt + click on project settings). This provides better color information for bright effects.
- Import Footage: Import your background footage (e.g., street sidewalk) into a new composition.
- Create Lightning Solid: Create a new solid layer, named "Lightning Hit".
- Apply Advanced Lightning: Apply the "Advanced Lightning" effect to the solid. You can use the Effects & Presets panel or a tool like Video Copilot's Effects Console (Control + Spacebar).
- Initial Lightning Settings:
- Glow: Set Glow Opacity to 0%. A custom glow will be created later.
- Core Radius: Increase to around 3.
- Mask the Lightning: Use the Rectangle Mask Tool to create a mask around the bottom area where the lightning will hit the ground.
- Alpha Obstacle: Increase the Alpha Obstacle value to make the lightning interact with the mask, creating a contact point.
- Termination Threshold (Expert Settings): Lower to around 5% to prevent the lightning from extending beyond the layer bounds.
- Decay Main Core: Experiment with this to vary the lightning's thickness.
- Forking & Turbulence: Adjust these for the desired lightning complexity. Lower turbulence creates straighter lightning.
- Branching: Adjust to control the number of branches.
- Animate Core Radius: Alt-click the Core Radius stopwatch and add the expression
wiggle(7,3)
to create subtle variations in thickness. - Animate Conductivity: Alt-click the Conductivity stopwatch and add the expression
time*4*2
to create a slow, evolving electrical current. - Animate Direction (Optional): Keyframe the Direction property to add movement to the lightning bolt. Experiment with Core Drain and Fork Variation for more complex animations.
- Pre-compose Lightning: Select the lightning layer and choose Layer > Pre-compose. Select "Move all attributes into the new composition" and name it "Lightning Comp".
- Set Lightning Color: Double-click the "Lightning Comp" to open it and change the Core Color to your desired color (e.g., blue).
II. Creating the Reflection
- Specular Reflection: Duplicate the "Lightning Comp" (Control + D). Solo the duplicated layer.
- Linear Wipe (Highlight): Apply the "Linear Wipe" effect. Set the Transition Completion to 180 and position the wipe to isolate the bottom edge of the lightning, creating a specular highlight.
- Horizontal Blur: Apply "Fast Box Blur". Set Blur Dimensions to Horizontal and increase the Blur Radius.
- Vertical Blur: Apply another "Fast Box Blur". Set Blur Dimensions to Vertical and increase the Blur Radius.
- Solid Composite: Apply "Solid Composite". Set the color to black. This provides a background for the blur and allows greater control over the glow.
- Exposure: Apply the "Exposure" effect. Increase the Exposure value to create a bright streak.
- Set Blending Mode: Set the specular reflection layer's blending mode to "Add".
- Linear Wipe (Top Cut): Apply another "Linear Wipe" effect to the specular reflection layer. Set the Transition Completion to 180 and adjust the completion and feather to cut off the top part of the blur, creating a more 3D look.
- Diffuse Reflection: Duplicate the specular reflection layer and its texture. Name this layer "Diffuse". Increase the blur radius on both Fast Box Blur effects and adjust the exposure to create a softer, more spread-out reflection.
- Contact Point: Duplicate the specular reflection layer and its texture again. Name this layer "Point". Reduce the blur radius significantly and adjust the exposure to create a small, intense point of light at the contact area.
- Hot Spot (Optional): Import the provided "Hot Spot" element and set its blending mode to "Add". Position it at the lightning's origin. You can use Curves or other color correction effects to adjust its appearance.
- Integrating Texture:
- Import a grunge texture.
- Make it a 3D layer and rotate/scale to align with the ground plane.
- Pre-compose the texture layer (Layer > Pre-compose) and name it "Ground Texture".
- Set the specular reflection layer's Track Matte to "Luma Matte" and target the "Ground Texture" layer. This makes the texture influence the specular highlight.
- For a more dynamic reflection, copy the background footage into the "Ground Texture" composition. Set the blending mode to "Soft Light" and use Exposure to blend the footage's brightness with the texture.
III. Adding Glow to the Lightning
- Solid Composite: Apply "Solid Composite" to the "Lightning Comp" layer. Set the color to black.
- Glow 1: Apply the "Glow" effect. Set Threshold to 0, Intensity very low, and Radius to around 25-30.
- Glow 2 & 3: Duplicate the Glow effect twice. Increase the Radius on each duplicate (e.g., 100, 200).
- Exposure: Apply "Exposure" after the glows. Increase the exposure to boost the overall glow intensity.
- Hue/Saturation (Optional): Apply "Hue/Saturation" before the Exposure. Reduce saturation slightly to fine-tune the glow color.
- Turbulent Displace (Optional): Apply "Turbulent Displace" before the glow effects. Set Size to a very low value (around 2) and Complexity to 2-3. Increase the Amount slightly to add subtle noise and texture to the lightning.
- Vector Blur (Optional): Apply "Vector Blur" after the Turbulent Displace. Experiment with Amount and Ridge to create soft edges while retaining some hard edges. The order of these effects can significantly impact the final look.
- Exposure Wiggle: Add a wiggle expression to the Exposure effect's Exposure property:
wiggle(9,3)
. This creates flickering.
IV. Directional Lightning
- Create a Tall Solid: Create a new solid layer, significantly taller than your composition.
- Apply Advanced Lightning: Apply the "Advanced Lightning" effect. Set Glow Opacity to 0.
- Keyframe Animation: Keyframe the layer's Position, Origin, and Direction properties. Move the layer vertically and adjust the origin and direction points to create the illusion of traveling lightning. Use a mask and the Alpha Obstacle to control the interaction with the ground.
- Reverse Keyframes (Optional): To reverse the lightning direction, select the keyframes and choose Animation > Keyframe Assistant > Reverse Keyframes.
V. Subsurface Cloud Effect
- Import Cloud Footage: Import plain smoke or cloud footage into a new composition.
- Create Light Source: Create a new solid and apply the "Advanced Lightning" effect. Use the Omni setting for a sporadic look. Animate Conductivity and add a wiggle expression to the Core Radius. Set the Core Color to gold. Apply a "Solid Composite" set to black. Pre-compose this layer and name it "Light Comp".
- Create Diffused Glow: Apply a series of "Fast Box Blur," "Exposure," and "CC Composite (Add)" effects to the "Light Comp" layer, progressively increasing the blur radius and exposure. This creates a soft, diffused light source.
- Create Cloud Mask: Duplicate and arrange the smoke footage layers to create a cloud mask. Pre-compose these layers and name the composition "Smoke Mask". Add a Curves adjustment layer within the "Smoke Mask" composition to control the overall brightness and contrast.
- Apply Set Matte: Apply the "Set Matte" effect to the "Light Comp" layer. Set the Matte to "Smoke Mask" and Take Matte From to "Luminance". Invert the matte. Set the "Light Comp" layer's blending mode to "Add".
- Refine Alpha: Add a Curves or Exposure effect to the "Smoke Mask" composition and adjust the alpha channel to refine the light occlusion.
VI. Lightning Interacting with 3D Text (Element 3D)
- Create 3D Text: Create a solid layer and apply Element 3D. Create your text and apply materials. Add lights and adjust the environment as desired. Pre-compose all 3D elements.
- Create Lightning Solid: Create a new solid layer and apply the "Advanced Lightning" effect.
- Set Matte: Apply the "Set Matte" effect to the lightning layer. Set the Matte to the pre-composed 3D text layer and Take Matte From to "Alpha Channel". Increase the Alpha Obstacle value.
- Channel Blur: Apply "Channel Blur" above the lightning effect to diffuse the lightning's interaction with the 3D text.