mtuttle
I just found this pretty cool paper on weighting meshes to skeletons using voxels:

http://www.dgp.toronto.edu/~mdelasa/data/sca2013_voxelization.pdf


How much of their is doable in SOuP? I know we can voxelize a mesh using the bound node and then extract the interior voxels with the cage node. I'm not as certain about the distances computations as well as the following weights computations. I'm pretty sure it can be done though...


mtuttle
Update: I now have also discovered a voxelizer node that Autodesk supplied as an example-plugin. It might be easier to use in terms of sorting and neighbor-finding because it saves each voxel as one mesh island in a mesh, and doesn't appear to merge any voxels together... 

http://docs.autodesk.com/MAYAUL/2014/ENU/Maya-API-Documentation/index.html?url=files/GUID-767D6572-552D-4D94-90E2-AE626F276D37.htm,topicNumber=d30e9798

Reply 0 0
noizfactory
Very cool find! Thanks for sharing. Would this fall under the "volume" based rigging concept where a volume or cage mesh drives the skinning instead of the actual mesh? And due to that model updates that do not change the mesh volume drastically don't break the skinning?
Reply 0 0
mtuttle
I think this is just for computing weights.
Reply 0 0
noizfactory
Using a boundingObject and attributeTransfer we can get the voxels within a certain distance. Post that for the skin weights, maybe do another boundingObject and get the actual mesh vertices or do a rayProject and get the vertices. And then apply the formula in (7) and (8)?


voxel_skinning_distance.jpg
Reply 0 0
mtuttle
I think formulas 7-8 require the geodesic distance of the voxel to the joint so the Dijkstra method still seems unavoidable...
Reply 0 0
pshipkov
With soup you can do these things:
- Generate the voxel grid. In fact what you have done in your other post - generating point cloud where each point represents voxel center is enough, especially in this case - where voxels have uniform size in XYZ.
- Figure out bone, internal and boundary voxels.
    - for bone voxels - create single group node plug the point cloud in it and make bounding object for each joint. Get the group.outComponentList.
    - internal voxels - you can go about this one in at least 2 or 3 ways using soup tools. I would try first with rayProject. Plug the point cloud into that node and use the character model as collision geo. Compare the original with projected points if the same - the point is outside, otherwise it is inside - so the voxel is inside.
    - boundary voxels - plug the point cloud into closestPointsOnMesh node and compare the result with the original points - if closest point of each orig point is inside the voxel then that's a boundary point. In fact i think you can simplify the math and instead of using voxels do lookups with spheres.

Distance computation is too specific f eor that weighting method and you have to implement it yourself.

Btw, do you have enough data to compare this to heat mapping ?
Heat maps create very rubbery results but i never saw how geometry weighted using this method deforms.

Reply 0 0
Reply