> For the complete documentation index, see [llms.txt](https://ms-kb.msd.unimelb.edu.au/next-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ms-kb.msd.unimelb.edu.au/next-lab/augmented-reality/guides/fologram/extended-functionality/preparing-models-for-ar.md).

# Preparing Models for AR

## Overview

Hololens and Fologram limitations means that you may have to adapt your geometry for use in this workflow.

A rough benchmark is 1 million polygons for an acceptable augmented reality experience at 45 frames a second, note that sensitivity to framerates, delay and lag may vary widely between different people.

You can read more about Fologram's own benchmark here:

{% embed url="<https://community.fologram.com/t/hololens-2-polygon-count-and-frame-rate/49>" %}

You can find Fologram's article on this topic here: \
<https://community.fologram.com/t/how-to-prepare-your-models-for-mixed-reality-and-avoid-common-mistakes/86>

Here are some more in-depth approaches for this process.

## Managing Polygon Count

![Left: Original mesh model. Right: Reduced mesh model. Model Credit: NEWPALMRYA](/files/-MeNT-AaP4igU2ZO80BA)

### Cleaning Topology (Photogrammetry etc.)

If your 3D model is generated from elsewhere and is not suitable for reduction, you may attempt to retopologise your model so that it is easier to work with. Most 3D software has the ability to retopologise but we recommend InstantMeshes for control:

<https://github.com/wjakob/instant-meshes> - Download the pre-compiled binaries.\
\
Blender example workflow: <https://www.youtube.com/watch?v=dKo0rWXVAlc>

### Reducing Polygon Counts

In most 3D software, there are options to reduce mesh sizes.

* In Rhino, you may try  \[Reduce Mesh]
* In Blender, you may try the \[Decimate] Modifier

Note that this method will require management of textures.\
Refer to the section below on fidelity and **Texture Baking**

### Low-Poly Meshes

In some instances, you may have to completely remodel your geometry with extremely reduced detail: <https://www.youtube.com/watch?v=y7PdiGXbrD0>

If you have the high-poly model, you can then bake textures, refer to section below on fidelity and **Texture Baking**

## Rendering Fidelity

Fologram is limited to basic material controls and lighting interactions.&#x20;

### Texture Baking

For higher quality material finishes, you can attempt to bake these lighting qualities into the texture itself.\
This is a common process for optimising 3D real-time content, please find more information here:

{% content-ref url="/pages/-LYxpU5Vb-FnW-CM1Kix" %}
[UV and Lightmaps](/next-lab/virtual-reality/guides/vr-development-overview/unreal-engine-overview/unreal-engine-other-guides/uv-and-lightmaps.md)
{% endcontent-ref %}

Lighting effects are part of the image texture, removing the need for the lighting to be calculated and presented in real-time.

![](/files/-LYyHY8YLcseXAobFBR0)

This works for most non-reflective material qualities and is recommended for at least diffuse, ambient occlusion, and shadow qualities.&#x20;

This can be done in most 3D software, examples of documentation below:

* 3dsmax: <https://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/3DSMax-Rendering/files/GUID-B67A2495-89E4-464A-8913-35C957E950EB-htm.html>
* Blender: <https://docs.blender.org/manual/en/latest/render/cycles/baking.html>

Blender example: <https://www.youtube.com/watch?v=r0M363A8um4>

## Texture Sizes

Fologram will automatically reduce texture sizes that are too large, if you have a large texture covering a large piece of geometry, it is recommended that you split the model into several pieces and adjust the textures to suit.

![](/files/-MeNKCw9Z0XfoJeLkuB5)

## Examples

Example of baked texture maps for diffuse, global illumination, ambient occlusion and shadows:

![Overall composition](/files/-MeNKsWx9CEaMf22jFV_)

![Corresponding site texture with shadows of the house and trees baked in.](/files/-MeNL-Ml19IpLauGyf5-)

![Corresponding house texture with shadows, diffuse colour reflected from the grass around it and shadows.](/files/-MeNLPcNglC4pJG7El3K)


---

# 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://ms-kb.msd.unimelb.edu.au/next-lab/augmented-reality/guides/fologram/extended-functionality/preparing-models-for-ar.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.
