Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor
Inheritance Hierarchy
- TSharedFromThis
- FGCObject
- FMLDeformerEditorModel
- FMLDeformerGeomCacheEditorModel
- FMLDeformerMorphModelEditorModel
- FNearestNeighborEditorModel
- FNeuralMorphEditorModel
References
| Module | MLDeformerFrameworkEditor |
| Header | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerMorphModelEditorModel.h |
| Include | #include "MLDeformerMorphModelEditorModel.h" |
Syntax
class FMLDeformerMorphModelEditorModel : public UE::MLDeformer::FMLDeformerGeomCacheEditorModel
Remarks
The editor model related to the runtime UMLDeformerMorphModel class, or models inherited from that.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< float > | InputItemMaskBufferBackup | The backup of the input item mask buffer. This contains all the bone and bone group masks. | |
| TArray< FVector3f > | MorphTargetDeltasBackup | The entire set of morph target deltas, 3 per vertex, for each morph target, as one flattened buffer. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddRequiredBones
(
const FReferenceSkeleton& RefSkel, |
Add any required bone to the mask. | |
| void | ApplyBoneToMask
(
int32 SkeletonBoneIndex, |
Add bone influences to the mask. | |
| TArray< int32 > | BuildVirtualParentTable
(
const FReferenceSkeleton& RefSkel, |
Build a mapping table that tells us the virtual parent for each bone in the ref skeleton. | |
| float | CalcGlobalMaskWeight
(
int32 RenderVertexIndex, |
Calculate the global mask weight for a specific render vertex, using a color buffer and specified mask channel settings. | |
| void | CalcMorphTargetNormals
(
int32 LOD, |
Calculate the delta normals for a given morph target. | |
| void | CalcVertexNormals
(
TArrayView< const FVector3f > VertexPositions, |
Calculate the normals for each vertex, given the triangle data and positions. | |
| void | Clamp the current morph target number inside the visualization settings to a valid range. | ||
| void | CompressMorphTargets
(
FMorphTargetVertexInfoBuffers& OutMorphBuffers, |
Compress morph targets into GPU based morph buffers. | |
| void | CreateMorphTargets
(
TArray< UMorphTarget* >& OutMorphTargets, |
Generate engine morph targets from a set of deltas. | |
| void | DebugDrawMorphTarget
(
FPrimitiveDrawInterface* PDI, |
Debug draw specific morph targets using lines and points. | |
| void | FillMaskValues
(
TArrayView< float > ItemMaskBuffer, |
Fill the mask buffer for a given item with a specific value. | |
| int32 | FindVirtualParentIndex
(
const FReferenceSkeleton& RefSkel, |
Find the virtual parent for a given bone. | |
| const TArrayView< const float > | GetMaskForMorphTarget
(
int32 MorphTargetIndex |
Get the mask buffer for a given morph target. | |
| UMLDeformerMorphModel * | Helpers. | ||
| UMLDeformerMorphModelVizSettings * | Helpers. | ||
| void | InitEngineMorphTargets
(
const TArray< FVector3f >& Deltas |
Initialize a set of engine morph targets and compress them to GPU friendly buffers. | |
| bool | Check if input masking is supported in this model. | ||
| FMLDeformerEditorModel * | MakeInstance () |
We need to implement this static MakeInstance method. | |
| bool | ProcessVertexDelta
(
FVector3f& OutScaledDelta, |
Process and filter a vertex delta position and normal and apply scaling to it. | |
| void | RecursiveAddBoneToMaskDownwards
(
const FReferenceSkeleton& RefSkel, |
Recursively add bone masks for this bone and its children. | |
| void | RecursiveAddBoneToMaskUpwards
(
const FReferenceSkeleton& RefSkel, |
Recursively add bone masks for this bone and its parents. | |
| void | UpdateMorphErrorValues
(
TArrayView< UMorphTarget* > MorphTargets |
Update the morph target error values. | |
| void | ZeroDeltasByLengthThreshold
(
TArray< FVector3f >& Deltas, |
Zero all deltas with a length equal to, or smaller than the threshold value. |
Overridden from FMLDeformerEditorModel
| Type | Name | Description | |
|---|---|---|---|
| FString | Get the path to the heat map deformer graph asset. | ||
| void | OnPostTraining
(
ETrainingResult TrainingResult, |
This method is executed after training. | |
| void | This is called just before we start the training process. | ||
| void | OnPropertyChanged
(
FPropertyChangedEvent& PropertyChangedEvent |
This is called whenever a property value changes in the UI. | |
| void | Render
(
const FSceneView* View, |
Render additional (debug) things in the viewport. |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| FString | Overload this method to report a name for your referencer |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CalcMorphTargetNormals
(
int32 LOD, |
Please use the CalcMorphTargetNormals method that takes more parameters. |