|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Functions for linear blend skinning (Skeletal Subspace Deformation). More...
#include <momentum/character/fwd.h>#include <momentum/character/skinned_locator.h>#include <momentum/character/types.h>#include <momentum/math/fwd.h>#include <momentum/math/span_compat.h>#include <momentum/math/types.h>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| template<typename T> | |
| std::vector< Eigen::Matrix4< T > > | momentum::computeSkinningTransforms (typename DeduceSpanType< const JointStateT< T > >::type jointState, const TransformationListT< T > &inverseBindPose) |
| Computes the skinning transforms from joint states and inverse bind poses. | |
| template<typename T> | |
| std::vector< Vector3< T > > | momentum::applySSD (const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms) |
| Applies forward SSD (linear blend skinning) to points using precomputed skinning transforms. | |
| template<typename T> | |
| std::vector< Vector3< T > > | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const JointStateT< T > >::type jointState) |
| Applies forward SSD to points using joint states, returning new points. | |
| template<typename T> | |
| std::vector< Vector3< T > > | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, const SkeletonStateT< T > &state) |
| Applies forward SSD to points using skeleton state, returning new points. | |
| template<typename T> | |
| std::vector< Vector3< T > > | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, const TransformationListT< T > &worldTransforms) |
| Applies forward SSD to points using precomputed world transforms, returning new points. | |
| template<typename T> | |
| std::vector< Vector3< T > > | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, typename DeduceSpanType< const Vector3< T > >::type points, typename DeduceSpanType< const TransformT< T > >::type worldTransforms) |
| Applies forward SSD to points using a span of world transforms, returning new points. | |
| template<typename T> | |
| void | momentum::applySSD (const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const Eigen::Matrix4< T > >::type skinningTransforms, MeshT< T > &outputMesh) |
| Applies forward SSD to a mesh using precomputed skinning transforms. | |
| template<typename T> | |
| void | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const JointStateT< T > >::type jointState, MeshT< T > &outputMesh) |
| Applies forward SSD to a mesh using joint states, modifying output mesh. | |
| template<typename T> | |
| void | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, const SkeletonStateT< T > &state, MeshT< T > &outputMesh) |
| Applies forward SSD to a mesh using skeleton state, modifying output mesh. | |
| template<typename T> | |
| void | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, const TransformationListT< T > &worldTransforms, MeshT< T > &outputMesh) |
| Applies forward SSD to a mesh using precomputed world transforms. | |
| template<typename T> | |
| void | momentum::applySSD (const TransformationListT< T > &inverseBindPose, const SkinWeights &skin, const MeshT< T > &mesh, typename DeduceSpanType< const TransformT< T > >::type worldTransforms, MeshT< T > &outputMesh) |
| Applies forward SSD to a mesh using a span of world transforms. | |
| Affine3f | momentum::getInverseSSDTransformation (const TransformationList &inverseBindPose, const SkinWeights &skin, const SkeletonState &state, size_t index) |
| Computes the inverse SSD transformation for a specific vertex. | |
| std::vector< Vector3f > | momentum::applyInverseSSD (const TransformationList &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonState &state) |
| Applies inverse SSD to points, returning new points in bind pose space. | |
| void | momentum::applyInverseSSD (const TransformationList &inverseBindPose, const SkinWeights &skin, momentum::span< const Vector3f > points, const SkeletonState &state, Mesh &mesh) |
| Applies inverse SSD to points, storing results in a mesh. | |
| template<typename T> | |
| Vector3< T > | momentum::getSkinnedLocatorPosition (const SkinnedLocator &locator, const Vector3< T > &restPosition, const TransformationList &inverseBindPose, const SkeletonStateT< T > &state) |
| Computes the world position of a skinned locator using linear blend skinning. | |
| template<typename T> | |
| Vector3< T > | momentum::getSkinnedLocatorPosition (const SkinnedLocator &locator, const TransformationList &inverseBindPose, const SkeletonStateT< T > &state) |
| Computes the world position of a skinned locator using linear blend skinning. | |
Functions for linear blend skinning (Skeletal Subspace Deformation).
Linear blend skinning (LBS), also known as Skeletal Subspace Deformation (SSD), is a technique used in character animation to deform a mesh based on an underlying skeleton. Each vertex in the mesh is influenced by one or more joints, with weights determining how much influence each joint has on the vertex's final position.
This file provides functions to:
Key concepts:
Definition in file linear_skinning.h.