Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

surface_nets lighting artifacts from normal interpolation #31

Open
bonsairobo opened this issue Jun 24, 2021 · 1 comment
Open

surface_nets lighting artifacts from normal interpolation #31

bonsairobo opened this issue Jun 24, 2021 · 1 comment

Comments

@bonsairobo
Copy link
Owner

bonsairobo commented Jun 24, 2021

mesh_acne

It seems like there are two issues contributing to the artifacts:

  1. Non-manifold complexes
  2. Interpolation between "unlit" normals and "lit" normals

When you see random isolated black spots that seem like they should be lit, it's because the vertex is actually non-manifold, and its normal was estimated to point more in the "unlit" direction than the "lit" direction.

Then the interpolation will make that darkness bleed out where it might not makes sense. In particular, on sharp edges. If the normal is estimated as "unlit" that will bleed around the edge.

I think the sharp edge issue is actually a bigger problem. Non-manifold complexes are always undesirable. But sharp edges are certainly something we would like to look correct.

@bonsairobo bonsairobo changed the title Poor normal estimation from surface_nets surface_nets lighting artifacts Jun 25, 2021
@bonsairobo bonsairobo changed the title surface_nets lighting artifacts surface_nets lighting artifacts from normal interpolation Jun 25, 2021
@bonsairobo
Copy link
Owner Author

BTW, this should not be an issue if flat shading is used.

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

No branches or pull requests

1 participant