A quick and easy solution on how to render a Normal Pass out of Blender that will work with the ‘Normality’-plugin in After Effects.
First of all, let me thank the user ‘testscreenings’ and Stefan Minning for their your support first. Credits go out to ‘testscreenings’ for finding the final solution.
Now lets get started!
If you ever try to render out a Normal Pass out of Blender, you’ll be wondering why the normals look some kind of strange.
Take a look:

Basicly, rendering a Normal-Pass out of Blender would consist in activating the “Nor” button in the ‘Render Layers’ settings, and either have your render saved as an OpenEXR file; or to route the ‘Nor’ output to the ‘Composite’-node using Blenders compositing-nodes.

But if you import your Normal Pass in After Effects and use it as the Normal-Map input for Normality, this is what you’re going to run into:

The ‘problem’ is that Blender renders a Normal Pass using the ‘World’ as default Normal Space. Since ‘Normality’ is using the Tangent Normal Space, this is how we’re going to convert our Normal Pass to make it compatible.
Here’s a shot of the final Compositing Nodes Setup:

- first, route the ‘Normal’ output from your ‘Render Layer’ to a ‘Mix’ node and turn its blending mode to ‘Multiply’
- set it’s value to 1.00
- click on the little gray field next to the ‘image’-input, and switch its color to Hex: 7F7F7F

- now duplicate your ‘Multiyply’-node and switch the blending mode of the duplicated node to ‘Add’
- route the ‘Multiply’-nodes output to the new ‘Add’-node
- create an ‘Invert’-node
- connect the ‘Add’-node to the ‘Invert’-nodes ‘Image’-Input
- duplicate your ‘Multiply’-node once again
- connect the ‘Invert’-nodes output to your ‘Multiply’-nodes input
- now use the Alpha Channel of you ‘Render Layers’ and route it to the second input of your final ‘Multiply’-node
- connect the ‘Multiply’-node to the Composite input
- render
This is what your result should look like:

Now this post-processed Normal Pass will work with the Normality plugin. Here’s the result using the corrected Normal-Pass out of After Effects:

The Blend file can be found here: LINK
This nodes-setup can be used as a Material Nodes setup too, check it out:

Be sure to check ‘Schnitzelkillers’ thread on Blenderartists.org for further information about this technique.
A Blend-file containing this Material-Node setup can also be found here: LINK
Thank you everybody, and now get out there and have some fun! F12 ftw!
Posted in After Effects, Blender, _All Posts