Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normal map issues #11

Open
serenios opened this issue Oct 8, 2018 · 3 comments
Open

Normal map issues #11

serenios opened this issue Oct 8, 2018 · 3 comments

Comments

@serenios
Copy link

serenios commented Oct 8, 2018

Hi, recently I'm using your code to render normal maps.
But I find that the rendered normal map looks like different to the traditional one.

It looks like
stanford-shapenet-renderer-master_r_030_normal png0001
rather than
2
So, I wonder if there could be a way to render normal maps looks like the above one.
Thx!

@panmari
Copy link
Owner

panmari commented Oct 8, 2018

Do you mean a bump map?

The normal map created here does the "normal" thing by visualizing the normal vector (ie the vector pointing away from the surface) to RGB.

@serenios
Copy link
Author

serenios commented Oct 8, 2018

Thanks very much for your reply!
Actually I mean normal map in Tangent Space.
The predominantly blue looking normal maps.
Which looks like this, for example:
image
if there could be a way to render this kind normal maps.

@panmari
Copy link
Owner

panmari commented Oct 8, 2018

I see. It should be possible to add a Normal Map Node and set the space there to tangent, see https://docs.blender.org/manual/ko/dev/render/cycles/nodes/types/vector/normal_map.html.

The script currently does not use a Normal Map Node, it simply reads out the normal from the render layers that are always present, see

links.new(render_layers.outputs['Normal'], scale_normal.inputs[1])

I'm happy to accept a CL that adds an option for rendering tangents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants