# 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)$$.


---

# 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://docs.mirai.build/deep-dive/hypergen-tm/text-to-3d-hypergen.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.
