# Create Morph Target from Mesh Files

Grabs the deltas between Base and Morph files and projects them on the Target Mesh and creates a Morph Target on the Target Skeletal Mesh.\
This node requires Base and Morphed files to be FBX/OBJ format.\
Base and Morphed files are required to have same vertex count and order.\
Morph Targets are projected on all Target Mesh LODs.\
Projection is multi-threaded but can be very intensive on meshes with big data.

{% hint style="warning" %}
Unreal Engine 5.0.X requires ***`Use GPU for computing morph targets`*** disabled in project settings. This doesn't apply for UE 5.1 and above.&#x20;
{% endhint %}

<figure><img src="https://2202237093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FililYtTOKJkeJpzbCa02%2Fuploads%2FR6gnzkkQlURBvFeyVbiX%2Fimage_2022-12-14_230814848.png?alt=media&#x26;token=7ecd188f-4bad-47b2-bb17-73bf6b058ce4" alt="GPU morph targets computing settings"><figcaption></figcaption></figure>

{% hint style="warning" %}
Creating Morph Targets at runtime will invalidate existing Morph Targets available in editor.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://2202237093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FililYtTOKJkeJpzbCa02%2Fuploads%2FCHyuIIa1CAx9GcmTOSFh%2Fimage_2022-12-14_230120109.png?alt=media&#x26;token=a0cc6663-f725-4cdd-91fb-d4c02ba02a1b" alt="Create Morph Targets at runtime from Mesh Files"><figcaption></figcaption></figure></div>

#### Inputs

| Parameter                                                                           | Description                                                                                                                                   |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Base File</p><p><code>Mesh Morpher FBXInput Structure (by ref)</code></p>        | FBX File and Import Settings of the Base FBX.                                                                                                 |
| <p>Morphed File</p><p><code>Mesh Morpher FBXInput Structure (by ref)</code></p>     | FBX File and Import Settings of the Morph FBX.                                                                                                |
| <p>Name</p><p><code>Name</code></p>                                                 | Morph Target Name.                                                                                                                            |
| <p>Target Mesh</p><p><code>Skeletal Mesh Object Reference</code></p>                | Target Mesh to project Standalone Morph Targets on.                                                                                           |
| <p>Max LOD</p><p><code>Integer</code></p>                                           | Maximum LOD Index on the Target Mesh to project the Morph Targets                                                                             |
| <p>Vertex Threshold</p><p><code>Float (double-precision)</code></p>                 | Maximum Distance threshold between a vertex in the target mesh and a vertex in source mesh, at which they are considered to be correspondent. |
| <p>Normal Incompatibility Threshold</p><p><code>Float (double-precision)</code></p> | Normal threshold at which a triangle is deemed as incompatible. This helps to avoid triangle flipping during Projection.                      |
| <p>Smooth Iterations</p><p><code>Integer</code></p>                                 | Smooth Iterations steps used to Smooth the resulted Projected Deltas.                                                                         |
| <p>Smooth Strength</p><p><code>Float (double-precision)</code></p>                  | Smooth Strength used to Smooth the resulted Projected Deltas.                                                                                 |
| <p>Smooth Type</p><p><code>EMeshMorpherSmoothTypes Enum</code></p>                  | Smooth Type used to Smooth the resulted Projected Deltas.                                                                                     |

#### Outputs

| Parameter                                      | Description                                                |
| ---------------------------------------------- | ---------------------------------------------------------- |
| <p>Return Value</p><p><code>Boolean</code></p> | Returns true if the Morph Target was successfully created. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meshmorpher.com/runtime/create-from-mesh-files/create-morph-target-from-mesh-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
