I'm trying to re-implement Auto-rigging for human skeletons. (similar to Blender and Mixamo's)
For each vertex in the human skin, I've to find the joints that affect this vertex. (I could do this.)
Now I've to find how much each joint should affect this vertex. (assigning weights for each vertex)
The human skin can be represented by an array of traingles each containing 3 vertices and the joints can be represented by array of vertices.
Note that each vertex can be affected by n number of joints(n>=1) which means no vertex should remain un-weighted.
I can manage to construct a connected graph of the skin. I don't know how to assign weights for each vertex from this graph. Help/Suggestions?