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

Don't lock external edges during simplification #28

Open
wants to merge 2 commits into
base: meshlet-bigger-clusters
Choose a base branch
from

Conversation

SparkyPotato
Copy link

Objective

Only lock the edges internal to a mesh when simplifying groups, such that non-solid meshes will still have their edges simplified, leading to much better performance at lower LOD levels.

Solution

We generate a list of edge vertices at the beginning of the import, which define the border of the mesh as a whole. Then, when a group is being simplified, we calculate the border of the group, and remove any vertices that are in the mesh border.

The current implementation seriously affects the performance of the builder, since the entire vertex buffer has to be traversed to find the differences between the mesh border and group border. This can probably be optimized by generating a mini-vertex buffer for each group. The border computation code isn't particularly well-optimized either.

Copy link

github-actions bot commented Sep 6, 2024

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

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

Successfully merging this pull request may close these issues.

1 participant