FBlendProfile
The blend profile (UE's UBlendProfile): a named per-bone scale that a transition, a layered blend or a value blend applies on top of its own weight. Pure data — resolution against a skeleton is a static, so one profile can drive any number of skeletons without holding state for any of them.
- Module
- Animation
- Header
#include "Animation/BlendProfile.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
EBlendProfileMode | mode | Default EBlendProfileMode::TimeFactor. |
std::vector<FBlendProfileEntry> | entries |
Public functions
| Returns | Name | Description |
|---|---|---|
float | DefaultValue | Unlisted bones read 1.0 under TimeFactor/WeightFactor (an unmentioned bone blends exactly as it would with no profile at all) and 0.0 under BlendMask (a mask is a statement about what participates, so silence there has to mean "not this one"). |
void | Resolve | |
void | BlendTimes | Per-bone blend WINDOW for a transition of blendTime. |
void | ApplyWeights | Per-bone alpha for a blend already carrying weights (one entry per bone, the caller's own layer/branch weights). |
void | Serialize | |
bool | Deserialize | |
bool | SaveToFile | |
bool | LoadFromFile |
Function details
DefaultValue
float DefaultValue() constUnlisted bones read 1.0 under TimeFactor/WeightFactor (an unmentioned bone blends exactly as it would with no profile at all) and 0.0 under BlendMask (a mask is a statement about what participates, so silence there has to mean "not this one").
Resolve
static void Resolve(const FBlendProfile& profile, const Skeleton& skeleton, FBlendProfileResolved& out)BlendTimes
static void BlendTimes(const FBlendProfileResolved& resolved, float blendTime, std::vector<float>& out)Per-bone blend WINDOW for a transition of blendTime. A factor of 0 is deliberately allowed and means "already there" — the bone snaps to the incoming pose instead of blending, which is what a mask-like TimeFactor profile is for.
ApplyWeights
static void ApplyWeights(const FBlendProfileResolved& resolved, std::vector<float>& weights)Per-bone alpha for a blend already carrying weights (one entry per bone, the caller's own layer/branch weights). WeightFactor reshapes the progress curve (leading or lagging inside the window, still reaching 1 at the end), BlendMask scales the weight itself and so really can hold a bone back permanently, and TimeFactor is a no-op here — it has nothing to say about a blend that is not on a clock.
Serialize
void Serialize(MdfNode& node) constDeserialize
bool Deserialize(const MdfNode& node)SaveToFile
static bool SaveToFile(const FBlendProfile& profile, const std::string& path)LoadFromFile
static bool LoadFromFile(const std::string& path, FBlendProfile& out)