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

Getting Normal Map from the 3D Shape or Depth Map #143

Open
TouqeerAhmad opened this issue Nov 23, 2022 · 0 comments
Open

Getting Normal Map from the 3D Shape or Depth Map #143

TouqeerAhmad opened this issue Nov 23, 2022 · 0 comments

Comments

@TouqeerAhmad
Copy link

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

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

No branches or pull requests

1 participant