Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
blend_shape_skinning.h File Reference

This file provides functions for applying blend shape deformations and skeletal transformations to character meshes. More...

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

template<typename T>
void momentum::skinWithBlendShapes (const Character &character, const SkeletonStateT< T > &state, const BlendWeightsT< T > &blendWeights, MeshT< T > &outputMesh)
 Applies blend shape deformations and skeletal transformations to a mesh.
template<typename T>
void momentum::skinWithBlendShapes (const Character &character, const SkeletonStateT< T > &state, const ModelParametersT< T > &modelParams, MeshT< T > &outputMesh)
 Applies blend shape deformations and skeletal transformations to a mesh.
template<typename T>
BlendWeightsT< T > momentum::extractBlendWeights (const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
 Extracts blend shape weights from model parameters.
template<typename T>
BlendWeightsT< T > momentum::extractFaceExpressionBlendWeights (const ParameterTransform &paramTransform, const ModelParametersT< T > &modelParams)
 Extracts facial expression blend shape weights from model parameters.

Detailed Description

This file provides functions for applying blend shape deformations and skeletal transformations to character meshes.

It contains two main sets of functionality:

  1. Skinning functions:
    • skinWithBlendShapes(character, state, blendWeights, outputMesh): Use when you already have blend weights calculated and want to apply them directly.
    • skinWithBlendShapes(character, state, modelParams, outputMesh): Use when you have model parameters and need to extract blend weights before skinning. This is more convenient for high-level character animation where you work with model parameters.
  2. Weight extraction functions:
    • extractBlendWeights(): Use to get blend shape weights from model parameters for identity/shape blend shapes (e.g., body shape variations).
    • extractFaceExpressionBlendWeights(): Use to get blend shape weights specifically for facial expressions, which are stored separately from regular blend shapes.

Definition in file blend_shape_skinning.h.