# NPC キャラクターの生成

MorphicでNPCキャラクターを生成する簡単なチュートリアルはこちらです:

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

1. まず、 [スタイルモデルの学習が完了したら](/docs/jp/gmudezain/train-a-style-model.md)、Morphicで新しいファイルを開きます&#x20;
2. プロンプトバーで、生成したいキャラクターの種類を説明します
3. プロンプトバーのスタイルモデルのドロップダウンから、ゲームのビジュアルスタイルに合うように学習済みモデルを選択します
4. 「Generate」をクリックしてアセットを作成します
5. ゲームで使用したい生成済みキャラクターを選びます
6. セグメンテーションまたはレイヤー機能を使って、キャラクターを背景から分離します
7. Include Pointsを使って、抽出したい主要なキャラクターとその要素をマークします
8. 背景の周囲にExclude Pointsを追加して、シーンからそれらのキャラクターをうまく切り離し、きれいに分離しやすくします
9. 「Segment」ボタンをクリックして、選択したキャラクターを背景から分離します
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/jp/gmudezain/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.
