Main elements:
- DemBones : base class with the core solver using relative bone transformations DemBones::m
- DemBonesExt : extended class to handle hierarchical skeleton with local rotations/translations and bind matrices
- DemBones/MatBlocks.h: macros to access sub-blocks of packing transformation/position matrices for convenience
Include DemBones/DemBonesExt.h (or DemBones/DemBones.h) with optional DemBones/MatBlocks.h then follow these steps to use the library:
- Load required data in the base class:
- Load optional data in the base class:
- [
optional
] Set parameters in the base class:
- [
optional
] Setup extended class:
- [
optional
] Override callback functions (cb...) in the base class DemBones
- Call decomposition function DemBones::compute(), DemBones::computeWeights(), DemBones::computeTranformations(), or DemBones::init()
- [
optional
] Get local transformations/bind poses with DemBonesExt::computeRTB()