electronicarts / dem-bones

An automated algorithm to extract the linear blend skinning (LBS) from a set of example poses
https://seed.ea.com
Other
868 stars 154 forks source link

Question about lockW/lockM #21

Closed AnonCountercurrent closed 2 years ago

AnonCountercurrent commented 2 years ago

There are finished skin meshes and animations, and then I added some blend shapes. I added some new bones at the origin without animation, and set lockM to 0 for those new bones. (The original bone is set to 1) Set the lockW value of the deformation vertex to 0. (set Others to 1) Set matrix w and matrix m with original data,set w value of new bones to 0, and m value of new bones to Matrix4::Identity(). I want these bones to replace blend shapes,but it did not work. The result of the compute is that these bones are still at the origin, and there are no vertices with their weights. I don't know how to work properly

AnonCountercurrent commented 2 years ago

Problem solved. I modified computeBind function,compute centroids for these new joints