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

Vertices with no weights in-game (OK in Blender) #43

Closed
Brachi opened this issue Sep 10, 2017 · 0 comments
Closed

Vertices with no weights in-game (OK in Blender) #43

Brachi opened this issue Sep 10, 2017 · 0 comments
Assignees
Milestone

Comments

@Brachi
Copy link
Owner

Brachi commented Sep 10, 2017

When exporting a custom made model, I've noticed some vertices appearing in-game like they have no weights, but in Blender they look OK.
Turns out that MTFramework will ignore the weights completely if one vertex has no weights, even when the others sum up to 255.
Simple example to reproduce:

# bone_index/weight value pairs from Blender
[(47, 0.0021963752806186676), (53, 0.5013832449913025), (57, 0.0008065812289714813), (58, 0.36875882744789124)]
# After processing them for export, bone_index 57 has no influence
[(47, 1), (53, 146), (57, 0), (58, 108)]

So, weights exported have to:

  1. Have values sum up to exactly 255
  2. Have values be non-zero
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

1 participant