> For the complete documentation index, see [llms.txt](https://docs.mirai.build/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mirai.build/deep-dive/hypergen-tm/text-to-3d-hypergen.md).

# Text-to-3D HyperGen

### HyperGen™ Text-to-3D works as follows:

1. **Specify object:** User queries the MIRAI world builder for a specific object they in need in-world such as a sword.
2. **Text Analysis:** MIRAI sorts through its own and partners pre-existing database of objects that matches the description of the object requested. If the 3D model is found it is imported to the world.
3. **Model Generation:** If no pre-existing 3D model is found from the database then the model is generated.
4. **Model Optimization:** The generated 3D model is optimized for rendering and interaction within the game.

***

**Let:**&#x20;

* $$Q$$ be the user query for a specific object.
* $$D$$ be the database of pre-existing 3D models.
* $$M$$ be the 3D model of the object.
* $$G$$ be the function for generating a new 3D model.
* $$O$$ be the function for optimizing the 3D model.
* $$I$$ be the function for importing the 3D model into the world.

**The process can be described as follows:**

$$
Q \rightarrow \text{FindModel}(Q, D) \rightarrow \begin{cases}
M & \text{if } M \in D \\
G(Q) \rightarrow O(G(Q)) & \text{if } M \notin D
\end{cases} \rightarrow I(M) \
$$

**Where:**

* $$Q$$ represents the user query.
* $$FindModel(Q, D)$$ determines if $$M$$ exists in the database $$D$$.
* If $$M \in D$$, then $$M$$ is imported directly. If $$M \notin D$$, then a new model is generated $$G(Q)$$ and optimized $$O(G(Q))$$.
* Finally, the model $$M$$ is imported into the world $$I(M)$$.
