cleardusk/3DDFA_V2

Getting Normal Map from the 3D Shape or Depth Map

TouqeerAhmad opened this issue · 0 comments

Hello, I have been trying to get the normal map from 3d shape/depth. Probing more into the code, I do see in render.py

overlap = render_app(ver, tri, overlap)
the lighting pipeline is used which then renders the texture or light. And inside the lighting.py surface normals are generated.
normal = get_normal(vertices, triangles)
However, when I pass these normals instead of the light or texture in the rasterize function, I do not see the proper looking normals instead I see something like this:
img7_3d_normal

Please advise if I can use the same rasterization for generated surface normals, or something different should be done to get the normal map from the 3D shape.
Thanks,
Touqeer