Lens Distortion & Chromatic Aberration in Blender
Adding optical imperfections like lens distortion and chromatic aberration is one of the most effective ways to make 3D renders look like real-world camera footage. This guide explains how to quickly apply and control both effects using Blender's built-in Compositor to achieve a photorealistic, cinematic finish.
Step 1: Open the Blender Compositor
- Render your image or animation first by pressing F12.
- Switch to the Compositing workspace from the top menu bar.
- Check the Use Nodes box at the top of the editor.
- You will see two default nodes: Render Layers and Composite.
- Press Shift + A, search for Viewer, and connect the Image output of the Render Layers node to the Viewer node to preview changes in the background (press V to zoom out, Alt + V to zoom in).
Step 2: Add the Lens Distortion Node
The fastest and most efficient way to add both lens curvature and chromatic fringing is with the dedicated Lens Distortion node:
- Press Shift + A and navigate to Distort > Lens Distortion.
- Drop the node onto the connection line between the Render Layers node and the Composite node.
- Also connect the output to the Viewer node to see real-time updates.
Step 3: Configure Realistic Parameters
Subtlety is key for realism. Overdoing these effects can make your render look blurry or amateur.
1. Chromatic Aberration (Dispersion)
- Dispersion: Controls the color fringing caused by different wavelengths of light bending at different angles.
- Recommended Value: Set between
0.01and0.03. Higher values (e.g., above0.05) are usually too intense unless you are simulating a damaged vintage lens or an action camera.
2. Lens Distortion (Distort vs. K)
- Distort: Warps the image. A positive value creates a barrel distortion (edges bend outward, typical of wide-angle/fisheye lenses), while a negative value creates a pincushion distortion (edges pull inward, typical of telephoto lenses).
- Recommended Value: Set between
0.01and0.03for standard wide-angle cameras, or-0.01to-0.02for subtle telephoto effects. - Fit: Check the Fit checkbox. This automatically scales the distorted image so no black borders appear at the frame edges.
Alternative: Channel Shifting for Chromatic Aberration
If you want chromatic aberration without warping the image geometry:
- Press Shift + A and add a Color > Separate Color node.
- Add a Color > Combine Color node.
- Connect the Red, Green, and Blue channels respectively from Separate to Combine.
- Place a Distort > Transform or Distort
> Scale node between one of the color channels (such as the
Red channel) and set the scale to
1.002. - Connect the combined output back to your Composite node.