|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Classes | |
| struct | SkeletonNodeResult |
| struct | JointCurveSetup |
| struct | MeshBlendShapeResult |
Functions | |
| ::fbxsdk::FbxAxisSystem::EUpVector | toFbx (const FbxUpVector upVector) |
| ::fbxsdk::FbxAxisSystem::EFrontVector | toFbx (const FbxFrontVector frontVector) |
| ::fbxsdk::FbxAxisSystem::ECoordSystem | toFbx (const FbxCoordSystem coordSystem) |
| ::fbxsdk::FbxAxisSystem | toFbx (const FbxCoordSystemInfo &coordSystemInfo) |
| void | setFrameRate (::fbxsdk::FbxScene *scene, const double framerate) |
| SkeletonNodeResult | createSkeletonNodes (const Character &character, ::fbxsdk::FbxScene *scene) |
| void | addPhysicalProperties (const Character &character, const std::unordered_map< size_t, fbxsdk::FbxNode * > &jointToNodeMap) |
| void | addMetaData (::fbxsdk::FbxNode *skeletonRootNode, const Character &character) |
| void | createLocatorNodes (const Character &character, ::fbxsdk::FbxScene *scene, const std::vector<::fbxsdk::FbxNode * > &skeletonNodes) |
| void | createCollisionGeometryNodes (const Character &character, ::fbxsdk::FbxScene *scene, const std::vector<::fbxsdk::FbxNode * > &skeletonNodes) |
| std::pair<::fbxsdk::FbxAnimStack *, ::fbxsdk::FbxAnimLayer * > | getOrCreateAnimStackAndLayer (::fbxsdk::FbxScene *scene, const char *stackName) |
| float | jointParamToFbx (float value, size_t curveOffset, const Joint &joint) |
| Convert a raw momentum joint parameter to the FBX-native value. | |
| JointCurveSetup | setupJointAnimCurves (const Character &character, const std::vector<::fbxsdk::FbxNode * > &skeletonNodes, ::fbxsdk::FbxAnimLayer *animBaseLayer, const bool skipActiveJointParamCheck) |
| void | createAnimationCurves (const Character &character, ::fbxsdk::FbxScene *scene, const std::vector<::fbxsdk::FbxNode * > &skeletonNodes, const MatrixXf &jointValues, const double framerate, const bool skipActiveJointParamCheck) |
| void | saveSkinWeightsToFbx (const Character &character, ::fbxsdk::FbxScene *scene, ::fbxsdk::FbxMesh *mesh, const std::unordered_map< size_t, fbxsdk::FbxNode * > &jointToNodeMap) |
| void | writePolygonsToFbxMesh (const Mesh &mesh, ::fbxsdk::FbxMesh *lMesh) |
| void | writeTextureUVIndicesToFbxMesh (const Mesh &mesh, ::fbxsdk::FbxMesh *lMesh, fbxsdk::FbxLayerElement::EType uvType) |
| std::vector<::fbxsdk::FbxBlendShapeChannel * > | saveBlendShapeGeometryToFbx (const BlendShapeBase &blendShape, ::fbxsdk::FbxScene *scene, ::fbxsdk::FbxMesh *mesh, const std::string &deformerName, const std::string &channelPrefix) |
| void | createBlendShapeAnimationCurves (::fbxsdk::FbxScene *scene, const std::vector<::fbxsdk::FbxBlendShapeChannel * > &channels, const MatrixXf &weights, const double framerate) |
| MeshBlendShapeResult | createMeshNode (const Character &character, ::fbxsdk::FbxScene *scene, ::fbxsdk::FbxNode *parentNode, const std::unordered_map< size_t, fbxsdk::FbxNode * > &jointToNodeMap, Permissive permissive, const std::string &meshName="body_mesh") |
| MatrixXf | extractBlendShapeWeights (const Character &character, const MatrixXf &poses) |
| MatrixXf | extractFaceExpressionWeights (const Character &character, const MatrixXf &poses) |
| std::vector<::fbxsdk::FbxNode * > | createMarkerNodes (::fbxsdk::FbxScene *scene, std::span< const std::vector< Marker > > markerSequence, const double framerate) |
| void | prependNamespaceToAllNodes (::fbxsdk::FbxNode *node, const std::string &namespacePrefix) |
Variables | |
| constexpr const char * | kMomentumMarkersRootProperty = "Momentum_Markers_Root" |
| constexpr const char * | kMomentumMarkerProperty = "Momentum_Marker" |
|
inline |
Definition at line 217 of file fbx_io_internal.h.
References momentum::Character::metadata, and momentum::Character::name.
|
inline |
Definition at line 184 of file fbx_io_internal.h.
References momentum::jointPhysicalPropertiesToJsonString(), momentum::SkeletonT< T >::joints, momentum::kInvalidIndex, MT_THROW_IF, momentum::Character::physicalProperties, momentum::resolvePhysicalPropertiesJointIndex(), and momentum::Character::skeleton.
|
inline |
Definition at line 443 of file fbx_io_internal.h.
References momentum::ParameterTransformT< T >::activeJointParams, getOrCreateAnimStackAndLayer(), jointParamToFbx(), momentum::SkeletonT< T >::joints, momentum::kParametersPerJoint, momentum::Character::parameterTransform, setFrameRate(), setupJointAnimCurves(), and momentum::Character::skeleton.
|
inline |
Definition at line 634 of file fbx_io_internal.h.
References getOrCreateAnimStackAndLayer(), and setFrameRate().
|
inline |
Definition at line 251 of file fbx_io_internal.h.
References momentum::Box, momentum::Character::collision, momentum::Ellipsoid, momentum::Extrinsic, momentum::kInvalidIndex, MT_LOGD, MT_LOGE, MT_THROW, MT_THROW_IF, momentum::rotationMatrixToEulerXYZ(), momentum::TaperedCapsule, and momentum::toDeg().
|
inline |
Definition at line 228 of file fbx_io_internal.h.
References momentum::kInvalidIndex, momentum::Character::locators, and MT_THROW_IF.
|
inline |
Definition at line 797 of file fbx_io_internal.h.
References getOrCreateAnimStackAndLayer(), kMomentumMarkerProperty, kMomentumMarkersRootProperty, MT_THROW_IF, and setFrameRate().
|
inline |
Definition at line 671 of file fbx_io_internal.h.
References momentum::Character::blendShape, momentum::fbx_internal::MeshBlendShapeResult::blendShapeChannels, momentum::fbx_internal::MeshBlendShapeResult::faceExprChannels, momentum::Character::faceExpressionBlendShape, momentum::Character::mesh, MT_THROW_IF, momentum::Character::name, momentum::No, momentum::normal(), saveBlendShapeGeometryToFbx(), saveSkinWeightsToFbx(), momentum::Character::skinWeights, writePolygonsToFbxMesh(), and writeTextureUVIndicesToFbxMesh().
|
inline |
Definition at line 132 of file fbx_io_internal.h.
References momentum::Intrinsic, momentum::SkeletonT< T >::joints, momentum::fbx_internal::SkeletonNodeResult::jointToNodeMap, momentum::kInvalidIndex, MT_THROW_IF, momentum::fbx_internal::SkeletonNodeResult::nodes, momentum::fbx_internal::SkeletonNodeResult::rootNode, momentum::rotationMatrixToEulerZYX(), momentum::Character::skeleton, and momentum::toDeg().
|
inline |
Definition at line 749 of file fbx_io_internal.h.
References momentum::Character::blendShape, momentum::ParameterTransformT< T >::blendShapeParameters, and momentum::Character::parameterTransform.
|
inline |
Definition at line 769 of file fbx_io_internal.h.
References momentum::Character::faceExpressionBlendShape, momentum::ParameterTransformT< T >::faceExpressionParameters, and momentum::Character::parameterTransform.
|
inline |
Definition at line 330 of file fbx_io_internal.h.
Referenced by createAnimationCurves(), createBlendShapeAnimationCurves(), and createMarkerNodes().
|
inline |
Convert a raw momentum joint parameter to the FBX-native value.
FBX curves use 9 channels per joint: tx,ty,tz (0-2), rx,ry,rz (3-5), sx,sy,sz (6-8). Momentum stores 7 params: translation, rotation (radians), uniform log2-scale.
| value | Raw joint parameter value from the motion matrix. |
| curveOffset | FBX curve channel index (0-8). |
| joint | The joint providing the translation offset. |
Definition at line 362 of file fbx_io_internal.h.
References momentum::toDeg(), and momentum::JointT< T >::translationOffset.
Referenced by createAnimationCurves().
|
inline |
Definition at line 918 of file fbx_io_internal.h.
References prependNamespaceToAllNodes().
Referenced by prependNamespaceToAllNodes().
|
inline |
Definition at line 590 of file fbx_io_internal.h.
References momentum::BlendShapeBase::getShapeNames(), momentum::BlendShapeBase::getShapeVectors(), and momentum::BlendShapeBase::shapeSize().
Referenced by createMeshNode().
|
inline |
Definition at line 487 of file fbx_io_internal.h.
References momentum::Character::skinWeights.
Referenced by createMeshNode().
|
inline |
Definition at line 95 of file fbx_io_internal.h.
Referenced by createAnimationCurves(), createBlendShapeAnimationCurves(), and createMarkerNodes().
|
inline |
Definition at line 378 of file fbx_io_internal.h.
References momentum::ParameterTransformT< T >::activeJointParams, momentum::fbx_internal::JointCurveSetup::animCurves, momentum::fbx_internal::JointCurveSetup::animCurvesIndex, momentum::SkeletonT< T >::joints, momentum::kParametersPerJoint, momentum::Character::parameterTransform, and momentum::Character::skeleton.
Referenced by createAnimationCurves().
|
inlinenodiscard |
Definition at line 73 of file fbx_io_internal.h.
References momentum::LeftHanded, MT_THROW, and momentum::RightHanded.
|
inlinenodiscard |
Definition at line 84 of file fbx_io_internal.h.
References momentum::FbxCoordSystemInfo::coordSystem, momentum::FbxCoordSystemInfo::frontVector, toFbx(), and momentum::FbxCoordSystemInfo::upVector.
|
inlinenodiscard |
Definition at line 62 of file fbx_io_internal.h.
References MT_THROW, momentum::ParityEven, and momentum::ParityOdd.
|
inlinenodiscard |
Definition at line 49 of file fbx_io_internal.h.
References MT_THROW, momentum::XAxis, momentum::YAxis, and momentum::ZAxis.
Referenced by toFbx().
|
inline |
Definition at line 533 of file fbx_io_internal.h.
References momentum::MeshT< T >::faces, momentum::MeshT< T >::polyFaces, and momentum::MeshT< T >::polyFaceSizes.
Referenced by createMeshNode().
|
inline |
Definition at line 555 of file fbx_io_internal.h.
References momentum::MeshT< T >::polyFaces, momentum::MeshT< T >::polyFaceSizes, momentum::MeshT< T >::polyTexcoordFaces, and momentum::MeshT< T >::texcoord_faces.
Referenced by createMeshNode().
|
constexpr |
Definition at line 795 of file fbx_io_internal.h.
Referenced by createMarkerNodes().
|
constexpr |
Definition at line 794 of file fbx_io_internal.h.
Referenced by createMarkerNodes().