> For the complete documentation index, see [llms.txt](https://docs.mapsindoors.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mapsindoors.com/products/cms/media-library/3d-models.md).

# 3D Models

3D models in your MapsIndoors solution are uploaded and managed through the Media Library, just like 2D models and icons. However, due to the nature of 3D models, there are a few additional steps to manage, particularly when uploading your 3D model. 3D models can be uploaded to the Media Library in the `.glb` file format.

## Making performant 3D models

To make your models performant on your maps, you need to follow a few guidelines. Here's a quick guide to exporting proper models from Blender (a 3D modelling software).

### Fewer vertices result in smoother performance

To optimize performance, reduce polygons in your models to minimize data and machine power usage.

<figure><img src="/files/3N2EYVTQdtQZsLEqJha3" alt=""><figcaption><p>Workstation model. 50kb, 1300 verts.</p></figcaption></figure>

### Ensure proper .glb export

Here is a guide on which materials to include or exclude in your model exports for better compatibility with Mapbox. The parameters listed below should not deviate from their default settings:

<figure><img src="/files/f3ZnDEcDQ8mqkOh6R9j9" alt=""><figcaption><p>Always use "Principled BSDF" shader</p></figcaption></figure>

Using Blender or third-party tools to compress models is **incompatible** with Mapbox.

## Set Preview Image​ <a href="#set-preview-image" id="set-preview-image"></a>

<figure><img src="/files/GFLZv31DJjoyq41VH1ea" alt=""><figcaption></figcaption></figure>

When you upload a 3D model to the Media Library, you'll need to set a *preview image*. This opens a viewport where you can move and rotate the 3D model to determine what image will display as a preview in both the Media Library and other CMS locations.

1. The widget you use to move your model. In this image, it is set to "Move", but will look differently when set to "Rotate".
2. Toggle between "Move" and "Rotate".
3. Zoom your viewport.
4. Enter values for rotation instead of using the widget.
5. Reset either the camera position, model rotation or model placement to the default values.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mapsindoors.com/products/cms/media-library/3d-models.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
