1
$\begingroup$

Here's a result of Normal pass in Eevee:

enter image description here

Faces with normals in -1..0 range are rendered black. Is it possible to remap this range to 0..1 using Compositor? Here's the desired result made with a material:

enter image description here

I tried to render Normals pass in 32b .exr but it seems that there's no information about these normals in there.

$\endgroup$
3
  • $\begingroup$ Does it have to be in the compositor? In the shader, you could always use a Map Range node. or do it the oldschool way - (Normal Value + 1 / 2). $\endgroup$ Commented Jul 20, 2020 at 14:48
  • $\begingroup$ @ChristopherBennett I can do that in a shader (my second gif) but I want to be able to quickly render this: with a shader I'll need to override all the materials (and vanilla Eevee doesn't allow that), turn off all the effects like bloom/AO, then turn them back on... $\endgroup$ Commented Jul 20, 2020 at 17:47
  • 1
    $\begingroup$ Ahh, I see. Never mind then. Unfortunately I don't know how to do that in the compositor. I'll up-vote the question in the hopes that some user who is more knowledgeable in this area might happen by. $\endgroup$ Commented Jul 20, 2020 at 17:50

1 Answer 1

1
$\begingroup$

The image below gives a node set up that you could use in the compositor. It splits up the normal into its rgba values, takes the absolute value of each component (using the Math node with the "Absolute" setting), and then recombines them.

Compositor Nodes

$\endgroup$
3
  • $\begingroup$ Hi Eliot, thank you for response! This works on a cube, but a sphere shows that mapping is made, I think, 0..-1..0..1, not -1..0..1: there's a border going through 0 i.imgur.com/akyRE3e.png $\endgroup$ Commented Jul 23, 2020 at 4:44
  • $\begingroup$ @SergeyKritskiy Thanks for pointing that out. I fixed the answer and also realized that I didn't even need the second branch of nodes since I could just use the Absolute Value math node. $\endgroup$ Commented Jul 23, 2020 at 16:26
  • $\begingroup$ Ugh I tried to fix that myself and solution was so simple (well, also 'to learn nodes'..). Thank you! $\endgroup$ Commented Jul 24, 2020 at 8:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .