# 生成 NPC 角色

这里有一个关于如何在 Morphic 上生成 NPC 角色的快速教程：

{% embed url="<https://youtu.be/Ekzfvg2a_Co>" %}

1. 一旦你的 [风格模型训练完成](/docs/zh/you-xi-she-ji/train-a-style-model.md)，就在 Morphic 上打开一个新文件&#x20;
2. 在提示栏中，描述你想要生成的角色类型
3. 在提示栏的风格模型下拉菜单中，选择你训练好的模型，以匹配你游戏的视觉风格
4. 点击“生成”以创建你的素材
5. 选择你想在游戏中使用的生成角色
6. 使用分割或图层功能将角色与背景分离
7. 使用包含点标记你想提取的关键角色及其元素
8. 在背景周围添加排除点，以帮助隔离并干净地将这些角色与场景分离
9. 点击“分割”按钮，将选中的角色与背景分离
10. 根据需要，自由移动分离出的角色，或将其放置到另一个画面中
11. 以你偏好的格式导出这些角色（目前我们支持 PNG、JPEG 或 WebP）

这就是你生成 NPC 角色、将其与背景干净分离，并导出以供项目使用的方法。

***


---

# 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://morphic.com/docs/zh/you-xi-she-ji/generating-npc-characters.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.
