Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerMorphModelEditorModel
Description
Initialize a set of engine morph targets and compress them to GPU friendly buffers. These morph targets are initialized from a set of deltas. Each morph target needs to have Model->GetNumBaseVerts() number of deltas. All deltas are concatenated in one big array. So all deltas of all vertices for the second morph target are appended to the deltas for the first morph target, etc. In other words, the layout is: [morph0_deltas][morph1_deltas][morph2_deltas][...].
| Name | InitEngineMorphTargets |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerMorphModelEditorModel.h |
| Include Path | #include "MLDeformerMorphModelEditorModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerMorphModelEditorModel.cpp |
virtual void InitEngineMorphTargets
(
const TArray < FVector3f > & Deltas
)
Parameters
| Name | Remarks |
|---|---|
| Deltas | The deltas for all morph targets concatenated. So the number of items in this array is a multiple of Model->GetNumBaseVerts(). |