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

Automatically merge vertices that are too close together in mesh tracing #865

Open
misaki-eymard opened this issue Jan 21, 2025 · 4 comments

Comments

@misaki-eymard
Copy link
Collaborator

Currently, it is possible that the mesh tracing creates some vertices very close together, depending on the settings, and that you do not notice this fact until you zoom in quite a bit. For example, if you turn the gun attachment into a mesh attachment and run a trace with the following settings, some very close vertices may be created:

  • Detail: 50
  • Concavity: 100
  • Refinement: 50
    Image

If you zoom in, you can see that the vertices are very close to each other like this:
Image

Such vertices that are too close together sometimes interfere with the automatic calculation of weights. It would be desirable to automatically merge vertices within a certain range during the tracing calculation.

Related forum post:
https://esotericsoftware.com/forum/d/27986-%E5%85%B3%E4%BA%8E%E7%BD%91%E6%A0%BC%E7%BB%98%E5%88%B6%E6%9C%89%E5%8F%AF%E8%83%BD%E5%BC%95%E8%B5%B7%E6%97%A0%E6%B3%95%E8%AE%A1%E7%AE%97%E6%9D%83%E9%87%8D%E7%9A%84%E9%97%AE%E9%A2%98

@NathanSweet
Copy link
Member

We already remove vertices close to each other (and very narrow spikes). I tried many times but wasn't able to get 2 vertices close like in your screenshot. Is it very rare?

@misaki-eymard
Copy link
Collaborator Author

Is it very rare?

Hmm, when I tried on my end, I was able to reproduce this condition in one try, so I thought it could be easily reproduced. However, I just tried again and could not reproduce the issue. I wish I could find a way to reproduce it reliably.

@misaki-eymard
Copy link
Collaborator Author

I was able to create a Spine project that more easily reproduces this issue than Spineboy, so I am attaching it here:
Automatically merge vertices that are too close together in mesh tracing.zip

Try tracing with the following settings:

  • Detail: 21
  • Concavity: 28
  • Refinement: 80

Image
This project and setup should be reproducible about 80% of the time.

It would be nice if future versions could be improved so that the resulting vertices, like the red circled ones below, do not remain:
Image

@Mizuiro-89
Copy link

+1 this happens to me from time to time and is very annoying

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

No branches or pull requests

3 participants