In this lesson, you're going to learn about a pro-tip that will help your lens flares and gradations look fantastic when you export.
We're going to look at an example project. Right now, example my project is in 16 bits per channel color depth. Now, the default in After Effects is 8 bits per channel. Why does this matter? Banding.
Anytime that you have gradients, and in particular lens flares, you'll see some banding going on. That is because in 8 bit per channel color mode, the red, the blue, the green, and the alpha channel only have 256 values to work with.
Now, if you Alt click on the channel button you can jump up to 16 bits per channel. Which will improve the banding slightly.
Alt click on the channel button again and you will jump to 32 bits per channel. This will improve the banding, but you can still see it. And once you compress your video you will see more banding. This is because the color compression is going to average the colors out and throw away some of the color information.
How to Add Noise
So let's go back to 8 bits per channel and fix this banding situation. The way to fix this is with Noise (also known as Dithering).
Now if I take this adjustment layer and I drop a noise effect on it, when I turn up the noise, at some point, the banding is going to go away.
You can also stack this noise effect to improve the banding even further. So instead of just adding it to the adjustment layer, I'm going to copy this effect and add it to the 'optical flares' (called OF in the screenshot) layer just below.
Turn the noise down to maybe 1%.
Copy the noise effect again and add it to the second optical flares layer just below.
Now we have two little tiny grains which are stacked on top of each other. From here you can adjust the amount of noise by 1% or 2% until the banding goes away.
From here change the project from 8 bits per channel to 16 bits per channel and the banding will disappear even more. Even if you zoom right in.
Now when this gets compressed, especially for the web, a lot of that noise along with much of the tiny details of the video, will get compressed out. This is absolutely fine if you want to upload the video to something like YouTube, for example.
How to Add Grain
Another way to do this is to add Grain to the project. So look for Add Grain in the Effects and Presets panel and add it to the adjustments layer.
In the Effects Controls panel change the viewing mode to Final Output (be aware that this may slow down the performance of your computer).
Turn down the intensity to 0.3 or 0.5 and you can see that this is also a very successful way of adding some texture and noise to the scene.
How to Pre-Render the Grain Effect
You can also pre-render the grain effect which may help with any performance issues that you might come across.
Create a new composition with the same size as your project (for example 1920 x 1080), 29.97 frames per second, 5 seconds long, and click OK.
Add a gray solid to this, and make sure that it has no hue, no saturation and that it's It's 50% gray.
Add the grain effect to this and set it to final output. You can then adjust the noise effect to your liking here by adding more intensity etc.
Add it to the render que and render the video. For this example we are going to use the GoPro CineForm YUV10-bit preset. One of the Apple Pro as presets would also work.
Once that is done, return to the project and import the new grain video into it. Click and drag it into the composition, making sure that it is on top of all the other layers.
Change the blending mode to either Overlay or Linear Light.
If you feel the grain effect is too aggressive you can turn down the opacity to make it look nicer and a little more subtle.
To extend the time duration of the grain effect you can add Time Remapping. This is done by going to Layer > Time > Enable Time Remapping.
Once you've enabled time remapping, I'm going to apply a very simple expression. I'm gonna alt click on the time remap and type
From there you can just extend the out point of this layer, and it's going to loop indefinitely when you hit the play preview button.
Congratulations! And that's how you can add noise and grain in Adobe After Effects. Now that you've learned the basics, check out some of the other tutorials we have on Adobe After Effects below.
I hope you've found this tutorial useful and I'll see you next time on Envato Tuts+!
- How to Animate Handwritten Text in After EffectsJonathan Lam19 May 2022
- How to Use Shape Layers to Animate in After EffectsJonathan Lam04 May 2022
- How to Use Spatial Interpolation for Motion Animation in After EffectsJonathan Lam03 May 2022
- How to Use After Effects: Layer PropertiesJonathan Lam02 May 2022
- How to Use Layer Controls in After EffectsJonathan Lam01 May 2022
- How to Add Free Animations to Live-action Video in 30 Minutes With After EffectsJonathan Lam03 May 2022