1
$\begingroup$

When we import a mesh into Blender, we can get a lot of information, and normal is one of the properties.

The Normal in Render Layers in the Compositing is connected to File Output, and export in exr format:

enter image description here

We then form a point cloud with normal (without faces). The result is:

enter image description here

and the correct normal should be:

enter image description here

And we also found that the length of the normal is not equal to one, so how to render the numerically accurate normal, and what's the meaning of the Normal in Render Layers? In addition, what is the difference between normals obtained in "Shading" and "Compositing"?

Here we provide data and code for the test:

  • step 1: /home/lab9/Installs/blender-2.92.0-linux64/blender --background --python /home/lab9/Documents/blender_render/blender_0_render.py -- 0 1 1 "test"

  • step 2: python blender_2_postprocess.py

  • step 3: python test.py

Please pay attention to modify the path_pfx in the file.

And the colored point cloud is (the rightmost is correct): enter image description here

$\endgroup$
0
1
$\begingroup$

I found the following three settings, please point out any errors:

  1. Normal(World Space) in Geometry Node

enter image description here

  1. Normal(Object Space) in Texture Coordinate Node

enter image description here

  1. You can convert to Camera Space by

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.