# Add 3D models to your app or game

> Ask your Agents for 3D models from a description or a picture, look at them, have them animated or converted, and put them in your app, your game or AR.

Source: https://air.build/docs/build/add-3d-models/

Your Agents can make 3D models from a description, from one or more pictures, or from a model you already have. They can paint the model, give a character a skeleton and moves such as walking or running, make it lighter for phones, and save it in the format your app needs. You ask in the project's chat, look at what they send, and tell them where it goes. They make the models with [modelgen](https://air.build/docs/cli/modelgen/), the same way in a cloud Team and in a Team that runs on your Mac.

## Ask for a model

1. Open the project's chat.
2. Say what the model is, the look you want, and where it will be used.
3. Optionally, attach a starting point with **+**: a drawing or photo of the thing, a few pictures of it from different sides, or a model file you have. See [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/).
4. Ask the Agent to send the model in the chat with a picture of it, so you can look before it goes into the app.

For example:

```text
Make a low-poly fox character for the game, cartoon style, orange and white. Give it idle and walk animations. Send me a picture of it and the file before you add it.
```

Things worth saying:

| Say | For example |
| --- | --- |
| Where it's used | "In a phone game", "in AR in the app", "on the website", "for 3D printing" |
| The look | Low-poly, cartoon, realistic, blocky voxel style |
| Whether it moves | "It walks and runs", or "it stands still" |
| How many | "Three versions to choose from" |
| The file it should be | Only if you know it. Otherwise saying where it's used is enough. |

Where it's used decides most of the rest:

| Used for | What the Agent can do |
| --- | --- |
| A game on phones | A low-poly model with textures, light enough for phones |
| A game on a computer | A more detailed model with textures |
| AR on iPhone and iPad | A lighter model saved as USDZ, the format Apple's AR uses |
| An animated character | A skeleton and moves such as idle, walk or run |
| 3D printing | A model without paint, saved as STL with a flat bottom |

To show where a model should appear in your app, use Preview: **Screenshot** puts a picture of the screen in the message box, and **Draw** lets you mark the spot. See [Run your app in Preview](https://air.build/docs/build/preview-your-app/#use-the-device).

## Look at what arrives

A model arrives in the chat as a file, such as `.usdz`, `.glb` or `.fbx`. A picture of the model may come with it: tap the picture to see it full size.

AirBuild has no 3D viewer of its own. Tapping the model file hands it to your device:

**iPhone**

The file opens in Quick Look, full screen over the chat. A USDZ model shows there in 3D, and you can place it in the room. For a format Quick Look can't show, ask the Agent for a USDZ copy, or for pictures of the model from a few sides. The same works on iPad.

**Mac**

The file opens in the app your Mac uses for that kind of file, the same as a file you downloaded. If no app on your Mac opens it, ask the Agent for pictures of the model from a few sides.

To keep the file, touch and hold it (on the Mac, right-click it) and choose **Save As…**. For the other choices, see [Send photos, files and sketches to an Agent](https://air.build/docs/projects/send-photos-and-files/#open-files-in-the-chat).

The Agent may ask you to choose with a question card. An option can show a picture: tap the picture to see it full size, and tap the option to pick it. See [Work with your Agents in chat](https://air.build/docs/projects/work-with-agents-in-chat/#answer-an-agents-question).

## Ask for changes

Answer in plain words and say which model you mean. You can ask to:

- try again: the same request makes a different model;
- paint it again, in more detail or in another style;
- make it lighter, so it runs well on phones;
- give a character a skeleton, then add moves such as idle, walk or run;
- save it in another format, such as USDZ, FBX, GLB, OBJ or STL.

The new version arrives as a new message. The earlier ones stay in the chat.

## Put it in your app

A model in the chat isn't part of your app yet. When you've chosen, tell the Agent where it goes and what it does:

```text
Use the fox as the player. Play the idle animation when it stands still and the walk animation when it moves.
```

The Agent adds the model to the project. Once the app is built again:

- Open Preview and go to the screen to see the model in place. See [Run your app in Preview](https://air.build/docs/build/preview-your-app/).
- AR needs a real camera. To try a model in the room, install the app on your own iPhone or iPad: see [Install your app on your iPhone](https://air.build/docs/build/install-on-your-iphone/) or [Share a beta with TestFlight](https://air.build/docs/app-store/test-with-testflight/).
- The model's file is in the project's **Files** tab. See [Find the files and documents Agents made](https://air.build/docs/projects/find-files/).

Making a game? See [Make a game](https://air.build/docs/build/make-a-game/). For its pictures and sounds, see [Have Agents make pictures for your app](https://air.build/docs/build/make-pictures-for-your-app/) and [Add sound effects, music or a voice to your app](https://air.build/docs/build/add-sound-and-music/).

## Questions

**Can I use a model I already have?**

Yes. Attach it with **+** and say what to do with it: use it as it is, or have it painted, animated or converted. For those changes, send a GLB, FBX, OBJ or STL file. A `.gltf` file can't be changed on its own: export it as a single `.glb` file first.

**Can I make a model from a photo?**

Yes. Attach the photo and say what it shows. Pictures of the same thing from a few sides, such as front, side and back, give the Agent more to work from.

**The model doesn't show in 3D when I tap it**

AirBuild hands the file to your device, and your device can't show that format. Ask the Agent for a USDZ copy to look at on iPhone or iPad, or for pictures of the model from a few sides.

**I can't find the model in the Files tab**

A file sent in the chat belongs to that message. It's in **Files** only after the Agent adds it to the project. Ask the Agent to add it.

**Does making 3D models count toward my plan?**

Yes. Generated 3D models count toward your plan's AI usage. If your Agents use your own key or subscription, their chat doesn't count, but the models still do. See [Understand your usage](https://air.build/docs/team/understand-usage/#what-counts-toward-your-plan).

**The Agent says it can't make models right now**

Your plan's AI usage may be used up; if so, a card above the message box says so. See [Understand your usage](https://air.build/docs/team/understand-usage/#when-usage-runs-low).
