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

Simplification leads to incorrect normals on flat surfaces #406

Closed
traking opened this issue Jan 27, 2022 · 1 comment
Closed

Simplification leads to incorrect normals on flat surfaces #406

traking opened this issue Jan 27, 2022 · 1 comment

Comments

@traking
Copy link

traking commented Jan 27, 2022

Hi!

I'm using meshopt_simplify(..., target_error = 1e-2, target_index_count = size_t(src_indices.size() * 0.5f)) and getting following results with attached mesh (in .OBJ):

As you can see there are some incorect normals being selected. Is there anything that I can adjust in algorithm in order to fix this behavior?

Thanks!
normals
desk.zip

@traking traking added the bug label Jan 27, 2022
@zeux
Copy link
Owner

zeux commented Jan 30, 2022

This is a duplicate of #158; it requires the simplifier to actually compare the normal metric/error during simplification which currently isn't done. Of course you can, as a temporary measure, recompute normals post-simplification to work around it.

@zeux zeux closed this as completed Jan 30, 2022
@zeux zeux added the duplicate label Jan 30, 2022
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