Re: Bones and joints
Here's a sample plug-in with source that shows how to extract just the joint information from a model. (attached)
I've also included a sample model to show you how to build your groups in the hierarchy for it to work. Basically, you group each object with its parent, i.e. foot to shin, shin to thigh, thigh to pelvis, etc. If there's more than one object in the group, the first object is considered the parent.
The code is not thoroughly tested, but it's based on other plugins I've written so it should be a good jumping-off point for writing your own. It's in C, so you'll need the AC3D SDK if you don't have it already. The lib file for the SDK comes with AC3D, but I think you need to write support if you want the header files.
|