> For the complete documentation index, see [llms.txt](https://community.threekit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community.threekit.com/learn/faq/what-is-layered-rendering.md). Agents can also search and read this documentation through its [MCP server](https://community.threekit.com/~gitbook/mcp).

# What is Layered Rendering?

Layered Rendering provides a means to limit combinatorial explosion for highly configurable products with many options.

Great, what is combinatorial explosion? When products are highly configurable, containing a number of unique combinations of configurable attributes upwards of several thousand, or even into the millions, it is not practical (or scaleable) to retain (and maintain) an equivalent number of renders.

For example, here we have a sofa.<br>

<figure><img src="https://2029237644-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8N1IA5a0lqRClKT5eQQ7%2Fuploads%2FixZ8TXJAzCr3oDXcKJd1%2FFAQLayeredRendering_layeredrend2.png?alt=media&amp;token=1d0df94d-d9f1-4ca6-8d27-28e073b9c4c8" alt=""><figcaption></figcaption></figure>

This sofa is offered in 6 colors, the Accent Pillows are offered in 6 colors, there are 5 leg types, and an optional skirt. In sum, there are 360 unique combinations of the 4 attributes listed. Without layered rendering, it would be necessary to retain 360 unique renders to serve up on-demand, based on a given customer's configuration.

However, Layered Rendering provides a path to limiting the number of required renders. Separating the product on the basis of its configurable, component parts allows for defining said layers. In this case, the model is decomposed into the 4 layers below.

![](https://2029237644-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8N1IA5a0lqRClKT5eQQ7%2Fuploads%2FgGtMCWR2w9mx1Vmkv6jt%2FFAQLayeredRendering_layeredRend1.png?alt=media\&token=a03dabc2-fd79-4d9b-815b-7e7018501373)

Now the options for each of these layers can be rendered independently, decreasing the number of required renders from 360 to just 23.

#### Some Assembly Required

Once individual renders exist, the [Layers Service](https://community.threekit.com/hc/en-us/articles/4405859546395) retrieves the requested images, per the configuration, and the final render is assembled and produced.

![](https://2029237644-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8N1IA5a0lqRClKT5eQQ7%2Fuploads%2FxIoaXJKvZweafaiwrMdU%2FFAQLayeredRendering_LayeredRenderFlow.png?alt=media\&token=d5b93298-b90f-4a27-bc28-d5ca38416b3d)

#### Re-Configure, Retain Performance

In the context of a live 2D configuration experience when the Threekit Player is initialized, the product retains a default configuration. When the shopper changes an attribute to a different option, all elements of the model not affected by that change will remain static. This allows for very performant configuration experiences.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community.threekit.com/learn/faq/what-is-layered-rendering.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
