DzBone and weight maps handling in the SDK
Alessandro Mastronardi
Posts: 2,621
I wanted to ask if there is any any bit of code or sample in your SDK archives showing the process of creating a DzBone, assign a DzFaceGroup to it, and set the bone properties such as the origin/end/orientation values, rotation order, thus replicating what you usually do manually using the joint tool in Studio.
Also, once the bone is in place, which classes can I use to add a weight map and fill it with a polygon selection group?
Comments
The following is untested and won't currently compilte, but should show the basic steps.
Thanks a lot for the information, I'm going to do some testing.
Hello dtamm, if possible I'd like some explanation about the initWeightMap function, which doesn't exist in the SDK. If you could tell me what it's supposed to do I'd really appreciate it. (never mind, understood what this function needs to do)...
Also, I'd like to know how to gather getNumVerts() from the a DzFaceGroup; in dzfacegroup.h there are several commented functions (one of those is indeed getNumVerts()), and so I'm out of options about getting that value. Or, better, how to get the vertex collection out out of a facegroup.
I think I got to work what I needed.
Thanks