I am trying to export a normal map in “tangent-space” from an orthographic view.
My first idea was to use a “matcap”/environment map for a custom material like this:
Than just save a screenshot/viewToFile.
I think it should work, but only in orthographic view, since with perspective, rays on the edge of the screen have different angles to the surface than those in the middle:
but with an orthographic view mode I get even more color shift:
how can i solve this problem? maybe a different way is easier,
1.I could render it with vray and the normals renderelement – but depending on the resolution could take a while
2.maybe theres a way with grasshopper: mesh > demesh> normals2color>construct mesh (but this would be worldspace)
3. some opengl shadermagic?
thanksfor any input !