|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
A character model with skeletal structure, mesh, and optional components. More...
#include <character.h>
Public Member Functions | |
| Character () | |
| ~Character () | |
| Character (const Skeleton &s, const ParameterTransform &pt, const ParameterLimits &pl=ParameterLimits(), const LocatorList &l=LocatorList(), const Mesh *m=nullptr, const SkinWeights *sw=nullptr, const CollisionGeometry *cg=nullptr, const PoseShape *bs=nullptr, BlendShape_const_p blendShapes={}, BlendShapeBase_const_p faceExpressionBlendShapes={}, const std::string &nameIn="", const momentum::TransformationList &inverseBindPose={}, const SkinnedLocatorList &skinnedLocators={}, std::string_view metadataIn="", const PhysicalProperties &physicalPropertiesIn=PhysicalProperties()) | |
| Constructs a character with the specified components. | |
| Character (const Character &c) | |
| Character (Character &&c) noexcept | |
| Character & | operator= (const Character &rhs) |
| Character & | operator= (Character &&rhs) noexcept |
| Character | simplify (const ParameterSet &activeParams=ParameterSet().flip()) const |
| Creates a simplified character with only joints affected by the specified parameters. | |
| Character | simplifySkeleton (const std::vector< bool > &activeJoints) const |
| Creates a simplified character with only the specified joints. | |
| Character | simplifyParameterTransform (const ParameterSet ¶meterSet) const |
| Creates a simplified character with only the specified parameters. | |
| SkinWeights | remapSkinWeights (const SkinWeights &skinWeights, const Character &originalCharacter) const |
| Remaps skin weights from original character to simplified version. | |
| ParameterLimits | remapParameterLimits (const ParameterLimits &limits, const Character &originalCharacter) const |
| Remaps parameter limits from original character to simplified version. | |
| LocatorList | remapLocators (const LocatorList &locs, const Character &originalCharacter) const |
| Remaps locators from original character to simplified version. | |
| SkinnedLocatorList | remapSkinnedLocators (const SkinnedLocatorList &locs, const Character &originalCharacter) const |
| std::vector< bool > | parametersToActiveJoints (const ParameterSet ¶meterSet) const |
| Determines which joints are affected by the specified parameters. | |
| ParameterSet | activeJointsToParameters (const std::vector< bool > &activeJoints) const |
| Determines which parameters affect the specified joints. | |
| CharacterParameters | bindPose () const |
| Returns parameters representing the character's bind pose. | |
| void | initParameterTransform () |
| Initializes the parameter transform with the correct dimensions for this character. | |
| void | resetJointMap () |
| Resets the joint map to identity (each joint maps to itself). | |
| void | initInverseBindPose () |
| Initializes the inverse bind pose transformations. | |
| Character | withBlendShape (const BlendShape_const_p &blendShape_in, Eigen::Index maxBlendShapes) const |
| Creates a new character with the specified blend shapes. | |
| Character | withFaceExpressionBlendShape (const BlendShapeBase_const_p &blendShape_in, Eigen::Index maxBlendShapes=-1) const |
| Creates a new character with the specified face expression blend shapes. | |
| void | addBlendShape (const BlendShape_const_p &blendShape_in, Eigen::Index maxBlendShapes) |
| Adds blend shapes to this character. | |
| void | addFaceExpressionBlendShape (const BlendShapeBase_const_p &blendShape_in, Eigen::Index maxBlendShapes=-1) |
| Adds face expression blend shapes to this character. | |
| Character | bakeBlendShape (const ModelParameters &modelParams) const |
| Creates a new character with blend shapes baked into the mesh. | |
| Character | bakeBlendShape (const BlendWeights &blendWeights) const |
| Creates a new character with blend shapes baked into the mesh. | |
| Character | bake (const ModelParameters &modelParams, bool bakeBlendShapes=true, bool bakeScales=true) const |
| Generic "bake-out" for turning a character into self-contained geometry. | |
Static Public Member Functions | |
| static CharacterParameters | splitParameters (const Character &character, const CharacterParameters ¶meters, const ParameterSet ¶meterSet) |
| Splits character parameters into active and inactive components. | |
Public Attributes | |
Required components | |
| Skeleton | skeleton |
| Skeletal structure defining the character's joints and hierarchy. | |
| ParameterTransform | parameterTransform |
| Maps model parameters to joint parameters. | |
Optional components | |
| ParameterLimits | parameterLimits |
| Constraints on model parameters. | |
| LocatorList | locators |
| Points of interest attached to joints. | |
| SkinnedLocatorList | skinnedLocators |
| Points of interest attached to joints, with skinning weights. | |
| Mesh_u | mesh |
| 3D mesh representing the character's surface | |
| SkinWeights_u | skinWeights |
| Defines how mesh vertices are influenced by joints. | |
| PoseShape_u | poseShapes |
| Pose-dependent shape corrections. | |
| CollisionGeometry_u | collision |
| Collision volumes for the character. | |
| PhysicalProperties | physicalProperties |
| Joint-level physical mass and inertia data loaded from model assets. | |
| BlendShape_const_p | blendShape |
| Shape variations that can be blended. | |
| BlendShapeBase_const_p | faceExpressionBlendShape |
| Facial expression blend shapes. | |
| TransformationList | inverseBindPose |
| Inverse of the bind pose transformations for each joint. | |
| std::vector< size_t > | jointMap |
| Maps from original joint indices to simplified joint indices. | |
| std::string | name |
| Character identifier. | |
| std::string | metadata |
| Metadata (as a JSON-serialized string). | |
A character model with skeletal structure, mesh, and optional components.
Character is intentionally not templated on a scalar type: every member (skeleton, parameter transform, mesh, inverse bind pose, etc.) is stored as float. Double-precision callers convert to/from float at API boundaries via cast<T>() on the inner types (e.g. MeshT<T>, SkeletonStateT<T>). This reflects the reality that the previous CharacterT<T> template parameter was never wired through to any member; see T270138855 for the audit.
Definition at line 32 of file character.h.
|
default |
Referenced by bake(), bakeBlendShape(), bakeBlendShape(), Character(), Character(), operator=(), operator=(), remapLocators(), remapParameterLimits(), remapSkinnedLocators(), remapSkinWeights(), simplify(), simplifyParameterTransform(), simplifySkeleton(), splitParameters(), withBlendShape(), and withFaceExpressionBlendShape().
|
default |
| momentum::Character::Character | ( | const Skeleton & | s, |
| const ParameterTransform & | pt, | ||
| const ParameterLimits & | pl = ParameterLimits(), | ||
| const LocatorList & | l = LocatorList(), | ||
| const Mesh * | m = nullptr, | ||
| const SkinWeights * | sw = nullptr, | ||
| const CollisionGeometry * | cg = nullptr, | ||
| const PoseShape * | bs = nullptr, | ||
| BlendShape_const_p | blendShapes = {}, | ||
| BlendShapeBase_const_p | faceExpressionBlendShapes = {}, | ||
| const std::string & | nameIn = "", | ||
| const momentum::TransformationList & | inverseBindPose = {}, | ||
| const SkinnedLocatorList & | skinnedLocators = {}, | ||
| std::string_view | metadataIn = "", | ||
| const PhysicalProperties & | physicalPropertiesIn = PhysicalProperties() ) |
Constructs a character with the specified components.
| s | Skeleton defining joint hierarchy |
| pt | Parameter transform mapping model parameters to joint parameters |
| pl | Optional parameter limits/constraints |
| l | Optional locators attached to joints |
| m | Optional mesh representing the character's surface |
| sw | Optional skin weights defining how mesh vertices are influenced by joints |
| cg | Optional collision geometry |
| bs | Optional pose-dependent shape corrections |
| blendShapes | Optional shape variations that can be blended |
| faceExpressionBlendShapes | Optional facial expression blend shapes |
| nameIn | Optional character identifier |
| inverseBindPose | Optional inverse bind pose transformations |
| skinnedLocators | Optional points of interest attached to joints, with skinning weights |
| metadataIn | Optional metadata |
| physicalPropertiesIn | Optional physical mass properties attached to joints |
Definition at line 248 of file character.cpp.
References blendShape, collision, faceExpressionBlendShape, inverseBindPose, locators, mesh, metadata, MT_CHECK, name, parameterLimits, parameterTransform, physicalProperties, poseShapes, resetJointMap(), skeleton, skinnedLocators, and skinWeights.
| momentum::Character::Character | ( | const Character & | c | ) |
Definition at line 299 of file character.cpp.
References blendShape, Character(), faceExpressionBlendShape, inverseBindPose, jointMap, locators, mesh, metadata, name, parameterLimits, parameterTransform, physicalProperties, skeleton, and skinnedLocators.
|
defaultnoexcept |
References Character().
|
nodiscard |
Determines which parameters affect the specified joints.
| activeJoints | Boolean vector indicating which joints to check |
Definition at line 384 of file character.cpp.
References activeJointsToParameters(), momentum::kParametersPerJoint, MT_CHECK, parameterTransform, and skeleton.
Referenced by activeJointsToParameters().
| void momentum::Character::addBlendShape | ( | const BlendShape_const_p & | blendShape_in, |
| Eigen::Index | maxBlendShapes ) |
Adds blend shapes to this character.
| blendShape_in | Blend shapes to add to the character |
| maxBlendShapes | Maximum number of blend shape parameters to add (use all if <= 0) |
Definition at line 819 of file character.cpp.
References addBlendShape(), momentum::addBlendShapeParameters(), blendShape, mesh, MT_CHECK, parameterLimits, and parameterTransform.
Referenced by addBlendShape(), and withBlendShape().
| void momentum::Character::addFaceExpressionBlendShape | ( | const BlendShapeBase_const_p & | blendShape_in, |
| Eigen::Index | maxBlendShapes = -1 ) |
Adds face expression blend shapes to this character.
| blendShape_in | Face expression blend shapes to add to the character |
| maxBlendShapes | Maximum number of blend shape parameters to add (use all if <= 0) |
Definition at line 853 of file character.cpp.
References addFaceExpressionBlendShape(), momentum::addFaceExpressionParameters(), faceExpressionBlendShape, mesh, MT_CHECK, parameterLimits, and parameterTransform.
Referenced by addFaceExpressionBlendShape(), and withFaceExpressionBlendShape().
|
nodiscard |
Generic "bake-out" for turning a character into self-contained geometry.
| [in] | modelParams | Current pose/scale/blend-shape parameters. |
| [in] | bakeBlendShapes | Set true (default) to apply blend-shape deltas and remove their parameters from the character. |
| [in] | bakeScales | Set true (default) to evaluate the posed skeleton, run Linear-Blend-Skinning once, and remove all scaling parameters from the character. |
The returned character contains a static mesh with all requested deformations baked in, while still supporting any parameters you elected to keep.
Definition at line 903 of file character.cpp.
References momentum::ParameterTransformT< T >::apply(), momentum::applySSD(), bake(), blendShape, Character(), momentum::extractBlendWeights(), momentum::ParameterTransformT< T >::getBlendShapeParameters(), momentum::ParameterTransformT< T >::getScalingParameters(), inverseBindPose, mesh, MT_CHECK, parameterLimits, parameterTransform, skeleton, skinWeights, and momentum::subsetParameterTransform().
Referenced by bake().
|
nodiscard |
Creates a new character with blend shapes baked into the mesh.
| blendWeights | Blend shape weights to apply |
Definition at line 883 of file character.cpp.
References bakeBlendShape(), blendShape, Character(), mesh, MT_CHECK, parameterLimits, parameterTransform, and momentum::subsetParameterTransform().
|
nodiscard |
Creates a new character with blend shapes baked into the mesh.
| modelParams | Model parameters containing blend shape weights |
Definition at line 899 of file character.cpp.
References bakeBlendShape(), Character(), and momentum::extractBlendWeights().
Referenced by bakeBlendShape(), and bakeBlendShape().
|
nodiscard |
Returns parameters representing the character's bind pose.
The bind pose is the rest pose when all model parameters and joint offsets are zero. When forward kinematics is applied to the bind pose, it results in the rest pose skeleton.
Definition at line 765 of file character.cpp.
References bindPose(), momentum::kParametersPerJoint, momentum::CharacterParametersT< T >::offsets, parameterTransform, momentum::CharacterParametersT< T >::pose, and skeleton.
Referenced by bindPose(), and momentum::CharacterStateT< T >::setBindPose().
| void momentum::Character::initInverseBindPose | ( | ) |
Initializes the inverse bind pose transformations.
The inverse bind pose is a set of affine transformations for each joint that map from world space to local joint space in the bind pose configuration.
Definition at line 783 of file character.cpp.
References initInverseBindPose(), inverseBindPose, momentum::SkeletonStateT< T >::jointState, parameterTransform, and skeleton.
Referenced by initInverseBindPose().
| void momentum::Character::initParameterTransform | ( | ) |
Initializes the parameter transform with the correct dimensions for this character.
Definition at line 772 of file character.cpp.
References momentum::ParameterTransformT< float >::empty(), initParameterTransform(), momentum::kParametersPerJoint, parameterTransform, and skeleton.
Referenced by initParameterTransform(), and momentum::loadParameters().
References Character(), and skinWeights.
Definition at line 335 of file character.cpp.
References blendShape, Character(), collision, faceExpressionBlendShape, inverseBindPose, jointMap, locators, mesh, metadata, name, operator=(), parameterLimits, parameterTransform, physicalProperties, poseShapes, skeleton, skinnedLocators, and skinWeights.
Referenced by operator=().
|
nodiscard |
Determines which joints are affected by the specified parameters.
| parameterSet | Set of parameters to check |
Definition at line 361 of file character.cpp.
References momentum::kParametersPerJoint, MT_CHECK, parametersToActiveJoints(), parameterTransform, and skeleton.
Referenced by parametersToActiveJoints(), and simplify().
|
nodiscard |
Remaps locators from original character to simplified version.
| locs | Original locators |
| originalCharacter | Original character containing the full joint hierarchy |
Definition at line 731 of file character.cpp.
References momentum::ParameterTransformT< T >::bindPose(), Character(), jointMap, momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, MT_CHECK, momentum::ParameterTransformT< T >::numAllModelParameters(), parameterTransform, remapLocators(), and skeleton.
Referenced by remapLocators(), and simplifySkeleton().
|
nodiscard |
Remaps parameter limits from original character to simplified version.
| limits | Original parameter limits |
| originalCharacter | Original character containing the full joint hierarchy |
Definition at line 616 of file character.cpp.
References momentum::ParameterTransformT< T >::bindPose(), Character(), momentum::Ellipsoid, jointMap, momentum::SkeletonT< T >::joints, momentum::SkeletonStateT< T >::jointState, momentum::MinMaxJoint, momentum::MinMaxJointPassive, MT_CHECK, momentum::ParameterTransformT< T >::numAllModelParameters(), parameterTransform, remapParameterLimits(), and skeleton.
Referenced by remapParameterLimits(), and simplifySkeleton().
|
nodiscard |
Definition at line 674 of file character.cpp.
References Character(), jointMap, momentum::SkeletonT< T >::joints, momentum::kMaxSkinJoints, MT_CHECK, momentum::ParameterTransformT< T >::numAllModelParameters(), parameterTransform, remapSkinnedLocators(), and skeleton.
Referenced by remapSkinnedLocators(), and simplifySkeleton().
|
nodiscard |
Remaps skin weights from original character to simplified version.
| skinWeights | Original skin weights |
| originalCharacter | Original character containing the full joint hierarchy |
Definition at line 566 of file character.cpp.
References Character(), momentum::SkinWeights::index, jointMap, momentum::SkeletonT< T >::joints, momentum::kMaxSkinJoints, MT_CHECK, momentum::ParameterTransformT< T >::numAllModelParameters(), parameterTransform, remapSkinWeights(), skeleton, and momentum::SkinWeights::weight.
Referenced by remapSkinWeights(), and simplifySkeleton().
| void momentum::Character::resetJointMap | ( | ) |
Resets the joint map to identity (each joint maps to itself).
Definition at line 777 of file character.cpp.
References jointMap, resetJointMap(), and skeleton.
Referenced by Character(), and resetJointMap().
|
nodiscard |
Creates a simplified character with only joints affected by the specified parameters.
| activeParams | Parameters to keep (defaults to all parameters) |
Definition at line 553 of file character.cpp.
References Character(), parametersToActiveJoints(), simplify(), and simplifySkeleton().
Referenced by simplify().
|
nodiscard |
Creates a simplified character with only the specified parameters.
| parameterSet | Set of parameters to keep |
Definition at line 528 of file character.cpp.
References blendShape, Character(), collision, faceExpressionBlendShape, inverseBindPose, locators, mesh, metadata, MT_CHECK, name, parameterLimits, parameterTransform, physicalProperties, poseShapes, simplifyParameterTransform(), skeleton, skinnedLocators, skinWeights, and momentum::subsetParameterTransform().
Referenced by simplifyParameterTransform().
|
nodiscard |
Creates a simplified character with only the specified joints.
| activeJoints | Boolean vector indicating which joints to keep |
Definition at line 413 of file character.cpp.
References momentum::ParameterTransformT< T >::bindPose(), Character(), collision, jointMap, momentum::SkeletonT< T >::joints, momentum::kInvalidIndex, locators, momentum::mapParameterTransformJoints(), mesh, metadata, MT_CHECK, MT_THROW_IF, name, parameterLimits, parameterTransform, physicalProperties, remapLocators(), remapParameterLimits(), remapSkinnedLocators(), remapSkinWeights(), simplifySkeleton(), skeleton, skinnedLocators, skinWeights, and momentum::EigenStrongType< Derived, EigenType >::Zero().
Referenced by simplify(), and simplifySkeleton().
|
staticnodiscard |
Splits character parameters into active and inactive components.
| character | Character to use for the parameter transform |
| parameters | Input parameters to split |
| parameterSet | Set indicating which parameters are active |
Definition at line 794 of file character.cpp.
References momentum::ParameterTransformT< T >::apply(), Character(), momentum::CharacterParametersT< T >::offsets, parameterTransform, and splitParameters().
Referenced by splitParameters().
|
nodiscard |
Creates a new character with the specified blend shapes.
| blendShape_in | Blend shapes to add to the character |
| maxBlendShapes | Maximum number of blend shape parameters to add (use all if <= 0) |
Definition at line 811 of file character.cpp.
References addBlendShape(), Character(), and withBlendShape().
Referenced by withBlendShape().
|
nodiscard |
Creates a new character with the specified face expression blend shapes.
| blendShape_in | Face expression blend shapes to add to the character |
| maxBlendShapes | Maximum number of blend shape parameters to add (use all if <= 0) |
Definition at line 845 of file character.cpp.
References addFaceExpressionBlendShape(), Character(), and withFaceExpressionBlendShape().
Referenced by withFaceExpressionBlendShape().
| BlendShape_const_p momentum::Character::blendShape |
Shape variations that can be blended.
Definition at line 70 of file character.h.
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), addBlendShape(), momentum::addRigidTransformNode(), bake(), bakeBlendShape(), momentum::calibrateModel(), Character(), Character(), momentum::fbx_internal::createMeshNode(), momentum::extractBlendShapeFromParams(), momentum::fbx_internal::extractBlendShapeWeights(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), momentum::skinnedLocatorsToLocators(), momentum::skinWithBlendShapes(), momentum::transformCharacter(), and momentum::MeshStateT< T >::update().
| CollisionGeometry_u momentum::Character::collision |
Collision volumes for the character.
Definition at line 64 of file character.h.
Referenced by momentum::addRigidTransformNode(), Character(), momentum::characterToLegacyJson(), momentum::fbx_internal::createCollisionGeometryNodes(), momentum::locatorsToSkinnedLocators(), momentum::logCharacter(), operator=(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::trackPosesForFrames(), momentum::trackSequence(), and momentum::transformCharacter().
| BlendShapeBase_const_p momentum::Character::faceExpressionBlendShape |
Facial expression blend shapes.
Definition at line 73 of file character.h.
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), addFaceExpressionBlendShape(), momentum::addRigidTransformNode(), Character(), Character(), momentum::fbx_internal::createMeshNode(), momentum::fbx_internal::extractFaceExpressionWeights(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::PointTriangleVertexErrorFunctionT< T >::PointTriangleVertexErrorFunctionT(), momentum::scaleCharacter(), simplifyParameterTransform(), momentum::skinnedLocatorsToLocators(), momentum::transformCharacter(), and momentum::MeshStateT< T >::update().
| TransformationList momentum::Character::inverseBindPose |
Inverse of the bind pose transformations for each joint.
Definition at line 76 of file character.h.
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionJacobian(), momentum::addGloveBones(), bake(), momentum::calculateDWorldPos(), Character(), Character(), momentum::createLocatorCharacter(), momentum::getLocatorError(), initInverseBindPose(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), momentum::skinnedLocatorsToLocators(), momentum::skinWithBlendShapes(), momentum::transformCharacter(), and momentum::MeshStateT< T >::update().
| std::vector<size_t> momentum::Character::jointMap |
Maps from original joint indices to simplified joint indices.
Definition at line 79 of file character.h.
Referenced by Character(), operator=(), remapLocators(), remapParameterLimits(), remapSkinnedLocators(), remapSkinWeights(), resetJointMap(), and simplifySkeleton().
| LocatorList momentum::Character::locators |
Points of interest attached to joints.
Definition at line 49 of file character.h.
Referenced by momentum::addKeypointProjectionConstraints(), momentum::addRigidTransformNode(), momentum::calibrateLocators(), momentum::calibrateModel(), Character(), Character(), momentum::characterToLegacyJson(), momentum::computeSupportContactPositions(), momentum::computeSupportContacts(), momentum::createLocatorCharacter(), momentum::fbx_internal::createLocatorNodes(), momentum::extractLocatorsFromCharacter(), momentum::extractMarkersFromMotion(), momentum::getLocatorError(), momentum::loadCharacterWithIdentity(), momentum::locatorsToSkinnedLocators(), momentum::logCharacter(), momentum::logKeypointReprojectionDiagnostic(), operator=(), momentum::refineMotion(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::sampleFrames(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::trackPosesForFrames(), momentum::trackSequence(), and momentum::transformCharacter().
| Mesh_u momentum::Character::mesh |
3D mesh representing the character's surface
Definition at line 55 of file character.h.
Referenced by addBlendShape(), addFaceExpressionBlendShape(), momentum::addRigidTransformNode(), momentum::averageTriangleSkinWeights(), bake(), bakeBlendShape(), Character(), Character(), momentum::characterToLegacyJson(), momentum::computeSkinnedLocatorMeshDistances(), momentum::fbx_internal::createMeshNode(), momentum::createSkinnedLocatorMeshConstraints(), momentum::extractBlendShapeFromParams(), momentum::FloorErrorFunctionT< T >::FloorErrorFunctionT(), momentum::HeightErrorFunctionT< T >::HeightErrorFunctionT(), momentum::loadPoseShape(), momentum::locatorsToSkinnedLocators(), momentum::makeCharacterDocument(), operator=(), momentum::PointTriangleVertexErrorFunctionT< T >::PointTriangleVertexErrorFunctionT(), momentum::reduceMeshByFaces(), momentum::reduceMeshByPolys(), momentum::reduceMeshByVertices(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::SkinnedLocatorTriangleErrorFunctionT< T >::SkinnedLocatorTriangleErrorFunctionT(), momentum::skinWithBlendShapes(), momentum::trackSequence(), momentum::transformCharacter(), momentum::MeshStateT< T >::update(), and momentum::VertexVertexDistanceErrorFunctionT< T >::VertexVertexDistanceErrorFunctionT().
| std::string momentum::Character::metadata |
Metadata (as a JSON-serialized string).
Definition at line 85 of file character.h.
Referenced by momentum::fbx_internal::addMetaData(), momentum::addRigidTransformNode(), Character(), Character(), operator=(), simplifyParameterTransform(), and simplifySkeleton().
| std::string momentum::Character::name |
Character identifier.
Definition at line 82 of file character.h.
Referenced by momentum::fbx_internal::addMetaData(), momentum::GltfBuilder::addMotion(), momentum::addRigidTransformNode(), momentum::GltfBuilder::addSkeletonStates(), Character(), Character(), momentum::fbx_internal::createMeshNode(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::parameterLimitsFromJson(), momentum::parameterLimitsToJson(), momentum::scaleCharacter(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), and momentum::transformCharacter().
| ParameterLimits momentum::Character::parameterLimits |
Constraints on model parameters.
Definition at line 46 of file character.h.
Referenced by addBlendShape(), addFaceExpressionBlendShape(), momentum::addRigidTransformNode(), momentum::addSkinnedLocatorParametersToTransform(), bake(), bakeBlendShape(), Character(), Character(), momentum::createLocatorCharacter(), momentum::loadParameters(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::parameterLimitsToJson(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), momentum::LimitErrorFunctionT< T >::setLimits(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), and momentum::transformCharacter().
| ParameterTransform momentum::Character::parameterTransform |
Maps model parameters to joint parameters.
Definition at line 39 of file character.h.
Referenced by activeJointsToParameters(), addBlendShape(), momentum::addBlendShapeRegularizer(), addFaceExpressionBlendShape(), momentum::addGloveBones(), momentum::addGloveCalibrationParameters(), momentum::addKeypointProjectionConstraints(), momentum::addRigidTransformNode(), momentum::addSkinnedLocatorParametersToTransform(), bake(), bakeBlendShape(), bindPose(), momentum::calibrateLocators(), momentum::calibrateModel(), Character(), Character(), momentum::computeFloorContactConstraints(), momentum::fbx_internal::createAnimationCurves(), momentum::createLocatorCharacter(), momentum::extractBlendShapeFromParams(), momentum::fbx_internal::extractBlendShapeWeights(), momentum::fbx_internal::extractFaceExpressionWeights(), momentum::extractGloveOffsetsFromCharacter(), momentum::extractIdAndLocatorsFromParams(), momentum::extractLocatorsFromCharacter(), momentum::extractSkinnedLocatorsFromCharacter(), momentum::getLocatorError(), momentum::HeightErrorFunctionT< T >::HeightErrorFunctionT(), initInverseBindPose(), initParameterTransform(), momentum::jointIdentityToModelIdentity(), momentum::loadCharacterWithIdentity(), momentum::loadCharacterWithMotionModelParameterScales(), momentum::loadParameters(), momentum::locatorsToSkinnedLocators(), momentum::mapMotionToCharacter(), momentum::mapMotionToCharacter(), momentum::ModelParametersErrorFunctionT< T >::ModelParametersErrorFunctionT(), operator=(), momentum::parameterSetsFromJson(), momentum::parameterSetsToJson(), parametersToActiveJoints(), momentum::parameterTransformToJson(), momentum::PlaneCollisionQueryT< T >::PlaneCollisionQueryT(), momentum::poseConstraintsFromJson(), momentum::poseConstraintsToJson(), momentum::PoseTransformSolverT< T >::PoseTransformSolverT(), momentum::refineMotion(), remapLocators(), remapParameterLimits(), remapSkinnedLocators(), remapSkinWeights(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::sampleFrames(), momentum::saveCharacter(), momentum::saveMmo(), momentum::saveMmo(), momentum::saveMotion(), momentum::saveUsdCharacterWithMotion(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), momentum::fbx_internal::setupJointAnimCurves(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::skinWithBlendShapes(), splitParameters(), momentum::trackPosesForFrames(), momentum::trackSequence(), momentum::transformCharacter(), and momentum::MeshStateT< T >::update().
| PhysicalProperties momentum::Character::physicalProperties |
Joint-level physical mass and inertia data loaded from model assets.
Definition at line 67 of file character.h.
Referenced by momentum::fbx_internal::addPhysicalProperties(), momentum::addRigidTransformNode(), Character(), Character(), operator=(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), simplifyParameterTransform(), simplifySkeleton(), and momentum::transformCharacter().
| PoseShape_u momentum::Character::poseShapes |
Pose-dependent shape corrections.
Definition at line 61 of file character.h.
Referenced by momentum::addRigidTransformNode(), Character(), momentum::locatorsToSkinnedLocators(), operator=(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), momentum::skinnedLocatorsToLocators(), and momentum::transformCharacter().
| Skeleton momentum::Character::skeleton |
Skeletal structure defining the character's joints and hierarchy.
Definition at line 36 of file character.h.
Referenced by activeJointsToParameters(), momentum::addGloveBones(), momentum::addGloveCalibrationParameters(), momentum::addKeypointProjectionConstraints(), momentum::fbx_internal::addPhysicalProperties(), momentum::addRigidTransformNode(), momentum::averageTriangleSkinWeights(), bake(), momentum::bakeGloveOffsetsFromParams(), bindPose(), momentum::calibrateModel(), Character(), Character(), momentum::characterToLegacyJson(), momentum::computeFloorContactConstraints(), momentum::computeSkinnedLocatorMeshDistances(), momentum::fbx_internal::createAnimationCurves(), momentum::createGloveOrientationConstraintData(), momentum::createGlovePositionConstraintData(), momentum::createLocatorCharacter(), momentum::fbx_internal::createSkeletonNodes(), momentum::createSkinnedLocatorMeshConstraints(), momentum::extractGloveOffsetsFromCharacter(), momentum::extractLocatorsFromCharacter(), momentum::extractMarkersFromMotion(), momentum::extractSkinnedLocatorsFromCharacter(), momentum::getLocatorError(), initInverseBindPose(), initParameterTransform(), momentum::loadCharacterWithIdentity(), momentum::loadCharacterWithSkeletonStatesCommon(), momentum::loadParameters(), momentum::loadPoseShape(), momentum::locatorsToSkinnedLocators(), momentum::logCharacter(), momentum::makeCharacterDocument(), momentum::mapIdentityToCharacter(), momentum::mapMotionToCharacter(), operator=(), parametersToActiveJoints(), momentum::parameterTransformFromJson(), momentum::parameterTransformToJson(), momentum::PlaneCollisionQueryT< T >::PlaneCollisionQueryT(), remapLocators(), remapParameterLimits(), remapSkinnedLocators(), remapSkinWeights(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), resetJointMap(), momentum::sampleFrames(), momentum::saveBvhCharacter(), momentum::saveMmo(), momentum::saveMotion(), momentum::saveUsdCharacter(), momentum::saveUsdCharacterWithMotion(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), momentum::setupGloveErrorFunctions(), momentum::fbx_internal::setupJointAnimCurves(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), and momentum::transformCharacter().
| SkinnedLocatorList momentum::Character::skinnedLocators |
Points of interest attached to joints, with skinning weights.
Definition at line 52 of file character.h.
Referenced by momentum::addRigidTransformNode(), momentum::addSkinnedLocatorParametersToTransform(), momentum::calibrateModel(), Character(), Character(), momentum::computeSkinnedLocatorMeshDistances(), momentum::createSkinnedLocatorMeshConstraints(), momentum::extractSkinnedLocatorsFromCharacter(), momentum::getLocatorError(), operator=(), momentum::refineMotion(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::trackPosesForFrames(), and momentum::trackSequence().
| SkinWeights_u momentum::Character::skinWeights |
Defines how mesh vertices are influenced by joints.
Definition at line 58 of file character.h.
Referenced by momentum::SkeletonDerivativeT< T >::accumulateVertexGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexGradientWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianIdentityDfdv(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrection(), momentum::SkeletonDerivativeT< T >::accumulateVertexJacobianWithNormalCorrectionDirect(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalBlendShapeJacobian(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionGradient(), momentum::SkeletonDerivativeT< T >::accumulateVertexNormalCorrectionJacobian(), momentum::addRigidTransformNode(), momentum::averageTriangleSkinWeights(), bake(), momentum::calculateDWorldPos(), Character(), momentum::characterToLegacyJson(), momentum::computeSkinnedLocatorMeshDistances(), momentum::fbx_internal::createMeshNode(), momentum::createSkinnedLocatorMeshConstraints(), momentum::locatorsToSkinnedLocators(), operator=(), operator=(), momentum::PointTriangleVertexErrorFunctionT< T >::PointTriangleVertexErrorFunctionT(), momentum::removeJoints(), momentum::replaceSkeletonHierarchy(), momentum::fbx_internal::saveSkinWeightsToFbx(), momentum::scaleCharacter(), momentum::CharacterStateT< T >::set(), simplifyParameterTransform(), simplifySkeleton(), momentum::skinnedLocatorsToLocators(), momentum::skinWithBlendShapes(), momentum::transformCharacter(), momentum::MeshStateT< T >::update(), and momentum::VertexVertexDistanceErrorFunctionT< T >::VertexVertexDistanceErrorFunctionT().