> This is part 1 of 2 of the full documentation (pages 1–100 of 137).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.colormass.com/llms-full.txt/1
> Page index: https://docs.colormass.com/llms.txt

# Welcome

Welcome to the API Access section of the documentation. This API is designed to help developers seamlessly integrate **colormass** into their applications, enabling advanced data management, configurator integration, and exporting functionalities. With our API, you can create custom workflows, automate processes, and build tailored solutions to suit your business needs.

## Jump right in

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Configurator</strong></td><td>Integrate configurators into your website.</td><td><a href="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-b8d85e4132429c18458bb0b4df0f83880797fb4f%2Fconfigurators.png?alt=media">configurators.png</a></td><td></td><td><a href="/dev/configurator/introduction">Introduction</a></td></tr><tr><td><strong>Data Exporter</strong></td><td>Integrate automatic outputs into your website.</td><td><a href="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-708c8c42c277d028839aee8735056c7bb99368d7%2Fdataexporter.jpg?alt=media">dataexporter.jpg</a></td><td></td><td><a href="/dev/data-exporter/generating-exports">Generating Exports</a></td></tr></tbody></table>

## Configurator

In the configurator documentation you can learn about the ways you can integrate colormass configurators into your website. There are various levels of integration, starting from changing basic styling elements of our components until completely using your own UI and only communicating with the 3D viewer through an API.

Just to provide an example you can find the following custom configurators that were integrated using the colormass API.

* [**Designtex DDS**](https://designtex.com/digital-studio/): This custom application empowers users to visualize customized patterns in real time, offering a dynamic and interactive experience. This visualization capability is seamlessly integrated with Designtex's ecommerce platform, streamlining the process of pattern selection and customization for users. Ultimately, this system results in the production of the desired pattern, which is a printed sample.
* [**VADO Vanity Builder**](https://www.vado.com/cameo-vanity-builder)**:** This configurator was assembled utilizing the colormass 3D backend and seamlessly integrated via the colormass API. The frontend of the configurator was created by VADO to ensure perfect alignment with the brand.

Learn more about configurator integrations [here](/dev/configurator/introduction).

## Data Exporter

* [**Designtex Downloads**](https://shop.designtex.com/circulate/): If you visit any of the product pages of Designtex. You can find that the material exports are integrated into the website, eliminating the need to always download and upload files to the CMS.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-32f4537df713ce87de7e0e654dae2c3be3234a41%2Fimage.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

* [**Maharam Downloads**](https://www.maharam.com/maharam/products/flex/colors/005-weaver)**:** Similarly on the Maharam product pages you will also see that material exports are directly integrated into the website.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-6aa099452ea1557219a889e15c25598e4242b491%2Fimage.png?alt=media" alt="" width="70"><figcaption></figcaption></figure>

Learn more about data integrations [here](/dev/data-exporter/integration).

{% hint style="info" %}
If you would like to create Configurators or Exports of your material then please head to the [Tutorials](https://docs.colormass.com/) section of the documentation.
{% endhint %}


# Introduction

{% embed url="<https://vimeo.com/458968347>" %}

The colormass Configurator for Businesses, developed on top of colormass' proprietary life-like visualization technology and data management infrastructure, is a simple and cost effective way to display products in a photorealistic way. It works on almost any device, without plugins. To learn more, visit the [colormass Configurator page](https://www.colormass.com/3d-configurator).

This documentation is intended for anyone who would like to integrate the configurator on their website or e-commerce solution. The most basic integration is possible without any coding skills as described in Getting Started . If you are interested in customizing the user interface or connecting the configurator with your existing website's or webshop's logic, visit the Advanced Integration page.

{% hint style="info" %}
If you have any questions, feel free to send an email to <support@colormass.com> or call us at +49 30 6920 6200.
{% endhint %}


# Web Components

**Web Components**

This section provides an overview of integrating the configurator into your website using web components. Unlike iframe integration, web components allow for a more seamless adaptation to your website's design and offer greater control over the configurator programmatically. If your requirement is solely to display the configurator, iframe integration might be simpler, particularly when utilizing a Content Management System (CMS).


# Getting Started

The configurator and its accompanying menu are integrated into your website as web components. Think of a web component as a tailor-made HTML tag that seamlessly integrates into your HTML document or web application. Unlike the previous iframe-based configurator integration, with web components, the menu's placement can be freely adjusted, independent of the configurator. Moreover, you have the flexibility to customize its appearance to align with the overall aesthetics of your website. The simplest integration resembles the following:

{% code lineNumbers="true" fullWidth="false" %}

```html
<!DOCTYPE html>
<html style="height: 100%">
  <head>
    <!-- Load default styles, icons and fonts required by the configurator -->
    <link
      href="https://configurator.colormass.com/styles.css"
      rel="stylesheet"
    />
    <!-- The configurator web components are contained in the following module -->
    <script
      src="https://configurator.colormass.com/cm-configurator.js"
      type="module"
    ></script>
  </head>
  <body style="width: 100%; height: 100%; margin: 0; font-family: Roboto">
    <!-- This is the actual web component, template-uuid specifies the configurator to load -->
    <cm-configurator-main
      template-uuid="8ee95263-fd7c-40fc-b99f-08961594e14e"
    ></cm-configurator-main>
  </body>
</html>
```

{% endcode %}

In this example, we load the required default styles for the configurator and the configurator Javascript module. Note that some parts of the configurator can be [customised through CSS](/dev/configurator/web-components/styling) in order to match your pages style.

The above example shows a standalone html document. The integration into a CMS like wordpress works similar, but usually requires CMS-specific html containers.

## Separate Menu

If you want to use the menu separately, you can load it as additional web component and place it anywhere in your current website. Note that this requires to set the HTML attribute `use-external-menu="true"` on the configurator element to prevent flashing of the configurator's "internal" menu. The example changes to:

{% code lineNumbers="true" %}

```html
<!DOCTYPE html>
<html style="height: 100%">
  <head>
    <link
      href="https://configurator.colormass.com/styles.css"
      rel="stylesheet"
    />
    <script
      src="https://configurator.colormass.com/cm-configurator.js"
      type="module"
    ></script>

    <style>
      .container {
        display: flex;
        height: 100%;
        overflow: hidden;
      }

      .menu {
        justify-content: center;
        width: 20%;
        background-color: #f4f4f4;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 400px;
      }

      .configurator-container {
        flex-grow: 1;
        box-sizing: border-box;
      }
    </style>
  </head>
  <body style="width: 100%; height: 100%; margin: 0; font-family: Roboto">
    <div class="container">
      <div class="menu">
        <!-- Separate web component for the menu -->
        <cm-configurator-menu style="width: 100%"></cm-configurator-menu>
      </div>
      <div class="configurator-container">
        <cm-configurator-main
          template-uuid="8ee95263-fd7c-40fc-b99f-08961594e14e"
          use-external-menu="true"
        ></cm-configurator-main>
      </div>
    </div>
  </body>
</html>
```

{% endcode %}


# Advanced Integration

The configurator can be controlled programmatically by calling functions on the web component. You can use this API to for example to change configurations or to take a screenshot.

## Basic Example

The following example loads a specific configurator by calling a function on the element instead of specifying the template uuid as html attribute:

{% code lineNumbers="true" %}

```html
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <link href="https://configurator.colormass.com/styles.css" rel="stylesheet" />
        <script src="https://configurator.colormass.com/cm-configurator.js" type="module" />

        <script>
            customElements.whenDefined("cm-configurator-main").then(() => {
                //get the configurator element
                const cmConfigurator = document.querySelector("cm-configurator-main")
				
                //call a function on the object
                cmConfigurator.loadConfigurator("8ee95263-fd7c-40fc-b99f-08961594e14e")
            })
        </script>
    </head>
    <body style="width: 100%; height: 100%; margin: 0; font-family: Roboto">
        <cm-configurator-main></cm-configurator-main>
    </body>
</html>
```

{% endcode %}

We use the Custom Elements Api here (`customElements.whenDefined`) to make sure the functions are available.

There is a more elaborate example available in the [sample repository](https://github.com/colormass/samples/tree/prod/configurator-webcomponents/api). In the repository, there is also a cm-configurator.d.ts file, which lists all available functions.

A limitation of the web components currently is that they cannot immediately load a specific configuration. In case of the iframe configurator, this can be achieved with query parameters of the url. Should this feature be required, it can be added short-term.

## Listening to Events

In order to get notified when something happens on the configurator, you can register different event listeners. The following code registers a callback that is invoked when the scene has finished loading:

{% code lineNumbers="true" %}

```html
<script>
	customElements.whenDefined("cm-configurator-main").then(() => {
		cmConfigurator = document.querySelector("cm-configurator-main")

		//Register an event listener and print the parameters available for the current configurator
		cmConfigurator.addEventListener("loadingCompleted", (event) => {
			console.log(cmConfigurator.getParameterList())
		})

		cmConfigurator.loadConfigurator("8ee95263-fd7c-40fc-b99f-08961594e14e")
	})
</script>
```

{% endcode %}

The full section of the previous example is contained for context. After the scene provided to loadConfigurator has finished loading, the configurator will print all available parameters on the console. You can use those parameters to change configurations programmatically.

## Changing Configurations

With the API of the web component, it is possible to change configurations dynamically without clicking on an item in the menu. For this purpose, you can use the parameters returned by cmConfigurator.getParameterlist(). Here is the (shortened) list of the parameters that was printed by the previous example:

{% code lineNumbers="true" %}

```json
[
    {
        "id": "0fb20bb9-2284-4a8b-b6e0-db02ebc36742/ced9d80c-7103-43f2-a5ba-2d90e0c823b3",
        "type": "config",
        "name": "Seat",
        "values": [
            {
                "id": "3d7420d9-6117-428f-ba41-890ecd157f8e",
                "name": "Blazer Darthmouth"
            },
            {
                "id": "e6ddc079-8026-4e4f-95ca-6e2be019a0f6",
                "name": "Oceanic Atoll"
            },
            {
                "id": "18479bf9-e393-4da9-9fc9-dfb37077550b",
                "name": "Lucia Tenom"
            },
        ],
        "value": "087612ab-9a50-43e3-8626-b1c37322b499"
    },
    {
        "id": "0fb20bb9-2284-4a8b-b6e0-db02ebc36742/60a5a88a-7701-4c10-819e-deb5f87f15c4",
        "type": "config",
        "name": "Back",
        "values": [
            {
                "id": "c93e318c-88ee-4e8c-9b56-9c7075f53784",
                "name": "Main Line Flax Bayswater"
            },
            {
                "id": "4c190056-bc69-49f5-a081-c82a86658124",
                "name": "Synergy Quilt Chemistry"
            },
        ],
        "value": "42763086-b3e6-48cb-ac63-2172f2245bf9"
    }
]
```

{% endcode %}

The configurator of this example has two configuration groups: *Back \_and \_seat*. Each has multiple variants. This is reflected in the above json array. In order to set those groups programmatically, you can use the following code:

{% code lineNumbers="true" %}

```javascript
<script>
	customElements.whenDefined("cm-configurator-main").then(() => {
		cmConfigurator = document.querySelector("cm-configurator-main")

		cmConfigurator.addEventListener("loadingCompleted", (event) => {
			console.log(cmConfigurator.getParameterList())

			//Switch the seat upholstery to "Velocity Polar"
			cmConfigurator.setParameter(
				"0fb20bb9-2284-4a8b-b6e0-db02ebc36742/ced9d80c-7103-43f2-a5ba-2d90e0c823b3",
				"config",
				"1d9f7d3d-3823-4224-a3f7-62028295080f",
			)
		})
		cmConfigurator.loadConfigurator("8ee95263-fd7c-40fc-b99f-08961594e14e")
	})
</script>
```

{% endcode %}

The full api is illustrated in the [samples repository](https://github.com/colormass/samples/tree/prod/configurator-webcomponents)


# Styling

Web components provided by us can be seamlessly integrated and styled to align with your website's design, utilizing CSS for customization. These components leverage the shadow DOM for encapsulation, which inherently restricts direct access to their CSS classes to avoid styling conflicts with the rest of your website. Nonetheless, to facilitate customization, certain DOM elements within the configurator are exposed, enabling styling through the ::part pseudo-element. In addition to this, several CSS variables are available. The example below illustrates how to style the cm-config-group-title part within the .menu CSS class of the basic menu example:

{% code lineNumbers="true" %}

```css
.menu {
  justify-content: center;
  width: 15%;
  background-color: #f4f4f4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 400px;
}

/* This will change the apprearance of the configuration group titles */
.menu::part(cm-config-group-title) {
  background-color: #d78a5e;
  padding: 10px;
  color: white;
}
```

{% endcode %}

A full example with more styling options can be found in the [samples repository](https://github.com/colormass/samples/tree/configurator-webcomponents/configurator-webcomponents). This example also covers the CSS variables.

Even though the CSS classes are not directly accessible, you can see all the exposed parts in the dev tools of your browser as illustrated in the figure below:

![part-illustration.jpg](https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-f6aa9042193744a243c4584a47bfc5924ca8dce2%2FdY1mA1Ixm%202Hbq%20part%20illustration.jpg?alt=media)

## HTML attributes

In addition to CSS, the following HTML attributes are available, which change the appearance of the menu:

* **ui-style-override**: Changes the operation mode of the menu, available values are default, icons and accordion
* **use-captions**: Displays captions underneath the icons

For example, the following html code displays an accordion menu with captions underneath the icons, the full example is found on [github](https://github.com/colormass/samples/tree/configurator-webcomponents/configurator-webcomponents/styled%20menu).

```html
<cm-configurator-menu ui-style-override="accordion" use-captions="true" style="width: 100%"></cm-configurator-menu>
```

![image.png](https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-053d8385e037b224613443b92cba2d80f90cf277%2F7nJP_hnsJAsNQ2%20image.png?alt=media)


# Setting Parameters

Parameters let you adjust the settings of a configurator instance in two ways:

1. **Initial Parameters via HTML:** You can set an initial configuration by adding a set of parameters directly to the configurator's HTML tag. This approach is useful for loading a predefined configuration when the configurator first loads.
2. **Dynamic Parameters at Runtime:** You can also modify parameters at runtime by calling `setParameter` on the configurator. This method is helpful when building a custom menu or control interface for the configurator.

Note that colormass typically provides the necessary parameter settings, so you do not need to understand the details of the parameter format beyond those two points. The following example adds an initial parameter to the HTML tag by using the `parameters` attribute:

```html
<cm-configurator-main
	template-uuid="9f867cb8-966f-4736-9106-3cacba50b3b4"
	parameters="param(3d23006d-1eb2-47f1-a616-e357695316b8)=material(2d8709e8-d5b9-4028-86b1-d06e8575011b)"
></cm-configurator-main>
```

The same parameter can also be set at runtime:

```html
<script>
	customElements.whenDefined("cm-configurator-main").then(() => {
		cmConfigurator = document.querySelector("cm-configurator-main")
		cmConfigurator.setParameter("3d23006d-1eb2-47f1-a616-e357695316b8", "material", "2d8709e8-d5b9-4028-86b1-d06e8575011b")
	})
</script>
```

### Parameter Format

A configurator parameter is composed of three parts: `id`, `type` and `value`. Values for those parts are usually provided by colormass, but if you have access to the platform, you can also get and edit the available parameters yourself. This is covered in a separate [section below](#parameter-types-and-associated-values).

* **id:** This is a unique identifier for the parameter. This ID is usually platform-generated but can be customized for readability.
* **type:** Specifies how the configurator interprets and processes the value. Different types, like "material" or "config" determine the behavior and application of the parameter within the configurator.
* **value**: The specific value to be used with the parameter. Depending on the type, this value can also be customized for better readability.

The parameter string used to load a given configuration is usually provided by colormass. If you need to change it, the format is as follows:

```
param(id)=type(value)
```

When multiple parameters should be set, they are separated by `&`:

```
param(id1)=type(value1)&param(id2)=type(value2)
```

### Parameter Types and Associated Values

All parameters originate from input elements that were used to build the configurator on the colormass platform. The type of a parameter defines what the configurator will assign to those elements internally. The following types are available:

#### config

This type controls configurations that are also available in the configurator’s menu. It allows to programmatically load a specific configuration variant displayed there. A config parameter is derived from a config group within the configurator’s template, and the values it accepts are the IDs of that group’s config variants (see figures below). Available variants for a config parameter can also be retrieved via `cmConfigurator.getParameterList()`.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-baceb1d2f1267ac6a261634a7c80244e6886f64b%2FConfiggroup.jpg?alt=media" alt="" width="563"><figcaption><p>Config group inside the template editor. The ID of the group is part of the parameter ID.</p></figcaption></figure>

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-6abb733746b828e4ac659f0f0bc96c05bfdda6e9%2FConfigvariant.jpg?alt=media" alt="" width="563"><figcaption><p>Config variant, whose ID can be used in cmConfigurator.setParameter.</p></figcaption></figure>

#### material

This type assigns a material to the configurator, even if it is not available in the configurator’s menu. The required value is a material ID, which you can retrieve via our GraphQL API. You can build and test queries directly on the [API test page](https://gql.colormass.com/graphql).

**material-article-id**

This type is used to assign a material by specifying your own in-house ID. The ID must be set up on the details page of the material on the colormass platform:

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-fe7afeb078d1480adaef161a40544b0981581b38%2FArticleid.jpg?alt=media" alt="" width="161"><figcaption></figcaption></figure>

### Getting Available Parameters

In order to get the currently available parameters, you can use `getParameterList:`

```html
<script>
    customElements.whenDefined("cm-configurator-main").then(() => {
        cmConfigurator = document.querySelector("cm-configurator-main")

        //Parameters are only available after a configurator was loaded. loadingCompleted is emitted after the initial loading completes
        cmConfigurator.addEventListener("loadingCompleted", (event) => console.log("Current parameters", cmConfigurator.getParameterList()))
        //configurationLoaded is emitted after a new configuration selected by the user was loaded
        cmConfigurator.addEventListener("configurationLoaded", (event) => console.log("Current parameters", cmConfigurator.getParameterList()))
    })
</script>
```

### API Limitations

When creating a custom menu or controls for a configurator, be aware that the configurator’s API currently does not provide information on parameter dependencies. In complex configurators, certain configurations are hidden or shown based on the currently selected variant. Consequently, calls to `cmConfigurator.getParameterList()` may not always list every available parameter. After a parameter with dependencies is changed, subsequent calls to `getParameterList()` may return a different set of parameters.


# SDK API Reference

The configurator web component is a custom HTML element. Just as regular elements, it provides HTML attributes and methods, which are described in the following.

## Attributes

<table><thead><tr><th width="224">Name</th><th width="183">Type</th><th width="313">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>parameters</code></td><td>string</td><td><p>Initial list of parameters formatted as query parameters, e.g, param(&#x3C;input-identifier>)=&#x3C;input-type>(&#x3C;input-value>). <em>Example:</em></p><p><em><code>"param(123)=material(123)&#x26;param(987)=number(10)"</code></em><br></p></td><td><code>undefined</code></td></tr><tr><td><code>show-ui</code></td><td>boolean</td><td>Show or hide the action menu UI layer.</td><td><code>true</code></td></tr><tr><td><code>template-uuid</code></td><td>string</td><td>The id (UUID) of the template to load. Mutually exclusive with the <code>organization-uuid</code>/<code>article-id</code> pair (if both are supplied, <code>template-uuid</code> takes precedence).</td><td><code>undefined</code></td></tr><tr><td><code>organization-uuid</code></td><td>string</td><td>The id (UUID) of the organization used together with <code>article-id</code> to resolve a template by its article identifier. Required when <code>article-id</code> is provided and <code>template-uuid</code> is omitted.</td><td><code>undefined</code></td></tr><tr><td><code>article-id</code></td><td>string</td><td>The optional article identifier used (together with <code>organization-uuid</code>) to load a template without knowing its template UUID. If both <code>template-uuid</code> and <code>article-id</code> are present, the component uses <code>template-uuid</code>.</td><td><code>undefined</code></td></tr><tr><td><code>use-external-menu</code></td><td>boolean</td><td>Set to <code>true</code> if a separate menu is being provided.</td><td><code>false</code></td></tr><tr><td><code>fullscreen-target</code></td><td>string</td><td><p>CSS selector of an element in your page. The fullscreen button puts this element in fullscreen, not only the configurator. Put your own controls (for example, an external menu or zoom buttons) inside this element to keep them visible in fullscreen.</p><p>Without this attribute, a configurator with <code>use-external-menu</code> set to <code>true</code> shows its internal menu in fullscreen instead of your menu. With this attribute, your menu stays and the internal menu is not shown.</p><p>If the selector does not match an element, only the configurator goes to fullscreen. <em>Example:</em> <code>".my-wrapper"</code></p></td><td><code>undefined</code></td></tr><tr><td><code>pixel-ratio</code></td><td>number</td><td>Override the device pixel ratio used for rendering to trade off image sharpness versus performance. Higher values increase clarity at additional GPU cost.</td><td><code>undefined</code></td></tr></tbody></table>

## Methods

### captureSnapshotInMemory

The asynchronous `captureSnapshotInMemory()` method of the `Configurator` interface creates an image from the rendering and resolves the returned `Promise` with the data URL string that contains the image data. Optional arguments allow choosing the output mime type and quality.

Throws an error if the Canvas 2d context is not available.

#### Signature

```typescript
async captureSnapshotInMemory(mimeType?: "image/png" | "image/jpeg", quality?: number, transparentBackground?: boolean): Promise<string>
```

#### Parameters

`mimeType`

The optional image type. Can be `"image/png"` or `"image/jpeg"`. Defaults to `"image/jpeg"`.

`quality`

Optional numeric quality for the JPEG encoder between 0 and 1. Defaults to `0.95`. Ignored for `"image/png"`.

`transparentBackground`

Optional. Set to `true` to receive a transparent PNG. This ignores any scene background color/image and forces the mime type to `"image/png"` (JPEG cannot be transparent). Defaults to `false`.

#### Return value

Returns a `Promise` which resolves with the data URL `string`

### downloadPdf

The asynchronous `downloadPdf()` method of the `Configurator` interface generates a PDF document of the current configuration and starts a file download. An optional [`PdfDownloadOptions`](#pdfdownloadoptions) object can be passed to customise the PDF title and provide custom table data (headers, rows, column widths, and a total row).

When called without options (or with `options.table` omitted), the PDF table is populated from the internal pricing service. When `options.table` is provided, the caller-supplied data is rendered instead.

#### Signature

```typescript
async downloadPdf(options?: PdfDownloadOptions): Promise<void>
```

#### Parameters

`options`

An optional [`PdfDownloadOptions`](#pdfdownloadoptions) object.

#### Return value

Returns a `Promise` which resolves to `undefined`.

#### Example

```javascript
const configurator = document.querySelector("cm-configurator-main")

configurator.addEventListener("loadingCompleted", async () => {
    await configurator.downloadPdf({
        title: "YOUR CUSTOM PRODUCT",
        table: {
            headers: ["DESCRIPTION", "CODE", "PRICE"],
            rows: [
                ["Acme Deluxe Cabinet - Oak", "ACME-DLX-001", "€ 1,200"],
                ["Acme Granite Worktop 800mm", "ACME-GRN-800", "€ 450"],
            ],
            columnWidthPercentages: [45, 30, 25],
            total: {label: "Total Price", value: "€ 1,650"},
        },
    })
})
```

### generateQrCode

The asynchronous `generateQrCode()` method of the `Configurator` interface creates an QR code image for the provided `url` and resolves the returned `Promise` with the data URL string that contains the image data.

The QR code image can be configured by setting the `errorCorrectionLevel` to `'high'` or `'low'` and by setting the `width` or `margin` `number` parameter.

#### Signature

```typescript
async generateQrCode(url: string, errorCorrectionLevel: "high" | "low", width: number, margin: number): Promise<string>
```

#### Parameters

`url`

The url `string` the QR code should represent.

`errorCorrectionLevel`

The correction level that should be applied to the QR code generation. Can be `'high'` or `'low'`.

`width`

The `number` of the resulting image width in pixels.

`margin`

The `number` of the margin around the QR code in pixels.

#### Return value

Returns a `Promise` which resolves with the data URL `string`

### getParameterList

The `getParameterList()` method of the `Configurator` interface returns a list of the available [`ConfiguratorParameters`](#configuratorparameters) once the configurator is loaded (after the [`configurationLoaded`](#configurationloaded) event was fired).

#### Signature

```typescript
getParameterList(): ConfiguratorParameters[]
```

#### Parameters

*None*

#### Return value

Returns an `Array` of `Object` conforming to the [`ConfiguratorParameters`](#configuratorparameters) type.

### getPricesAsList

The asynchronous `getPricesAsList()` method of the `Configurator` interface fetches a list of item price data, if configured on the platform. The `Promise` resolves with an array of [`PricedItem`](#priceditem).

#### Signature

```typescript
async getPricesAsList(): Promise<PricedItem[]>
```

#### Parameters

*None*

#### Return value

Returns a `Promise` which resolves with an `Array` of `Object` conforming to the [`PricedItem`](#priceditem) type.

### loadConfigurator

The asynchronous `loadConfigurator()` method of the `Configurator` interface loads the template for the supplied template UUID and starts rendering.

#### Signature

```typescript
async loadConfigurator(templatedUuid: string): Promise<void>
```

#### Parameters

`templateUuid`

The id `string` of the template to load.

#### Return value

Returns a `Promise` which resolves to `undefined`.

### loadConfiguratorByArticleId

The asynchronous `loadConfiguratorByArticleId()` method of the `Configurator` interface resolves a template via an organization UUID / article ID pair and then loads it. Use this when you only know a business-level article identifier within an organization instead of a specific template UUID.

#### Signature

```typescript
loadConfiguratorByArticleId(organizationUuid: string, articleId: string): void
```

#### Parameters

`organizationUuid`

The organization id `string` the article identifier belongs to.

`articleId`

The article identifier `string` unique within the organization.

#### Return value

Returns a `Promise` which resolves to `undefined`.

### resetCamera

The `resetCamera()` method of the `Configurator` interface resets the camera angle and zoom level of the visualisation.

#### Signature

```typescript
resetCamera(): void
```

#### Parameters

*None*

#### Return value

Returns `undefined`.

### saveSnapshot

The `saveSnapshot()` method of the `Configurator` interface creates an image from the rendering and starts a file download. Optional arguments allow choosing the output mime type and quality.

#### Signature

```typescript
saveSnapshot(mimeType?: "image/png" | "image/jpeg", quality?: number, transparentBackground?: boolean, fileName?: string): void
```

#### Parameters

`mimeType`

The optional image type. Can be `"image/png"` or `"image/jpeg"`. Defaults to `"image/jpeg"`.

`quality`

Optional numeric quality for the JPEG encoder between 0 and 1. Defaults to `0.95`. Ignored for `"image/png"`.

`transparentBackground`

Optional. Set to `true` to download a transparent PNG. This ignores any scene background color/image and forces the mime type to `"image/png"` (JPEG cannot be transparent). Defaults to `false`.

`fileName`

Optional download name without extension; the matching extension is appended automatically. Characters that are illegal in file names are replaced with `_`. Defaults to `"snapshot"`.

#### Return value

Returns `undefined`.

### setParameter

The asynchronous `setParameter()` method of the `Configurator` interface sets a parameter for the current template and starts rendering.

There is advanced guide on [how to set parameters](/dev/configurator/web-components/setting-parameters).

#### Signature

```typescript
async setParameter(id: string, type: ConfigType, value: number | string | ImageDataParameter | ColorOverlayParameter): Promise<void>
```

#### Parameters

`id`

The parameter identifier `string`.

`type`

The parameter [`ConfigTyp`](#configtype)

`value`

The parameter value as `number` , `string` or `ImageDataParameter`.

#### Return value

Returns a `Promise` which resolves to `undefined`.

### toggleDimensionGuides

The `toggleDimensionGuides()` method of the `Configurator` interface shows or hides dimension guides, if guides are configured for the template.

#### Signature

```typescript
toggleDimensionGuides(): void
```

#### Parameters

*None*

#### Return value

Returns `undefined`.

### toggleFullscreen

The `toggleFullscreen()` method of the `Configurator` interface requests fullscreen view for the configurator and exits fullscreen respectively.

If the `fullscreen-target` attribute is set, the method puts the target element in fullscreen, not the configurator.

#### Signature

```typescript
toggleFullscreen(): void
```

#### Parameters

*None*

#### Return value

Returns `undefined`.

### viewInAr

The asynchronous `viewInAr()` method of the `Configurator` interface fetches the AR model for the current configuration and opens the native AR view on iOS or Android. For other devices it will generate and display a QR code, which links to the AR view.

#### Signature

```typescript
async viewInAr(): Promise<void>
```

#### Parameters

*None*

#### Return value

Returns a `Promise` which resolves to `undefined`.

### zoomIn

The `zoomIn()` method of the `Configurator` interface increases the zoom. It accepts a value between 0 and 1, where larger values produce larger zoom steps.

#### Signature

```typescript
zoomIn(value: number): void
```

#### Parameters

`value`

The zoom percentage as a `number` between 0 and 1.

#### Return value

Returns `undefined`.

### zoomOut

The `zoomOut()` method of the `Configurator` interface decreases the zoom. It accepts a value between 0 and 1, where larger values produce larger zoom steps.

#### Signature

```typescript
zoomOut(value: number): void
```

#### Parameters

`value`

The zoom percentage as a `number` between 0 and 1.

#### Return value

Returns `undefined`.

## Events

### arUrl

The `arUrl` event fires when the AR model for the current configuration is ready. The URL `string` to open the AR viewer can be accessed via `event.detail`.

#### Syntax

```typescript
addEventListener("arUrl", (event: { detail: string }) => {}): void
```

### changeCompleted

The `changeCompleted` event fires after a parameter was changed using [`setParameter`](#setparameter) and the visualization change is done. The `event.detail` object contains the changed parameter `id` .

#### Syntax

```typescript
addEventListener("changeCompleted", (event: { id: string}) => {}): void
```

### configurationLoaded

The `configurationLoaded` event fires after the configurator finished loading the configuration. It will fire for the initial configuration and on subsequent changes triggered through the menu UI, changes to attributes, calls to [`loadConfigurator`](#loadconfigurator) or [`setParameter`](#setparameter).

#### Syntax

```typescript
addEventListener("configurationLoaded", (event) => {}): void
```

### loadingCompleted

The `loadingCompleted` event fires after the configurator finished loading the template. It will fire for the initial configuration and if the template is changed via the [`template-uuid`](#properties) attribute or a call to [`loadConfigurator`](#loadconfigurator).

#### Syntax

```typescript
addEventListener("loadingCompleted", (event) => {}): void
```

### pdfDownloadTriggered

The `pdfDownloadTriggered` event fires whenever a pdf download starts. It fires right before the download begins, not when the file is finished, so it does not guarantee that the pdf was generated successfully.

#### Syntax

```typescript
addEventListener("pdfDownloadTriggered", (event) => {}): void
```

## Types

### ConfigType

```typescript
type ConfigType = "config" | "material" | "material-article-id" | "template" | "image" | "string" | "boolean" | "number" | "object" | "int" | "float"
```

### ConfiguratorParameters

```typescript
type ConfiguratorParameters = {
    id: string
    type: ConfigType
    name: string
    values: {
        id: string
        name: string
    }[]
    value?: unknown
}
```

### PricedItem

```typescript
type PricedItem = {
    description: string
    sku?: string
    price: number
    currency: "EUR" | "USD" | "GBP"
    amount: number
}
```

### ImageDataParameter

```typescript
type ImageDataParameter = {
    contentType: "image/jpeg" | "image/png"
    data: Uint8Array
}
```

### ColorOverlayParameter

```typescript
type ColorOverlayParameter = {
    materialId: string
    size: [number, number]
    overlay:
        | string
        | {
              data: Uint8Array<ArrayBuffer>
              contentType: string
          }
}
```

### PdfDownloadOptions

```typescript
type PdfDownloadOptions = {
    /** Custom title for the PDF. Overrides the default title from the template settings. */
    title?: string
    /** Table configuration. If omitted, the internal pricing service data is used. */
    table?: {
        /** Column headers (e.g., ["DESCRIPTION", "CODE", "PRICE"]) */
        headers: string[]
        /** Data rows; each row is an array of strings matching the headers */
        rows: string[][]
        /** Optional column width percentages. If omitted, columns are distributed equally. */
        columnWidthPercentages?: number[]
        /** Optional total row rendered in bold at the bottom of the table */
        total?: {
            label: string
            value: string
        }
    }
}
```


# Examples


# Custom Menu

### Goal

A common use case is the integration of the configurator into a shop system or an existing website. As the design options of the built-in menu are limited, it is often necessary to create a separate menu to control the parameters of the configurator.

#### Examples

The following image shows the customised menu from the sample project. The options are generated dynamically based on the available config parameters and control the rendering of the configurator.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-9f6e76a3f28e879b1c8ac68ac75f35aff796bcd6%2Fcustom-menu-sample.png?alt=media" alt=""><figcaption><p>Sample configurator with a custom menu UI.</p></figcaption></figure>

### Setting the scene

For this example, we set up a test scene on the colormass platform. It consists of a chair and a configuration node to select from a list of materials for the front and back of the chair.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-6abb733746b828e4ac659f0f0bc96c05bfdda6e9%2FConfigvariant.jpg?alt=media" alt=""><figcaption><p>Config group and variants for the material applied to the seat.</p></figcaption></figure>

### Adding the markup

Once the scene has been prepared, the configurator component can be added to the page.

```html
<cm-configurator-main ui-style="default" template-uuid="fb825772-66cd-4001-ae46-d537f194d6a2" use-external-menu="true"></cm-configurator-main>
```

We also add an element that functions as a container for the menu options.

```html
<div class="menu-controls" id="menu-container">
    <!-- Container holds the dynamically rendered menu elements -->
</div>
```

### Adding the scripts

We use the `getParameterList` API to get all available configuration parameters for the current template. For each parameter, we cycle through the available configuration `values` and create a button element. The button uses `setParameter` to update the rendering.

Note: we use a small helper function `htmlToNode` to create the elements to prevent repetition.

```javascript
async function initializeMenu() {
    // clear the menu container
    menuContainer.innerHTML = ""
    // load all available parameters
    parameterList = cmConfigurator.getParameterList()
    for (const parameter of parameterList) {
        // create a container element for each parameter
        const parameterContainer = htmlToNode(`
            <div class="menu-section">
                <h3>${parameter.name}</h3>
                <div class="parameter-flex" id="menu-parameter-values-container"></div>
            </div>
        `)

        for (const parameterValue of parameter.values) {
            // create a button for each possible parameter value
            const parameterValueButton = htmlToNode(`
                <button class="${parameterValue.id === parameter.value ? "active" : ""}">
                    ${parameterValue.name}
                </button>
            `)
            parameterValueButton.onclick = async (event) => {
                updateParameterMenuActiveStates(event.currentTarget)
                await cmConfigurator.setParameter(parameter.id, parameter.parameterType, parameterValue.id)
            }
            parameterContainer.querySelector("#menu-parameter-values-container").appendChild(parameterValueButton)
        }

        menuContainer.appendChild(parameterContainer)
    }
}
```

As soon as the configurator element has finished loading, we add two event listeners to call the above defined render function `initializeMenu`. The `loadingCompleted` event is triggered when the first loading of the configurator is complete. The `changeCompleted` event is triggered when the render parameters have changed.

```javascript
let cmConfigurator, menuContainer, parameterList

customElements.whenDefined("cm-configurator-main").then(() => {
    cmConfigurator = document.querySelector("cm-configurator-main")
    // Initialize UI elements
    menuContainer = document.getElementById("menu-container")
    // Once the configurator has loaded, the menu can be rendered based on the available parameters
    cmConfigurator.addEventListener("loadingCompleted", initializeMenu)
    // Update the menu when available parameter values changed.
    cmConfigurator.addEventListener("configurationLoaded", initializeMenu)
    // Update the menu when available parameter values changed through the setParameter API
    cmConfigurator.addEventListener("changeCompleted", initializeMenu)
})
```

### Putting it all together

The complete example code can also be found in our [sample repository](https://github.com/colormass/samples/tree/prod/configurator-webcomponents/custom-menu/index.html).

```html
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <link rel="preconnect" href="https://configurator.colormass.com" />
        <!-- Load the colormass configurator styles -->
        <link href="https://configurator.colormass.com/styles.css" rel="stylesheet" />
        <!-- Load the colormass configurator web components -->
        <script src="https://configurator.colormass.com/cm-configurator.js" type="module"></script>

        <link rel="stylesheet" href="../styles/sample.css" />
        <link rel="stylesheet" href="../styles/ui.css" />

        <title>Custom Menu | Example</title>
        <meta charset="UTF-8" />
 
        <script>
            let cmConfigurator, menuContainer, parameterList

            customElements.whenDefined("cm-configurator-main").then(() => {
                cmConfigurator = document.querySelector("cm-configurator-main")
                // Initialize UI elements
                menuContainer = document.getElementById("menu-container")
                // Once the configurator has loaded, the menu can be rendered based on the available parameters
                cmConfigurator.addEventListener("loadingCompleted", initializeMenu)
                // Update the menu when available parameter values changed.
                cmConfigurator.addEventListener("configurationLoaded", initializeMenu)
                // Update the menu when available parameter values changed.
                cmConfigurator.addEventListener("changeCompleted", initializeMenu)
            })

            async function initializeMenu() {
                // clear the menu container
                menuContainer.innerHTML = ""
                // load all available parameters
                parameterList = cmConfigurator.getParameterList()
                for (const parameter of parameterList) {
                    // create a container element for each parameter
                    const parameterContainer = htmlToNode(`
                        <div class="menu-section">
                            <h3>${parameter.name}</h3>
                            <div class="parameter-flex" id="menu-parameter-values-container"></div>
                        </div>
                    `)

                    for (const parameterValue of parameter.values) {
                        // create a button for each possible parameter value
                        const parameterValueButton = htmlToNode(`
                            <button class="${parameterValue.id === parameter.value ? "active" : ""}">
                                ${parameterValue.name}
                            </button>
                        `)
                        parameterValueButton.onclick = async (event) => {
                            updateParameterMenuActiveStates(event.currentTarget)
                            await cmConfigurator.setParameter(parameter.id, parameter.parameterType, parameterValue.id)
                        }
                        parameterContainer.querySelector("#menu-parameter-values-container").appendChild(parameterValueButton)
                    }

                    menuContainer.appendChild(parameterContainer)
                }
            }

            function updateParameterMenuActiveStates(element) {
                // remove active class from all siblings
                const siblings = element.parentElement.children
                for (const sibling of siblings) {
                    sibling.classList.remove("active")
                }
                // set active class for clicked element
                element.classList.add("active")
            }

            function htmlToNode(html) {
                const template = document.createElement("template")
                template.innerHTML = html.trim()
                return template.content.firstChild
            }
        </script>
    </head>
    <body>
        <div class="container">
            <div class="menu">
                <div class="menu-controls" id="menu-container">
                    <!-- Container holds the dynamically rendered menu elements -->
                </div>
            </div>
            <div class="configurator-container">
                <cm-configurator-main ui-style="default" template-uuid="fb825772-66cd-4001-ae46-d537f194d6a2" use-external-menu="true"></cm-configurator-main>
            </div>
        </div>
    </body>
</html>

```


# Overlay Material Color

### Goal

The colormass configurator can be used to render custom fabric designs, which are provided as color images. Internally, the configuator embeds those images into a scanned, high-quality base material. This material contributes to the overall appearance and makes your design look like wool, cotton or linen.

#### Examples

The following images were created using this sample code and these two images as input:

<div><figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-b12333717c44629275ab2073a02594a7ddbb509a%2Fdots.png?alt=media" alt="" width="200"><figcaption><p>A colorful pattern</p></figcaption></figure> <figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-7252a2e507358c9fbd72db9fd7403187e39edea0%2FTileable%20image%20-%20Gingham%20Check%2016%20mm%20Dark%20Green%20-%2028%2C37cm%20x%2029%2C68cm-jpg-2000-jpg-1000.jpg?alt=media" alt="" width="191"><figcaption><p>A checkered pattern</p></figcaption></figure></div>

<div><figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-880fd7cc56c1eff9c0f03732e9fb45e4b1575d51%2F100_100_dots.jpg?alt=media" alt=""><figcaption><p>Colorful dots image, width and height 100cm</p></figcaption></figure> <figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-fd88b928fd3d384fded894b6b731d0b7c94af9ea%2F10_10_checkered.jpg?alt=media" alt=""><figcaption><p>Checkered pattern, width and height 10cm</p></figcaption></figure> <figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-ba2b0d937cfe42d3c74d080c5a855455fefff6b4%2F100_100_checkered.jpg?alt=media" alt=""><figcaption><p>Checkered pattern, width and height 100cm</p></figcaption></figure></div>

### Setting the scene

For this example, we set up a test scene on the colormass platform. It consists of a chair and uses a wool-like base material. The *Overlay Material Color* node takes care of replacing the color information of this material and scales your pattern to the desired width and height.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-323b4829a1752cf456942040e4f5e4572bbb030e%2Fmaterial_overlay_color.png?alt=media" alt="" width="304"><figcaption><p>Detail settings for the Overlay Material Color node</p></figcaption></figure>

While the base material is fixed, the overlay image as well as the width and height are transferred to the configurator via the corresponding input node (image input and number input).

<div><figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-0d9844e61d06cb82b697923eeb156e318f66a3e5%2Fimage_input.png?alt=media" alt="" width="288"><figcaption><p>Detail settings for the overlay image input node.</p></figcaption></figure> <figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-bd402a87e90c80667138b351e6b5a61bf0ee2f87%2Fwidth_input.png?alt=media" alt="" width="288"><figcaption><p>Detail settings for the width number input node.</p></figcaption></figure> <figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-5ec2a87f9d94bce04a2ccead8a3955b989e7312a%2Fheight_input.png?alt=media" alt="" width="288"><figcaption><p>Detail settings for the width number input node.</p></figcaption></figure></div>

### Adding the markup

Once the scene has been prepared, the configurator component can be added to the page.

<pre class="language-html"><code class="lang-html"><strong>&#x3C;cm-configurator-main template-uuid="60ec3a3a-9e92-4d2a-a6e5-16595d34686e">&#x3C;/cm-configurator-main>
</strong></code></pre>

To change the color pattern used programmatically, we add three simple input elements.

```html
<input id="widthInput" type="number" value="10" onchange="updateWidth(this.value)"/>
<input id="heightInput" type="number" value="10" onchange="updateHeight(this.value)"/>
<input type="file" id="overlayImageInput" accept="image/jpeg, image/png" onchange="updateOverlayImage(this.files)" />
```

### Adding the scripts

We use the ‘setParameters’ API, which is provided by the configurator component, to transfer the input data to the renderer. You can find a detailed explanation in our guide on [setting parameters](/dev/configurator/web-components/setting-parameters).

```javascript
// wait for the configurator component to be available
customElements.whenDefined("cm-configurator-main").then(() => {
    cmConfigurator = document.querySelector("cm-configurator-main")
})

// pass the width input to the configurator
async function updateWidth(width) {
    cmConfigurator.setParameter("width", "number", Number(width))
}

// pass the height input to the configurator
async function updateHeight(height) {
    cmConfigurator.setParameter("height", "number", Number(height))
}

// pass the image input to the configurator as an object URL
// note: the image parameter supports passing an image via 
//        - URL
//        - data URL (inlined base64)
//        - raw data (Uint8Array)
async function updateOverlayImage(files) {
    const file = files[0]
    const image = await fetch(file)
    const imageBlob = await image.blob()
    const imageUrl = URL.createObjectURL(imageBlob)
    await cmConfigurator.setParameter("overlayImage", "image", imageUrl)
}
```

### Putting it all together

The complete example code can also be found in our [sample repository](https://github.com/colormass/samples/blob/prod/configurator-webcomponents/overlay-material-color/index.html).

```html
<!DOCTYPE html>
<html style="height: 100%">
    <head>
        <link rel="preconnect" href="https://configurator.colormass.com" />
        <!-- Load the colormass configurator styles -->
        <link href="https://configurator.colormass.com/styles.css" rel="stylesheet" />
        <!-- Load the colormass configurator web components -->
        <script src="https://configurator.colormass.com/cm-configurator.js" type="module"></script>

        <title>Overlay Material Color | Example</title>
        <meta charset="UTF-8" />
        <style>
            body {
                width: 100%;
                height: 100%;
                margin: 0;
            }

            :root {
                --cm-menu-max-num-cols: 8;
                --cm-menu-icon-size: 40px;
                --cm-menu-background-color: rgba(255, 255, 255, 0);
                font-family: "Roboto";
            }

            .container {
                display: flex;
                height: 100%;
                overflow: hidden;
            }

            .menu {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 20px;
                width: 300px;
                background-color: #f4f4f4;
                overflow: hidden;
            }

            .menu-item {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                gap: 10px;
                width: 100%;
            }

            #overlayImageInput {
                display: none;
            }

            .configurator-container {
                flex-grow: 1;
                box-sizing: border-box;
            }

            img {
                width: 100%;
                height: auto;
            }
        </style>

        <script>
            let cmConfigurator,
                overlayImageInput,
                widthInput,
                heightInput,
                overlayImagePreview, 
                snapshotImagePreview;
            
            customElements.whenDefined("cm-configurator-main").then(() => {
                cmConfigurator = document.querySelector("cm-configurator-main")

                // Initialize UI elements
                overlayImageInput = document.getElementById("overlayImageInput")
                widthInput = document.getElementById("widthInput")
                heightInput = document.getElementById("heightInput")
                overlayImagePreview = document.getElementById("overlay-image-preview")
                snapshotImagePreview = document.getElementById("snapshot-image-preview")

                // Reset inputs
                overlayImageInput.value = ""
                widthInput.value = 10
                heightInput.value = 10
            })

            function inMemorySnapshot() {
                cmConfigurator
                    .captureSnapshotInMemory()
                    .then((snapshot) => {
                        snapshotImagePreview.src = snapshot
                    })
                    .catch((error) => {
                        console.log("Could not capture snapshot in memory.", error)
                    })
            }

            async function updateWidth(width) {
                await cmConfigurator.setParameter("width", "number", Number(width))
            }

            async function updateHeight(height) {
                await cmConfigurator.setParameter("height", "number", Number(height))
            }

            async function updateOverlayImage(files) {
                const file = files[0]
                
                const image = await fetch(file)
                const imageBlob = await image.blob()
                const imageUrl = URL.createObjectURL(imageBlob)
                // update image parameter
                await cmConfigurator.setParameter("overlayImage", "image", imageUrl)
                // set image preview
                overlayImagePreview.src = imageUrl

                // Alternative implementation using data URL
                // const dataUrlReader = new FileReader()
                // dataUrlReader.onload = async function (e) {
                //     overlayImagePreview.src = e.target.result
                //     await cmConfigurator.setParameter("overlayImage", "image", e.target.result)
                // }
                // dataUrlReader.readAsDataURL(files[0])
            
                // Alternative implementation using array buffer
                // const byteLoader = new FileReader()
                // byteLoader.onload = async function (e) {
                //     const buffer = new Uint8Array(e.target.result)
                //     const imageParamData = {
                //         contentType: file.type,
                //         data: buffer,
                //     }
                //     await cmConfigurator.setParameter("overlayImage", "image", imageParamData)
                // }
                // byteLoader.readAsArrayBuffer(files[0])
            }
        </script>
    </head>
    <body>
        <div class="container">
            <div class="menu">
                <!-- Pattern width -->
                <div class="menu-item">
                    <label for="widthInput">Width: </label>
                    <input id="widthInput" type="number" value="10" onchange="updateWidth(this.value)"/>
                </div>

                <!-- Pattern height -->
                <div class="menu-item">
                    <label for="heightInput">Height: </label>
                    <input id="heightInput" type="number" value="10" onchange="updateHeight(this.value)"/>
                </div>

                <!-- Overlay image -->
                <div class="menu-item">
                    <label for="overlayImageInput">Overlay image</label>
                    <button onclick="overlayImageInput.click()">Select Image</button>
                    <input type="file" id="overlayImageInput" accept="image/jpeg, image/png" onchange="updateOverlayImage(this.files)" />
                </div>
                <img id="overlay-image-preview" />                    

                <!-- Take in memory snapshot -->
                 <div class="menu-item">
                    <button onclick="inMemorySnapshot()">Take a snapshot</button>
                 </div>
                 <img id="snapshot-image-preview" /> 
            </div>
            <div class="configurator-container">
                <cm-configurator-main ui-style="default" template-uuid="60ec3a3a-9e92-4d2a-a6e5-16595d34686e"></cm-configurator-main>
            </div>
        </div>
    </body>
</html>
```


# Iframe Integration

This section outlines integration of the configurator by means of an iframe. This is straightforward, especially when using a content mangement system (CMS). However, the iframe API is deprecated, and we recommend its use only for displaying the configurator with the standard menu or for a single configuration without a menu. For more customization, please consider web components integration.


# Getting Started

The colormass Configurator is very easy to integrate regardless of the content management system (CMS) or e-commerce solution of your choice. The following example should be up and running on your website in less than 2 minutes!

The integration of the 3D configurator works the same way as embedding a YouTube video in a webpage. If you are familiar with that workflow, you know that it can be done without any programming experience. It uses an *inline frame element*, also called [iframe](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe). To give it a quick try, copy/paste the following code snippet into your webpage:

{% code lineNumbers="true" %}

```html
<iframe
  src="https://configurator.colormass.com/?apiVersion=2&sceneId=955"
  style="width: 100%; height:100%; border:0"
  allowfullscreen=""
></iframe>
```

{% endcode %}

After reloading the page you should see the following interactive configurator (below you can see a screenshot only):

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-da46a81c28d145de142d83fc6be1448bdbb85974%2Fimage%20(7).png?alt=media" alt=""><figcaption></figcaption></figure>

The only thing you'll have to change now in order to show your own content is the `sceneId` query parameter in the `src` attribute of the iframe. We'll make sure to share it with you once we finished preparing your configurator.

{% hint style="info" %}
Please mind that using the iframe technology, all the data is directly loaded from the colormass hosting infrastructure, so other than being able to copy/paste the iframe snippet into you page, there are no further requirements.
{% endhint %}

The above quick-start guide covered a very basic integration of a configurator to get you started. If you would like to learn more about customizing the user interface or programmatically controlling the configurator, visit the ﻿[Advanced Integration](/dev/configurator/iframe-integration/advanced-integration) page.


# Advanced Integration

The colormass configurator comes with a default user interface, so it is quick and easy to get started as described in Getting Started . However, if it is required to customize the UI or control the configurator's behavior programmatically, there is an API to do so.

The configurator is served from the <https://configurator.colormass.com> domain. When it is embedded into a webpage via an iframe, script access to the frame's content is subject to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy). Because of this, it is not possible to simply call the configurator's functions. Safe cross-origin communication is only enabled over the `window.postMessage()` method. Further information can be found [here](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage).

## **Basic Setup**

To begin with, create an HTML file and copy paste the following code:

{% code title="configurator-example.html" lineNumbers="true" %}

```html
<!DOCTYPE html>
<html style="height: 100%">
<head>
    <title>Configurator iframe Example</title>
    <meta charset="UTF-8">
    <script type="text/javascript">
        let cmConfigurator;
        window.onload = () => {
            cmConfigurator = document.getElementById("cmConfigurator").contentWindow;
        }
    </script>
</head>
<body style="width: 100%; height: 100%; margin: 0;">
<iframe id="cmConfigurator"
        src="https://configurator.colormass.com?sceneId=990"
        style="width: 100%; height: 100%; border: none"
        allowfullscreen>
</iframe>
</body>
</html>
```

{% endcode %}

There is no need to serve the file through a server, it can be opened directly in the browser and the example configurator should load as expected. The above code snippet does two important things:

1. It embeds the configurator using an iframe element.
2. Accessing the [contentWindow](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow) property, it gets hold of the Window object of the iframe, which will be used to communicate with the configurator through messages.

## **Calling Methods**

The configurator expects messages in the following format:

{% code lineNumbers="true" %}

```json
{
    data: {
        method: string,
        parameters: {}
    },
    type: "colormass"
}
```

{% endcode %}

When using the `postMessage()` method, make sure to pass the `targetOrigin` parameter as shown below, otherwise the messages won't be dispatched.

{% code lineNumbers="true" %}

```javascript
const message = {
    data: {
        method: "showUi",
        parameters: {value: false}
    },
    type: "colormass"
}
cmConfigurator.postMessage(message, "https://configurator.colormass.com");
```

{% endcode %}

The above method call hides the default user interface including the panels both on the left and on the right side. As a next step, let's print the configuration options in order to see the available variants. This is done via the `options` method. The message should look as follows:

{% code lineNumbers="true" %}

```javascript
const message = {
    data: {
        method: "options"
    },
    type: "colormass"
}
```

{% endcode %}

If you post this message the same way as we did for the `showUi` method, you will notice that the printed array is empty. The reason for this is that the loading of the configurator is not finished yet at the point in time when the message arrives. You will have to make sure to wait for the `loadingComplete` event first.

## **Listening to Events**

Up till now we only used the messaging to communicate towards the configurator (iframe window). Event are implemented using the same mechanism, the configurator sends messages back to the parent window. In order to receive those, we have to initialize an event listener as follows:

{% code lineNumbers="true" %}

```javascript
window.onload = () => {
    cmConfigurator = document.getElementById("cmConfigurator").contentWindow;
    window.addEventListener("message", receiveMessage, false);
}

function receiveMessage(message) {
    if (message.data.type === "colormass" && message.data.data.method === "loadingCompleted") {
        let optionsMessage = {
            data: {
                method: "options"
            },
            type: "colormass"
        }
        cmConfigurator.postMessage(optionsMessage, "https://configurator.colormass.com");
    }
}
```

{% endcode %}

If you run the above code, you should see the following options printed to the console:

{% code lineNumbers="true" %}

```javascript
[
    {
        id: "ced9d80c-7103-43f2-a5ba-2d90e0c823b3",
        name: "Seat",
        variants: [
            {id: '3d7420d9-6117-428f-ba41-890ecd157f8e', name: 'Blazer Darthmouth'}
            {id: 'e6ddc079-8026-4e4f-95ca-6e2be019a0f6', name: 'Oceanic Atoll'}
            {id: '18479bf9-e393-4da9-9fc9-dfb37077550b', name: 'Lucia Tenom'}
            {id: '1d9f7d3d-3823-4224-a3f7-62028295080f', name: 'Velocity Polar'}
            {id: 'ec17fd8c-6131-46d8-8bdd-a2ac0f9d29a6', name: 'Main Line flax Farring'}
            {id: '27d9baf3-84fb-476b-8312-e348b46c1e40', name: 'Steam PDY'}
            {id: '087612ab-9a50-43e3-8626-b1c37322b499', name: 'Leather'}
        ]
    },
    {
        id: "60a5a88a-7701-4c10-819e-deb5f87f15c4",
        name: "Back",
        variants: [
            {id: 'c93e318c-88ee-4e8c-9b56-9c7075f53784', name: 'Main Line Flax Bayswater'}
            {id: '4c190056-bc69-49f5-a081-c82a86658124', name: 'Synergy Quilt Chemistry'}
            {id: '42763086-b3e6-48cb-ac63-2172f2245bf9', name: 'Synergy Quilt Group'}
            {id: '918f01a2-a890-42e7-94a8-fb0c821ab3b5', name: 'Carlow Callan'}
            {id: '931d70b6-a156-4fa8-bf3d-f8b817f28516', name: 'Main Line Flax Lambeth'}
        ]
    }
]
```

{% endcode %}

For this specific configurator there are two configuration groups, the \_Seat \_and the \_Back. \_Both of them have multiple variants. In this case those are different fabric options.

{% hint style="info" %}
Please mind that the configuration options could look very different for your specific configurator based on how it was set up on the back end. However, it always has the same structure: configuration groups containing variants.
{% endhint %}

## **Setting Configurations**

As a next step, let's add a button to our example which changes the current configuration to a different fabric on the seat of the chair. The method to be used here is called `option`. It expects a `groupId` and a `variantId`. Given that we would like to change the fabric on the seat, we are going to use the group ID `ced9d80c-7103-43f2-a5ba-2d90e0c823b3`. For the variant we pick the one called *Oceanic Atoll*.

{% code lineNumbers="true" %}

```javascript
let message = {
    data: {
        method: "option",
        parameters: {
            groupId: "ced9d80c-7103-43f2-a5ba-2d90e0c823b3",
            variantId: "e6ddc079-8026-4e4f-95ca-6e2be019a0f6"
        }
    },
    type: "colormass"
}
cmConfigurator.postMessage(message, "https://configurator.colormass.com");
```

{% endcode %}

Make sure the above message gets posted only after the configurator finished loading, otherwise you are going to get an error. One way to achieve this is to execute the above code only after the `loadingCompleted` event fired. Alternatively, you can assign the action to a button and only press it after the default version of the chair loads. If you did everything correctly, you should see the following variation of the chair:

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-65a07bf5cfb49ed6d0c4a73a5bc0534761d789b0%2Foceanic-atoll.jpg?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Changing the configuration triggers the `loadingCompleted` event once it finished loading. Make sure not to include the above changing logic within the event listener function, because it will lead to an infinite loop.
{% endhint %}

Having gone through this advanced integration guide, now you should have a good understanding of how the communication between the main window and the iframe is implemented. If you would like to see all the features the API offers, make sure to check out the API Reference .


# API Reference

The configurator expects messages in the following format:

{% code lineNumbers="true" %}

```javascript
const message = {
  data: {
    method: string,
    parameters: {},
  },
  type: "colormass",
};
```

{% endcode %}

Sending a message can be done as follows:

{% code lineNumbers="true" %}

```javascript
window.onload = () => {
  cmConfigurator = document.getElementById("cmConfigurator").contentWindow;
  cmConfigurator.postMessage(message, "https://configurator.colormass.com");
};
```

{% endcode %}

| **Method name** | **Description and Parameters**                                                                                                                                                                                                                           |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *showUi*        | <p>Shows or hides the default user interface.<br>- <code>value: boolean</code></p>                                                                                                                                                                       |
| *saveSnapshot*  | Initiates the download of a JPG file of the currently rendered view of the configurator.                                                                                                                                                                 |
| *options*       | Prints all the possible configuration options with their IDs to the console.                                                                                                                                                                             |
| *option*        | <p>Sets a specific configuration based on the parameters below.<br>- <code>groupId: string</code><br>- <code>variantId: string</code></p>                                                                                                                |
| *setMaterial*   | <p>Sets the material of the specific <code>variantId</code> to the <code>materialId</code> provided. This is only possible if the variant contains an overridable material.<br>- <code>materialId: string</code><br>- <code>variantId: string</code></p> |

## **Events**

In order to receive events from the iframe window, you have to initialize an event listener on the main window as follows:

{% code lineNumbers="true" %}

```javascript
window.onload = () => {
    window.addEventListener("message", receiveMessage, false);
}

function receiveMessage(message) {
    if (message.origin !== "https://configurator.colormass.com" ||
        message.data.type !== "colormass") return;
    const data = message.data.data;
    const methodName = data.method;
    const parameters = data.parameters;
    // Handle event based on the method's name and parameters
}
```

{% endcode %}

| **Event name**             | **Description and Parameters**                                                                                                                                                                                         |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *loadingCompleted*         | Triggered when the configurator finished loading.                                                                                                                                                                      |
| *keydown*                  | <p>Triggered on the keydown event. Given that the main window cannot access the keydown event of the iframe directly, this makes it possible to capture a subset of those events.<br>- <code>parameters: {}</code></p> |
| *settingMaterialCompleted* | Triggered when setting a specific material using the *setMaterial* method finished.                                                                                                                                    |


# Default Configurations

Before diving into the ways of setting default configurations there are a few things that need some introduction.

## IDs

In the Template Editor elements that are not an atomic level elements (e.g. a material or a mesh) have IDs. See the area circled in red below.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-8df148e86c07111bc0c97564e3d713ea2cfffaab%2Fimage%20(8).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

These IDs are generated automatically but they can also be set/changed by you. Whenever there is a need to use IDs it is always recommended to change them to a human readable format.

This is also the case when you want to control default configurations through the API because these IDs have to be set through the API.

## Example

Here is an example of a code where default configurations of a product is set.

We will only show the link that is used in the configurator and not the complete \*\*iframe \*\*code so that it is easier to read.

```javascript
https://configurator.colormass.com/?apiVersion=2&sceneId=2268&param(combined%2Fcategory)=id(taps)&param(combined%2Ftaps%2Ftaps)=id(OMI-133-C-P)&param(combined%2Ftaps%2Ffinishes%2Ffinishes)=id(polished-black)
```

This might look a bit complicated at first, so lets break it down step by step. You will notice that the URL parts are separated with `&` symbols, and there are two types of elements in the URL above.

```javascript
sceneId = 2268;
```

This is responsible for the viewer where a specific light settings (which you should be familiar with from the previous articles in the documentation) are used and our product is added.

```javascript
param(combined%2Fcategory)=id(taps)
```

These are the ones that set a specific configuration to selected default. You will see a strange character combination: `%2F` . Whenever you see those just think of them as `/` Using slash in the URL has a special meaning so it is recommended to use these special characters instead of the slash. We read the above text inside the `param` as `combined/category=taps`

So to take the above scene as an example you will see that inside this scene the product is called `combined` and the template that is used inside is `Combined (Omika)`.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-4a5ee9102f4ffca1e168c4fcaa4e042a66f5041b%2Fimage%20(9).png?alt=media" alt=""><figcaption></figcaption></figure>

Let's say we want to set the default category of the above product. To be able to set a specific configuration we have to set the path in the template using the IDs. So in this specific case the path will be `combined/category`.

{% hint style="info" %}
Explanation: the ID of the main product is `combined` and the config group inside has an ID called `category`. See screenshot below.
{% endhint %}

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-d7fff2574799535ffdc6d5b3851cb8a5cd5b6828%2Fimage%20(10).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

Once you have identified the path to the configuration group and added it to the param part of the URL like so:

```javascript
param(combined%2Fcategory)
```

you will also need to set it to a specific Configuration Variant, which in this case will be Taps, see screenshot below.

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-9e3d656ee7e75b261ae96c7bfe9482cd7fb2bbfe%2Fimage%20(11).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

and that is how we arrive to the final segment of our URL:

```javascript
param(combined%2Fcategory)=id(taps)
```


# Generating Exports

## Types

<figure><img src="https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-cbd562b1bdc3bf1541a315de5a4a7433b571edcb%2Fimage%20(16).png?alt=media" alt=""><figcaption></figcaption></figure>

For fall materials that have an online revision, various outputs can be generated:

* **Flat thumbnails** are images that are generated with a fixed dimension that is visible on the image. On the platform the following predefined sizes are available to be generated:

<figure><img src="https://colormass.slite.com/api/files/BeulSUdc4Ok0g7/image.png" alt="image.png" width="188"><figcaption></figcaption></figure>

* **Tileable image** is an image that can be placed next to itself (above, below, or side-by-side) without creating an obvious seam. The size of the repeat (and hence the physical size visible on the image) is included in the name of the file.
* **Map exports** are the PBR exports where the maps can be exported based on the last material revision or texture set.

{% hint style="info" %}
It is sometimes easy to confuse *Flat thumbnails* and *Tileable image* because they are both flat. But there is a very important difference: *Flat thumbnails* have a fixed size (e.g. 7 in x 7 in or 9 in x 9 in) no matter what their repeat size is and the *Tileable images* don't (their size is the same as the size of the repeat). *Flat thumbnails* are best to be used where a certain area of the material needs to be visible (e.g. on the website). The *Tileable image* is fitted for a more technical use: either when a larger size has to be covered where the pattern repeat is visible multiple times or if in a certain application the main way to create digital materials is through uploading tileable images (e.g. CET designer).
{% endhint %}

## Generating Outputs

In order to generate an output all you have to do is to go to a specific output you would like to generate and press start (see an example of submitting a 7 in x 7 in flat thumbnail):

<figure><img src="https://colormass.slite.com/api/files/N36-FIIrwLFd5u/image.png" alt="image.png" width="188"><figcaption></figcaption></figure>

Once you submitted the render, you should receive the following message:

<figure><img src="https://colormass.slite.com/api/files/eyJ1hkpbbWGmLJ/image.png" alt="image.png" width="375"><figcaption></figcaption></figure>

After this the image is submitted to the colormass servers for generating and if you check back after some time you should find that there is now a download icon next to the "7in" and that the *Flat thumbnail* text now has a (1) letter next to it, meaning that there is now 1 thumbnail available for download.

<figure><img src="https://colormass.slite.com/api/files/YNhslyiApNdohz/image.png" alt="image.png" width="188"><figcaption></figcaption></figure>

Once you click on the download button you will see an option pop-up that lets you select the format for the material download.

## Re-Generating Outputs

In order to re-generate outputs you would need to remove the existing output using the remove button. See this button for both Tileable and Thumbnail below:

<figure><img src="https://colormass.slite.com/api/files/1rX048EhXKcD2J/image.png" alt="image.png" width="188"><figcaption></figcaption></figure>

<figure><img src="https://colormass.slite.com/api/files/JIzviVlMVyLE5s/image.png" alt="image.png" width="188"><figcaption></figcaption></figure>

Once you removed the image, you will need to refresh the page because this part of the UI at the moment is not refreshed automatically.

Once you don't see the download option anymore that means that the output was removed and you can follow the [Generating Outputs](#generating-outputs) steps.


# Integration

The colormass Exports feature can be used through a web component called `cm-material-download`. This enables you to directly use the download functionality without having to download or upload these assets that are defined in the previous page (Generating Exports ).

## Steps

### 1. Add an Import in the site's header

In order to be able to use the exports component you need to add an import into the `<header>` HTML element, like so:

{% code lineNumbers="true" %}

```html
<head>
    ...
    <script type="module" src="https://material-download.colormass.com"></script>
    ...
</head>
```

{% endcode %}

This only needs to be done once.

### 2. Add a button

Now add a download button to your page. This must be an `a` tag. You can add arbitrary content, CSS classes and attributes to make this appear like any other button on your page. Your existing CSS rules will continue to apply. The `href` attribute can be either omitted or set to an arbitrary value.

```javascript
<a class="you-can-add-your-own-classes-here">Download</a>
```

### 3. Wrap the link

Now wrap the `a` tag in a `cm-material-download` tag, providing the attributes described below. The link's `href` tag will be set automatically. If the required export cannot be found, the CSS class `disabled` will be set on the link.

{% code lineNumbers="true" %}

```html
<cm-material-download organization-id="1f6d7f93-4e0k-4400-b937-1ce73576f570" article-id="9999" type="pbr">
  <a class="you-can-add-your-own-classes-here">Download</a>
</cm-material-download>
```

{% endcode %}

You need to define the following attributes:

* `organization-id`: This is a fixed `UUID` for your account (please ask your contact person if you are not sure).
* `article-id`: This is the article ID `string` of the material. Since these are added on the platform manually, please ask the colormass staff if the corresponding range has the correct article IDs added before integrating them.
* `type`: This is the type of the download. It has the following options: `pbr`, `tile`, `thumbnail`.
* `file-type`: The desired file extension: `jpg` or `tiff`.
* `resolution (PBR)` : `low` (72 DPI) or `high` (Original DPI)
* `resolution`: The desired resolution, one of `low` (1000x1000px), `medium` (2000x2000px) or `high` (original size). Must be `high` unless the file type is `jpg`. Defaults to `high`.
* `dimensions`: One of `7x7in`, `8x8in`, `9x9in`, `13_5x13_5in`, `16x16in`, `27x27in`, `32x32in`, `10x10cm`, `15x15cm`, `20x20cm`, `30x30cm`. Only provide if type is `thumbnail`. Defaults to `7x7in`.

{% hint style="info" %}
If you are not sure what these types above mean, please check the previous [Generating Exports](/dev/data-exporter/generating-exports) page.
{% endhint %}

## Styling

This component doesn't add any styling rules. The wrapped `a` tag can be styled freely. In most cases, it should automatically pick up any existing styling rules on the page, so that no extra steps are necessary. If you do want to customize the appearance of the link, you can simply add CSS classes or inline styles. See the following example:

{% code lineNumbers="true" %}

```html
<cm-material-download organization-id="9999" article-id="9999" type="pbr">
    <a style="text-decoration: none; color: white; background: black; padding: 4px; cursor: pointer;">
        <i class="fancy-icon" />Styled Download Button
    </a>
</cm-material-download>
```

{% endcode %}

## Example

{% code lineNumbers="true" fullWidth="false" %}

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <script type="module" src="https://material-download.colormass.com"></script>
    <meta charset="UTF-8">
    <title>Material Download Example</title>
</head>
<body>
<ul>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="pbr" file-type="tiff" resolution="high">
      <a>Download PBR (TIFF)</a>
    </cm-material-download>
  </li>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="pbr" file-type="tiff" resolution="low">
      <a>Download PBR (JPG)</a>
    </cm-material-download>
  </li>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="tile" file-type="jpg" resolution="low">
      <a>Download Tile (JPG, low res)</a>
    </cm-material-download>
  </li>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="thumbnail" file-type="jpg" dimensions="7x7in">
      <a>Download Thumbnail (7 in x 7 in, JPG, high-res)</a>
    </cm-material-download>
  </li>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="thumbnail" file-type="jpg" dimensions="7x7in">
      <a>Download Thumbnail (7 in x 7 in, JPG, medium-res)</a>
    </cm-material-download>
  </li>
  <li>
    <cm-material-download organization-id="1f0d7f93-4e0d-4400-b937-1ce75576f570" article-id="3106702" type="thumbnail" file-type="jpg" dimensions="30x30cm">
      <a>Download Thumbnail (30 cm x 30 cm, JPG, low-res) - not available</a>
    </cm-material-download>
  </li>
</ul>
</body>
</html>
```

{% endcode %}

If it's needed you can also set the attributes programmatically like you would with any HTML attribute. Just as an example using in pure Javascript:

{% code lineNumbers="true" %}

```javascript
var exampleElements = document.querySelectorAll('cm-material-download');
exampleElements.forEach(function(item, i){
  item.setAttribute('article-id', '9999999');
});
```

{% endcode %}

{% hint style="info" %}
The above example is just an example if you use frameworks or libraries this example would probably look different.
{% endhint %}

The HTML component lets you define any values, so you have to make sure that:

* The **output** you are requesting is **available** on the colormass platform
* The **article ID** is added to the material on the platform and uniquely identifies a material

![](https://2096884663-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FupRNMrLmfdavpTEehRQn%2Fuploads%2Fgit-blob-7f74f052307130b2abe6b0c2c2dd8bcb0917c64c%2FZmWurn_LaPecM9%20image.png?alt=media)

For example, if you request the download of Article ID 9999 with the following attributes:

{% code lineNumbers="true" %}

```html
<cm-material-download organization-id="9999" article-id="9999" type="thumbnail" dimensions="9x9in">
    <a>Download Thumbnail (9" x 9")</a>
</cm-material-download>
```

{% endcode %}

The download will not start because it doesn't have a 9in x 9in output. The `a` tag will additionally have the CSS class `disabled`, which you can use to provide feedback to the user.

{% code lineNumbers="true" %}

```css
a.disabled {
  cursor: not-allowed;
}
```

{% endcode %}


# Welcome

colormass is the first robust 3D Content Management System that can be operated **entirely from your browser**. Here, you will find the documentation for the colormass platform. Whether you want to upload data, set up a 3D configurator, render images, tile materials, or integrate components into your website, this guide will provide all the information you need to get started and make the most of our online 3D CMS.

### Quick Start Tutorials

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><strong>Tile Textures</strong></h4></td><td>Tile all your maps at once, using automated tools, to unlock a faster workflow.</td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FQrRuEVOQIJjTQC2pxIMu%2F6592b5d940d0a805b10f8d78_tiling.jpg?alt=media&amp;token=c8b9ff4d-b4dd-4de4-8c8e-3a47e0891245">6592b5d940d0a805b10f8d78_tiling.jpg</a></td><td><a href="https://www.youtube.com/playlist?list=PLcV4dsNvt_l8">https://www.youtube.com/playlist?list=PLcV4dsNvt_l8</a></td></tr><tr><td><h4><strong>Create Configurators</strong></h4></td><td>Watch how to create configurators from scratch using .ply, .obj, .fbx files.</td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FifEpGwhmM1uqAorj4lPO%2F6a5a4d896543e919300e3c88_configurator-p-800.png?alt=media&amp;token=42177efe-cc56-4dfa-83f5-f1c629b249ba">6a5a4d896543e919300e3c88_configurator-p-800.png</a></td><td><a href="https://www.youtube.com/playlist?list=PLeYcGka-ZS00">https://www.youtube.com/playlist?list=PLeYcGka-ZS00</a></td></tr><tr><td><h4><strong>Download Materials</strong></h4></td><td>Access a library of production-ready, photorealistic PBR material assets.</td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fg6MMJRHTGNk9jO6vnIJJ%2F6a5dd26f5210fea67e56efd4_Screenshot%202026-07-20%20094645-p-800.png?alt=media&amp;token=bf351568-e679-4766-b6b7-70208c107257">6a5dd26f5210fea67e56efd4_Screenshot 2026-07-20 094645-p-800.png</a></td><td><a href="/building-blocks/materials/download-pbr-materials">Download PBR Materials</a></td></tr><tr><td><h4><strong>Material AI</strong></h4></td><td>Generate materials using AI-powered material synthesis.</td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FJ5MJ77pD7LKQZqnDP8PT%2F6a564dd3662c51b5baad5f3a_material-ai2-p-800.png?alt=media&amp;token=76329622-bd39-4a0f-a82b-179cf0b32c36">6a564dd3662c51b5baad5f3a_material-ai2-p-800.png</a></td><td><a href="/building-blocks/materials/add-a-material/upload-image-as-a-material-ai">Upload Image as a Material (AI)</a></td></tr></tbody></table>

### Overview

The tutorials are divided into the following two main chapters.

**Building Blocks:**

* [Products](/building-blocks/products): combinations of 3D geometry and materials
* [Materials](/building-blocks/materials): 3D materials
* [Scenes](/building-blocks/scenes): setups where 3D assets, cameras, and lights come together

These are **reusable building blocks**, not outputs themselves. You don’t generate final results (such as images or configurators) from these directly. Instead, they exist to be reused across multiple outputs.

If reuse is not required, you can skip building blocks and create outputs directly from scratch. However, anything created this way will not be reusable later.

**Outputs:**

* [Configurator](/configurator/introduction): interactive 3D views built from the building blocks that you can integrate into any website
* [Rendering Platform](/rendering-platform/introduction): images generated from the building blocks

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FgdTtaJjtUTK0bnvuxUvD%2FBuilding%20blocks%20(1).png?alt=media&amp;token=01c1c341-3516-4b06-bfcf-896b8176a933" alt="" width="375"><figcaption></figcaption></figure>

And additionally there is a chapter about scanning and tiling materials:

* [Scanning and Tiling](/scanning-and-tiling/scanning): Digitize and process scans.

Please watch the video to get an initial impression of the platform.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Docs/Overview.mp4>" %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Upload and Manage Data</strong></td><td>3D CMS</td><td></td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FAmVDGMtva8AqyaHtP1dL%2F66758c792a6974d6d5a43db8_contentsystem.jpg?alt=media&amp;token=8e2e71e6-fea5-4196-8a91-b8d689b9ec8a">66758c792a6974d6d5a43db8_contentsystem.jpg</a></td><td><a href="/building-blocks/products">3D CMS</a></td></tr><tr><td><strong>Set-up 3D Viewers</strong></td><td>Configurator</td><td></td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FxeCcDCbFyU4cjWez9Cmr%2F659a97ff21eecb2ee0710368_Untitled%20presentation%20(9).png?alt=media&amp;token=a67e5f96-f1f1-438b-a9ac-5ea39833b61a">659a97ff21eecb2ee0710368_Untitled presentation (9).png</a></td><td><a href="/configurator/introduction">Configurator</a></td></tr><tr><td><strong>Render Images</strong></td><td>Rendering Platform</td><td></td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FzhgeFJyI7Ufhma8AfgQw%2F659a975be6e0903b116c8641_inhouse_animation_rendering_platform_v02_preview.jpg?alt=media&amp;token=34aa2b65-5426-4ce0-9da1-7a0be4c40142">659a975be6e0903b116c8641_inhouse_animation_rendering_platform_v02_preview.jpg</a></td><td><a href="/rendering-platform/introduction">Rendering Platform</a></td></tr><tr><td><strong>Scan Materials</strong></td><td>Scanning &#x26; Tiling</td><td></td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FrfwcVRYsxxOYQI4Nl2tk%2Fscanner.png?alt=media&amp;token=c87a09c1-ff75-4113-8c86-7ff52858b28f">scanner.png</a></td><td><a href="/scanning-and-tiling/scanning">Scanning and Tiling</a></td></tr><tr><td><strong>Developer Docs</strong></td><td>Integrations</td><td></td><td><a href="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F3pCDWLo3heWmzPVHdD5y%2FScreenshot%202024-10-09%20103250.png?alt=media&amp;token=342469ce-738e-42b4-96d1-4fe174bc3ee5">Screenshot 2024-10-09 103250.png</a></td><td><a href="https://docs.colormass.com/dev/">Development</a></td></tr></tbody></table>


# Products

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Docs/Products.mp4>" %}

Products are a powerful way to store 3D assets online. This does not have an offline analog so it is a somewhat new concept that you will have to familiarize yourself with. Offline tools like Maya, 3ds Max, Blender etc. are very limited when it comes to storing and using product logic/variations, because these tools are not really meant for that. At colormass we refer to this as Content Engine (or Templates) which refers to the way how atomic data (meshes and materials) can be used and combined in a smart way. Templates are the backbone of storing 3D assets online.

## Introduction - What is a Product?

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Tutorials%20-%20Products%20(by%20Dimitris)/1.%20What%20is%20a%20Product.mp4>" %}

## Adding a Product

The video below shows how to upload products from your 3D software.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Tutorials%20-%20Products%20(by%20Dimitris)/2.%20Adding%20a%20Product.mp4>" %}

Find more details on the following pages: [Upload to Existing Product](/building-blocks/products/add-a-product/upload-to-existing-product).

## Assigning Materials

In the video below, you can see how to assign materials to your uploaded products.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Tutorials%20-%20Products%20(by%20Dimitris)/3.%20Assigning%20Materials.mp4>" %}

Find more details about assigning materials here: [Assign Materials](/building-blocks/products/assign-materials) and about inputs here: [Inputs and Outputs](/building-blocks/products/advanced/inputs-and-outputs).

## Creating Variants

Watch the video below to learn how to create simple variants of your products.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Tutorials%20-%20Products%20(by%20Dimitris)/4.%20Creating%20Variants.mp4>" %}

Find more details on the following pages: [Create Variants](/building-blocks/products/create-variants) and [Create Material Variants](/building-blocks/products/create-material-variants).

## Creating Your First Configurator

Once you have created your first product, you are ready to create your first configurator as well, go to [Create Your First Configurator](/configurator/create-your-first-configurator).


# Add a Product

Press the *+Create* button and then click on *Product*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FBAVqFe2BJ0Kxr3JqIZwq%2Fproduct.png?alt=media&amp;token=8165399d-7901-490c-935f-25b0b027427d" alt="" width="241"><figcaption></figcaption></figure>

Next there will be a prompt that will ask for the name of the product:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5GFhky8PBcR96Rph1mEO%2Fimage.png?alt=media&amp;token=f2a8f43f-d005-44d7-8e49-f8d61d378f66" alt="" width="303"><figcaption></figcaption></figure>

Furthermore you can choose between uploading a file, or starting from scratch.&#x20;

If you would like to upload a file you can upload a model by using one of the following supported formats:

* .obj
* .ply
* .fbx

{% hint style="info" %}
Looking to upload a **CAD** file? Check out this page: [Upload CAD File](/building-blocks/products/add-a-product/upload-cad-file).
{% endhint %}

{% hint style="warning" %}
If you upload a file, make sure to select the scale of your file correctly, and in case the UV is not World Space UV then we would also strongly recommend setting that.
{% endhint %}

Once you hit *Create* you should be navigated to an empty Product editor (or if you uploaded a file then the elements of your file should be available there).


# Upload CAD File

To upload CAD file to the platform please follow the steps below. For these steps you would need to download and use [**Rhino 3D**](https://www.rhino3d.com/)**.**&#x20;

## 1. Document Unit Setup

Make sure that Rhino’s units are set to *cm*.

To do this, click on the *Properties/Options* button to open up the options.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FGxl8YANua9VkjeteOFZ5%2F2-1_options_v01.png?alt=media&amp;token=cab793eb-740d-47b5-845a-b12e4d0100d9" alt="" width="553"><figcaption></figcaption></figure>

Select *Units* under the *Document Properties*. If needed, you can open up the drop-down menu for *Model units* and select *cm*. Hit enter to close the window.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FDoKOFR6708rQmNkrWgHV%2F2-2_units_v01.png?alt=media&amp;token=23f56e58-fd3a-4e69-84aa-e3cd62a3b8a4" alt="" width="563"><figcaption></figcaption></figure>

## 2. Import

Import the CAD file into Rhino by navigating to *File > Import* and selecting your&#x20;reference file.

To set the correct unit settings for your model within the import options, ideally you would need to know what unit settings were used during the export of the model’s file. You can also try different values and measure the resulting model’s scale to check if it’s correct.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FD4sUXQptK4odzzfvTaJB%2F3-1_import_v01.png?alt=media&amp;token=0af5e50e-5a24-4f4f-9c2b-b88e72782d60" alt="" width="401"><figcaption></figcaption></figure>

With this particular example we set the units to mm.

### Warnings

The warnings displayed below can commonly appear during importing. For the first warning click *Yes:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FKfmT3KneSCEN5tCexhf5%2F3-2_popup1_v02.png?alt=media&amp;token=b0b21811-780b-42a7-99be-e31d7be560f3" alt="" width="563"><figcaption></figcaption></figure>

And for the second warning click *Ok*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FoZNZmWynvHNthHuaJ112%2F3-3_popup2_v02.png?alt=media&amp;token=8a2b1163-a144-4ce6-8f67-20e0b58da05e" alt="" width="512"><figcaption></figcaption></figure>

## 3. Positioning (as needed)

After the import is finished, check if the model is centered to the origin. If yes, then you don't need to do anything in this step.

If the views look empty at this point, that could mean that the model is placed far off from the center, and out of view. To find the model hit *CTRL + A*, then click on the zoom to selected tool. This will zoom in on the object on the viewport which is active.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FE3C3e78kPefMmcbPx5SL%2Fzoom_selected.png?alt=media&amp;token=4c9ccc41-19e5-411f-afb9-dc23e4fcc188" alt="" width="553"><figcaption></figcaption></figure>

{% hint style="info" %}
Tip: If you like, you can repeat the above command on the rest of the views, to center  the object, by simply right clicking inside the area of each of the remaining views
{% endhint %}

Selected objects will be highlighted with bright yellow wireframe.

When you located your object, you can group the individual parts together by pressing *CTRL + G* (For ungroup hit *CTRL + Shift + G*). This will keep the parts of your model holding their position relative to each other during transforms.

Finally, while the model is grouped and selected, look for the align tool on the left side toolbar, click on the small triangle on the bottom right corner of the tool to make all the align options visible, and activate the align center option by clicking on it.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FyQXg68CyD7DhjkAttxw8%2Fimage.png?alt=media&amp;token=73ef3204-91ab-413b-8796-d02c958769cc" alt="" width="405"><figcaption></figcaption></figure>

You can see that the tool is active when the model starts to follow the position of your cursor. To center the object to the world origo, hit the 0 on your keyboard or numpad, and then enter. The model is still selected. If it disappears from your view you can use zoom to selected tool again to locate it.

## 4. Remove Unnecessary Parts

In order to make the resulting file size more manageable, it is recommended to remove some parts of the product that are not visible from the outside (e.g. bolts, drawer rails).

To better see if there are any such parts within the model, you can click to the dropdown icon next to the Perspective viewport, and change the mode to *ghosted*. (edited) <br>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOjTShKJxsK2KkxktjI7X%2Fview_setting_v02.png?alt=media&amp;token=6222244c-904a-49f7-9b55-b8a5dce015b5" alt="" width="563"><figcaption></figcaption></figure>

To select the smaller parts inside the model, you can click and drag a selection box (starting from an empty area outside the object), dragging from Right to Left. This way the selection will only apply to parts that are completely included in the selected area.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F3cJ73eZADxMmAXlgkWUB%2Fselect_included_1_v01.png?alt=media&amp;token=8031368c-ff1e-45a7-88c7-6dea84a73963" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F72ZjEtIATmoMlH3YTLr2%2Fselect_included_2_v01.png?alt=media&amp;token=c690d969-2e6a-4474-a820-b50a615d2382" alt="" width="563"><figcaption></figcaption></figure>

When you have the unwanted parts selected, press DEL to delete them from the scene.

## 5. Meshing

To create a mesh, select the object, type “Mesh”&#x20;in the upper command&#x20;line, and press Enter.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOkbWqaQCX7kDZwhR0E6F%2FUntitled%20design%20(1).png?alt=media&amp;token=07a5293c-72ea-49a1-8da6-6c243aae3725" alt="" width="365"><figcaption></figcaption></figure>

The dialog box appears. You can choose between&#x20;two types of dialog boxes:&#x20;simplified or detailed.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FaCd0pLVlCoGxhKtNMeL4%2Fimage.png?alt=media&amp;token=3c3666e8-fd44-4b41-a963-56bd93db4e4d" alt="" width="563"><figcaption><p>Simplified view</p></figcaption></figure>

Most of the time, the simple&#x20;mesh options are enough to create the mesh model. Press&#x20;Enter to generate the mesh&#x20;model.

If you press the *Detailed Controls* you can also see the more detailed dialog:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FWkyyZ4aPxgX61gldNO3F%2Fimage.png?alt=media&amp;token=78941371-6416-4402-b100-e4fb56490750" alt="" width="563"><figcaption><p>Detailed view</p></figcaption></figure>

The detailed mesh option is an advanced meshing dialog. You can define various&#x20;parameters before meshing, such as density, simple planes, and jagged seams.

The resulting mesh would look something like this:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FI5G1JNqBQnVBqVRVr3Yc%2Fimage.png?alt=media&amp;token=84ac5c18-38ce-43cd-9ac1-0e65d962cf31" alt="" width="563"><figcaption></figcaption></figure>

## 6. Export

In this case, the mesh and the&#x20;NURBS model are in the same&#x20;position. Go to the Selection&#x20;menu and choose the “Mesh Select” tool

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F4cEE6aEvZxijnwYCFBmY%2FUntitled%20design%20(2).png?alt=media&amp;token=894ae787-699d-40a3-b9f5-d81866f95dac" alt=""><figcaption></figcaption></figure>

Then go to the *File menu > Export Selected* option, and export the model&#x20;in your preferred file format. In order to make the file work on the platform please make sure to select *.obj* or *.fbx.*

## 7. Upload

When uploading to the colormass platform, make sure to select *Convert to World Space UVs* on the dialog that appears after upload:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FDI7vOZNpT98I6UKxCaE4%2Fdialog.jpg?alt=media&amp;token=49c2addd-e0a1-48af-b128-ce589df79bef" alt="" width="559"><figcaption></figcaption></figure>

This will make sure to correct the mapping issues the CAD file has.


# Upload to Existing Product

In the product editor you can simply select&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FzJjtA5uEGfWZuCvZN9p6%2Fupload.gif?alt=media&amp;token=5a6cce98-e0fe-4a4f-bfd9-88f298870cda" alt="" width="563"><figcaption></figcaption></figure>

Once you selected your .obj, .fbx or .cmm file you should see the uploads starting and then also a folder where your meshes are now grouped. If you press the *Edit* and then the *Dissolve group* option you should see all the elements listed in the main tree.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FcDqNmjyJbi3L0O16KxxY%2Fimage.png?alt=media&amp;token=92b3acf6-e9d0-4b9c-98b0-26c0ad9d24c6" alt="" width="318"><figcaption></figcaption></figure>


# Assign Materials

First you have to add the material to your template editor. You can do that clicking on the *Materials* button in the top bar:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FyIuY1vx9KLQotcD7YdHg%2Fselectmaterial.gif?alt=media&amp;token=9a0ff0c2-ad9e-45de-8a2e-cb2a0a7b87ab" alt="" width="563"><figcaption><p>Add a material</p></figcaption></figure>

Once its added to your product tree, you can assign the material in two simple steps:

1. Selecting the mesh where you want to apply your material
2. And then dragging & dropping our material to a slot

like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1SaaUFV7nWxpG6IqIZzk%2Fassignmaterial.gif?alt=media&amp;token=c67101ac-fb9c-4e87-8548-772a72c594e7" alt=""><figcaption><p>Assign a material</p></figcaption></figure>

Alternatively you can also directly drag the material into the 3D viewer onto the part of the mesh that you would like to assign it to:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fm7cx9Gn9rVcvQlrlPkwO%2Fassignmaterial2.gif?alt=media&amp;token=713a1bba-2c47-4f51-b6aa-a3c75822e502" alt=""><figcaption><p>Alternative option to assign a material</p></figcaption></figure>

## Remove Assignment

To remove the assignment simply click on the bin icon on the top left corner of the material assignment:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOyVYhzkizWdI5IiW4Gah%2Fimage.png?alt=media&amp;token=4940a0bb-3674-478f-8848-9537c0501da1" alt=""><figcaption><p>Remove material assignment</p></figcaption></figure>


# Pattern Placement

When a material is assigned, you can easily adjust the pattern placement. You can move the material along both the **X** and **Y** axes, and you can also **rotate** it.

To  change the placement you would need to click on the arrow button in the top right corner and change the values in the dialog window that appears:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FrWna0GjuHlOU0ARugDnl%2Fplacement.gif?alt=media&amp;token=0d2c9ed1-10a0-406b-b376-6f7aa8895a5e" alt=""><figcaption><p>Move the pattern placement</p></figcaption></figure>


# Create Variants

Configuration Groups are used to define variations (any kind of variation: product feature, finish or fabric variations) within a template.&#x20;

In order to show you how it works lets add a variation to the ***chair for showing and hiding the seating pad***.

First you need to add a new *Config(uration) Group*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOsmWayYsl9Ul8XztwGNu%2Fconfiggroup1.gif?alt=media&amp;token=9878df61-e57c-477b-a4d0-c5ee5e611eb0" alt=""><figcaption><p>Add a Config Group</p></figcaption></figure>

This will add a new *Config Group* to the product tree on the left. If you expand it you will see two options: *Add variant* and *Add switch*. In order to add more variants to the product we need to press the *Add variant* button, as many times as many variations you need. In this case we will add two and name them:

* With seating pad
* Without seating pad

Once the variants are done we only need to drag & drop the seating mesh into the *With seating pad* option, so that when that variant is selected the mesh is shown and when the other option (*Without seating pad*) is selected then nothing is shown. You can see all these steps in the little screenrecording below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FAI0uxzpxG55byrK0cTlx%2Fconfiggroup2.gif?alt=media&amp;token=c6a41e1a-5126-4956-8e51-da09c6224c26" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can think of config variants as options that can be activated. The options you see below config group are possible options to active and every option that is not selected is deactivated (i.e. hidden/removed).
{% endhint %}


# Create Material Variants

## Simple Material Variants

To better demonstrate how to add material variations to your product, we'll walk through the process of adding two fabrics to our seating pad.

The first step is to add a new *Config Group* with two options to our product (if you're unsure how to do this, refer to the first step in the [Create Variants](/building-blocks/products/create-variants) page) and then add your two fabrics as well. The first steps would look something like this (assuming  you would only want to add two fabric options):

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FgaboFvPzLpr6JOHfNB7M%2Fconfiggroup3.gif?alt=media&amp;token=8632ac40-515f-4c9f-b5b7-c72dd5c21786" alt=""><figcaption><p>Add the Config Group and the two materials</p></figcaption></figure>

Once these initial steps are done you, you'll need to do three additional steps:

* Move the right materials to the corresponding *Config Variant*
* Create a *Material Switch* (this will be the item that will act as a combined material)
* Select the materials under your *Config Variants* and add them to the switch

You can see these same steps below in the screenrecording.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F0Gq0KpQ7Mol2LT8l6Fpr%2Fconfiggroup4.gif?alt=media&amp;token=e3730105-f4ad-4ce0-a743-2725e040b468" alt=""><figcaption><p>Creating a Material Switch</p></figcaption></figure>

Now you can use the *Material Switch* that you created in the step above as a regular material and assign it to whichever mesh you would like.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FmXp28C6XMvNHMLSlgRwx%2Fconfiggroup5.gif?alt=media&amp;token=31f7176b-d137-4fb0-aa2a-630c552cb670" alt=""><figcaption><p>Assign the Material Switch to a mesh</p></figcaption></figure>

You can create as many separate Material Variants as you want. You can create a group of options for the leg (finish options) and for seating pad (fabric options) but you can of course create even more depending on your real life product. These&#x20;

## Advanced Material Variants

In some cases it is necessary to change the finish *in the same time* as you would change the fabric, meaning that a specific fabric option comes with a specific leg finish (and they are not independent options).

To illustrate this, let's assume that the two fabric options we created initially each have a corresponding wood finish. *Fabric 01* should always be paired with *Wood 01*, and *Fabric 02* should always be paired with *Wood 02* finish. To do this, we need to:

* Add the two wood options
* Move them under the original variants
* Create a new *Material Switch*&#x20;
* Add the selected wood finishes under the new *Material Switch*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fx3fC0E2Yf6F3z5hEZ9eG%2Fconfiggroup6.gif?alt=media&amp;token=17889e37-5521-4f96-9fa3-9b1856a65d56" alt=""><figcaption><p>Adding a new Material Switch</p></figcaption></figure>

At the end of the video you can see that the fabric and the finish changes in the same time and what is displayed when an option is selected is determined by what is listed under that option.


# Copy a Product

To  copy a product you simply need to hover over the card of the product and then press *Copy:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F52NbEbh0EFUBGOE4A9Ic%2Fimage.png?alt=media&amp;token=dcf17924-13bc-40d3-877f-a41347209b9e" alt="" width="247"><figcaption><p>Copy a product</p></figcaption></figure>


# Advanced


# Decals

## Adding a Decal

First of all, we would need to add the decal. Go to the *Other* button in the top bar and select Mesh Decal.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5WO9acitT8tbo8VP89HO%2Fdecal0.gif?alt=media&amp;token=f48427b4-6e77-41f8-a694-30c2930882fa" alt="" width="563"><figcaption><p>Add a Decal</p></figcaption></figure>

Once the *Decal* appears in your product tree, you will need to select an overlay image. To do this simply click on the *Overlay Image* area:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FHgwKe6JFvc9fMLjWwHi8%2Fdecal.gif?alt=media&amp;token=62898b04-1a8e-4730-9da2-3c4643181b6a" alt=""><figcaption><p>Upload decal</p></figcaption></figure>

Once you have uploaded your decal you would need to do three important steps:

* Assign the base mesh (by dragging and dropping it into the *Base Mesh* field): this is the mesh where the decal will be applied.
* Assign a base material (by dragging and dropping it into the *Material* field): this serves as the substrate material for applying the image.
* Choose a point: Select a point on the mesh where the decal should be placed.

You can see all these three points in the screenrecording below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F6Qz4Z3cEoKYbYEBVlL5L%2Fdecal2.gif?alt=media&amp;token=0889514b-ee1a-4b89-b8f7-e7ec958e553c" alt=""><figcaption><p>Assign the base mesh and the base material</p></figcaption></figure>

## Move the Decal

Once you uploaded your decal, you also have various options to&#x20;

* Change the size of the decal with *Size U* and *Size V,* just make sure to keep your aspect ratio match to your original image (to avoid distortion)
* Change the exact position of the decal with *Offset U* and *Offset V*
* Rotate your decal with the *Rotation* field

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1VMT3lCtV9Ptid99jtib%2Fdecal3.gif?alt=media&amp;token=23e6b6f9-4ee0-4c58-a2e6-3cebf3c52052" alt=""><figcaption></figcaption></figure>

## Overview

Below you can see a small overview of the Decal options.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F2G0wxt22ctsbfMYcrxL9%2FYour%20paragraph%20text.png?alt=media&amp;token=292b7363-8503-49ff-8ce4-6531bb0447e2" alt=""><figcaption><p>Settings of the Decal</p></figcaption></figure>


# LOD Management

In general the colormass system handles dynamic compression (on the server side) and decompression (on the client side) so that you don't have to absolutely minimize your 3D assets. But in some cases it is good to have an extra tool to manually adjust LOD details and decide what to show where. The colormass platform offers three distinct usecases:

* **Web**: displaying the asset in a configurator
* **AR**: displaying the asset in app-less AR way
* **Path-traced**: using assets in path-traced image rendering

In practice it is usually the best to define two: **Web** and **Path-traced**. To set these first add a group to your product:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FTqLC5yYru4rZjn7sA9Qu%2FUntitled%20design%20(14).png?alt=media&amp;token=5702d867-996d-4868-a974-a489bc0a19de" alt="" width="563"><figcaption><p>Add groups</p></figcaption></figure>

and name then based on what use case will be inside that folder. Move the elements that you would only like to display for that use case under this folder, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FbnszEGgOGabK9m3VRBBx%2Fimage.png?alt=media&amp;token=84ac8b50-e504-40c9-9c74-4c77819e3433" alt="" width="213"><figcaption><p>Group with stitching inside</p></figcaption></figure>

Once all this is done we only have to do one more step, click on the *Other* button and select *LOD Type*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FuecwWh84hsSMSocSnCiP%2FUntitled%20design%20(15).png?alt=media&amp;token=ba73b55d-3c5d-4f90-b151-674d6ef1e1cf" alt="" width="563"><figcaption><p>LOD Type</p></figcaption></figure>

Then select the use case that you would like to set for your folder:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOdR5ZSolsQZR8kkhRgsZ%2Fimage.png?alt=media&amp;token=5de92741-8a02-4ac3-9662-f0d09f5717f8" alt="" width="563"><figcaption><p>Type selection</p></figcaption></figure>

and assign it the *Active* field of your folder:&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FBPz4yQPqVni9ieg1rUdc%2Flod.gif?alt=media&amp;token=76af6d7f-b1ee-487b-bf6a-359a6f43feff" alt="" width="563"><figcaption><p>Assign LOD Type</p></figcaption></figure>

this will make the folder active (visible) during image rendering and inactive (hidden) for any other use case (web, AR).

You can confirm if this is the case if you click on the bottom right corner (in the viewer settings) and switch between the toggle buttons at the very top. You will see that the items which were moved under a folder called *Path-traced* is only shown during *Path-traced* use case:&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOEVTilsyORUOXBm2t19Z%2Flod2.gif?alt=media&amp;token=436a290c-8a88-44a1-93ca-1ead4f5f5055" alt=""><figcaption><p>Reviewing the use case</p></figcaption></figure>


# Review Products

Once a product is prepared you have the possibility to review the final product using wireframe and UV tools. To bring up these tools you simply have to click on the bottom right corner (viewer settings) and click on one of the three options:

* Wireframe
* UV
* UV2

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FwyfCHRwbZeJIFwU6rey1%2Freview.gif?alt=media&amp;token=6c5a6fad-8774-4576-af89-332fa7c01402" alt="" width="563"><figcaption><p>Review options</p></figcaption></figure>

{% hint style="info" %}
It is not part of the current tutorial series to describe how you can use these tools to review a model but in case you are interested please write to your contact person at colormass.
{% endhint %}


# Review Products - Performance

On the colormass platform, you can also review a product’s performance by clicking *Performance* under *View*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fdr8Gx0x7mV1v1TcoL97e%2FUntitled%20design%20(9).png?alt=media&amp;token=7387a3c1-2888-4f51-bba5-13f5ec045cbd" alt="" width="563"><figcaption></figcaption></figure>

This allows you to evaluate your product’s performance across several key metrics. You can review the following for your 3D scene:

* Memory usage
* Download size
* Number of triangles

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FSAPa3yw1zuZbaAlBsoHs%2FUntitled%20design%20(10).png?alt=media&amp;token=5e048987-3777-4367-bdae-d459ce1cbd0c" alt="" width="563"><figcaption></figcaption></figure>

Next to each item, you can view its individual footprint based on the selected performance factor.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1dnV3jsdMvaT7MH0mTfA%2FUntitled%20design%20(11).png?alt=media&amp;token=f8909653-fc83-4654-a620-368980b2fefa" alt="" width="540"><figcaption></figcaption></figure>


# Create Template from Selection

In some instances you already have a product created but you realize that maybe a small part needs to be saved out as a reusable 3D element to be used in other products as well.

In this case you would need to first select part of the templates that you would like to save out, like the seat is selected in the screenshot below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fdjw5RV8swnpqb1jbQ9p3%2Fimage.png?alt=media&amp;token=c539e27f-afb2-4867-b71b-7747311d3cda" alt=""><figcaption><p>Selection</p></figcaption></figure>

then press Create Template from Selection using the *Other* menu:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FdVGABsctNcJcMPBIjCvU%2FUntitled%20design%20(16).png?alt=media&amp;token=83cd4a60-3732-4da9-a632-29f41bd18072" alt=""><figcaption><p>Create Template from Selection</p></figcaption></figure>

then you would need to name the product.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FGBlGf1h3XlK3nFQTagqT%2Fimage.png?alt=media&amp;token=1d4e2a66-0dfc-43d2-92d1-a6f1c4e6c900" alt="" width="342"><figcaption><p>Name</p></figcaption></figure>

This creates an internal template, but after you click *Edit* you can promote it to a reusable element that appears in the library.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FVUyRlriarbbeeUFEvt2w%2Fimage.png?alt=media&amp;token=656ef275-f09d-46b4-8e78-64fa7373ebbd" alt="" width="375"><figcaption></figcaption></figure>


# Inputs and Outputs

*Inputs* and *Outputs* are very powerful features of the platform. When you create a product they are basically black boxes when they are used in other products or scenes. Meaning, that if you include them in a scene you basically can not change anything about them - unless you add *Inputs*.  This design ensures that when you embed multiple product layers within each other, they update correctly without overwriting existing modifications or causing errors.

{% hint style="warning" %}
Inputs and Outputs are a bit more advanced 3D editing features of the platform, therefore we recommend only starting to explore this section if in general you are familiar with the other 3D management concepts of the colormass platform.
{% endhint %}


# Inputs

Inside a product you can add an input using the *Other* button:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FZ6vM6g2cU24X7MFn5ZRm%2Finput.gif?alt=media&amp;token=e10b5c70-a383-4763-b35b-3af6f7e7a047" alt="" width="563"><figcaption><p>Adding an input</p></figcaption></figure>

You have various options for the type of input you want to add (depending on what kind of influence you want to give to the scene where this product will be included).

For example you can add a *Material Input,* which will allow the parent scene (the scene where it will be included) to assign material to this input that we you have just created. This material input you can use as a regular material and assign the areas of the product that you want to allow to override in any parent scene.

When you now add your product to the a scene, you will see a new input appear:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F0fHHI0trknmhPoSZ6dMm%2Finput.png?alt=media&amp;token=45be2f4b-a3f4-4686-9dfc-0c3486297224" alt="" width="563"><figcaption><p>Material input</p></figcaption></figure>

where you can now use to drag and drop a regular material to override:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FMcwq49B1bzfLbuBqyNQT%2Finput2.gif?alt=media&amp;token=2b3274a9-fc05-4cfe-9c25-e947abef3097" alt=""><figcaption><p>Assigning material to an input</p></figcaption></figure>

Notice that in the parent scene you re not able to edit anything else other than assigning a material to the input.

An input always contains a *Default* field:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FqnIiVLLLZb7qUqDmGw34%2Fimage.png?alt=media&amp;token=e286d59c-e16f-4f1d-90a3-7c360cdfa9e4" alt="" width="251"><figcaption><p>Default field</p></figcaption></figure>

This is the value that will be used if nothing is assigned to the input in the parent template.

{% hint style="info" %}
The color of inputs is always blue and the color of outputs is always red. This way you can always quickly see what fields you can assign values to (*Inputs*) and what fields you can use as values that you can assign to other areas (*Outputs*).
{% endhint %}


# Outputs

*Outputs* are the opposite of *Inputs*: these fields can be created to supply values to the parent scene, rather than being used to override elements within the product itself.

Inside a product you can add an output using the *Other* button:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FOWzJl2MDKYsGLSoAUX5t%2Foutput2.gif?alt=media&amp;token=18131922-64fc-4386-820c-f97b730613af" alt="" width="563"><figcaption><p>Add an output</p></figcaption></figure>

To demonstrate one way to use outputs, lets say that you want to create a group of finish options that can be reused inside many products. For this we first create a new product and add the options as described in the [Create Material Variants](/building-blocks/products/create-material-variants)page. Then we add a new *Material Output.* Once we have both the options and the *Output* then we need to simply assign the *Switch (this is the combined material)* of the material options to the *Output.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FWzT3ra6X1vSMXHcRPEHT%2Foutput1.gif?alt=media&amp;token=c96c6d33-5afc-4d4c-917a-c68c129864c1" alt="" width="563"><figcaption><p>Assign the material switch to the output</p></figcaption></figure>

This way, wherever this product is included, the output (the finish options) can be used by the parent scene. This makes it possible to create dedicated finish-option-products that are specifically designed to be used in products and assigned as finish options. As a result, you can avoid duplicating finish options and simply create reusable configurations.

You can see how this new *finish-option-product* can be used inside another product below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FTYYQLprm5ZbNwYzUVxgK%2Foutputs.gif?alt=media&amp;token=f2a43a8b-7597-4796-a05d-7ca259d7d864" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The color of outputs is always red and the color of inputs is always blue. This way you can always quickly see what fields you can assign values to (*Inputs*) and what fields you can use as values that you can assign to other areas (*Outputs*).
{% endhint %}


# Convert Element to a Reusable Template

At any time during your work, you may want to turn part of an existing scene or product into a reusable element. To do this, simply select the elements you want to reuse - just the top-level elements are enough; there's no need to dig into folders or config groups to select the children - like this:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FyXp04IVEO4pDw3tUQaUt%2Freusabletemplate.gif?alt=media&amp;token=372516d4-137c-4369-a7cb-4dfc74c11b7a" alt=""><figcaption><p>Create a template</p></figcaption></figure>

This only created a template in your local editor. You can duplicate the instance (the item with the blue icon) as many times as you like. However, to make this template available in your library, you also need to publish it. You can do this by clicking on the template that you just created and press *Promote to library*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F4LRNWq0juVZBhCJx6NFB%2Fimage.png?alt=media&amp;token=613e2cfa-4388-4f6d-a8db-419228c39b3b" alt="" width="334"><figcaption></figcaption></figure>


# Remove a Product

On the platform, products that are in use or have associated data cannot be removed easily by design. This prevents users from accidentally deleting work that may have taken days to create with a single click. Additionally, if a product is already used in a scene, the system restricts its removal to avoid errors when the scene is opened later.

To remove a product, you need to that the product doesn't have any revisions (see [#remove-product-revisions](#remove-product-revisions "mention")).

## Remove Product Revisions

In order to remove a product first you would need to remove all of its revisions. You can do this by clicking on the *Show version history* and removing each history item, or you can also just simply click on *Discard last revision* until there is no revision left.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FZ3VnCLIQofIKznBu5lmX%2FUntitled%20design%20(15).png?alt=media&amp;token=2b798c55-b90e-44ba-ae61-78366a4976b1" alt=""><figcaption></figcaption></figure>

If you see that a product revision cannot be removed, it means that it is currently referenced in a scene or in another product. At this point, removing the product becomes intentionally more restricted, because it has already been used in one or more scenes. If the product was removed, those scenes would produce an error every time they were opened. You can view the list of scenes where the product is used in the following section in the dialog window:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FsZG1UewcqRhmd8nbrH0f%2FUntitled%20design%20(17).png?alt=media&amp;token=83947d97-1be8-4a55-a743-551c973df42a" alt=""><figcaption></figcaption></figure>

You would need to open each scene and manually remove the product. The system will not remove it automatically, since doing so could potentially damage the many scenes at once.  Once you removed it from the scenes, you should be able to remove the product revision as well.

## Remove Product

To delete the product once there are no associated revision, you just have to click on the three dots and press *Delete product.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FDUIHpp69PH4vDgf2lYBz%2FUntitled%20design%20(16).png?alt=media&amp;token=1a02596b-ea97-4c0c-8366-936fe9b6f220" alt=""><figcaption></figcaption></figure>


# Documentation Review

Using the [Products](/building-blocks/products) documentation please create a new product in the *Products* tab named *\[YOUR NAME] – Test*.

After opening the editor, upload the file below:

{% file src="/files/uWtIe4tGba4iVXSiuQn4" %}

Using this 3D file, please complete the following tasks:

* Following the [Create Variants](/building-blocks/products/create-variants) page create two configuration variations:
  * One where the seating pad is visible
  * One where the seating pad is hidden
* Following the [Create Material Variants](/building-blocks/products/create-material-variants) create two wood finish variations and apply it to all parts except the seating pad
* Assign a fabric (any selection from the library) to the seating pad

Once the product setup is complete, create a render (following the [Render Your First Image](/rendering-platform/render-your-first-image) page) by selecting a 3D scene from the library and placing your newly created chair into the scene. You will need to create a new folder (Project) and sub-folder (Set) please use your own name for the folder (Project) and for the sub-folder (Set).

Once all of this is done, create a new picture and batch render (following the [Batch Rendering](/rendering-platform/batch-rendering) page) all the variations of the product (4 in total).


# Materials

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Docs/Materials.mp4>" %}

## Intro

In the **Materials** tab, you can manage and process your existing scans or upload new materials. The video below provides a quick introduction to creating and working with different types of materials on the platform.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Tutorials%20-%20Tiling%20(by%20Dimitris)/04%20Creating%20a%20Material.mp4>" %}

{% hint style="info" %}
The tiling of materials is discussed in a separate chapter: [Scanning and Tiling](/scanning-and-tiling/scanning)
{% endhint %}


# Add a Material

Press the *+Create* button and then click on *Material*:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F7FlW2mxgL8bVxyHMtJrn%2Fmaterial.png?alt=media&amp;token=c9b07aa9-c313-4f82-b58e-f981ac7ed4e6" alt="" width="241"><figcaption></figcaption></figure>

Next there will be a prompt that will ask for the name of the material:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5TfRgQ7BvAUWks81zMY5%2Fimage.png?alt=media&amp;token=dfe7cfd1-3f34-4dc0-8c19-04b5bb59a77b" alt="" width="293"><figcaption></figcaption></figure>

Next you should select how you would like to create a new material:

* **Blank:** Choose this if you are scanning with the colormass scanner (see [Scanning](/scanning-and-tiling/scanning))
* **From Image:** Choose this if you would like to create the material using a single image (see [Upload Image as a Material](/building-blocks/materials/add-a-material/upload-image-as-a-material))
* **From Image (AI):** Choose this if you would like to create the material using a single image but would like to enhance it with the colormass AI material creation (see [Upload Image as a Material (AI)](/building-blocks/materials/add-a-material/upload-image-as-a-material-ai)). Please note that this AI technology is still experimental. Check <https://www.colormass.com/products/material-ai> for more details about the technology.
* **From PBR Files:** Choose this if you would like to upload your own maps (see [Upload PBR Materials (Custom)](/building-blocks/materials/add-a-material/upload-pbr-materials-custom))


# Upload Image as a Material

To create a new material from an image follow the [Add a Material](/building-blocks/materials/add-a-material)page and select the *From Image* option.

In the dialog drag and drop your image that you would like to use like so and type in the width and height (in cm) like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1aUiiUYzyih72Dzxy7Nr%2Fimage.png?alt=media&amp;token=0c03869d-e670-442e-b580-9098da2a7e0a" alt="" width="294"><figcaption></figcaption></figure>

The click on *Create*. Tis should now prepare the basis of your material and the last step to do is to click on *New material:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FuPDK384nUBhhrPX7FX3v%2Ffrom%20image.png?alt=media&amp;token=7bac8a73-9cd9-421f-94f6-fe8b115b3d4a" alt="" width="563"><figcaption></figcaption></figure>

and then *Save* the material, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fjdw4X2bSO6M2e0zA6goT%2Fsave.png?alt=media&amp;token=0d226dba-ba2c-49bd-befe-fefea1078f9f" alt=""><figcaption></figcaption></figure>


# Upload Image as a Material (AI)

When you click on the [Add a Material](/building-blocks/materials/add-a-material) button please select *From Image (AI):*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FGvMeXTJsyjEYgXV5XngT%2FUntitled%20design%20(13).png?alt=media&amp;token=0dc27d90-7538-49e2-a646-1942d206b1c5" alt="" width="295"><figcaption></figcaption></figure>

Here, you’ll need to fill out:

* The name
* The size (please make sure it is accurate)
* Any relevant tags you find applicable (these help the AI algorithm categorize the material more effectively)

Once you press *Create*, the algorithm will start processing and will take approximately 10–15 minutes to complete. After the process is finished, you will find the maps listed under your item, like this:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FEkRsTnuznMtGYoYiXVOB%2Fimage.png?alt=media&amp;token=795f7a01-54e2-4e62-aebd-2fbb8a8d8b8f" alt="" width="563"><figcaption></figcaption></figure>


# Upload PBR Materials (Vizoo, AXF)

{% hint style="info" %}
colormass offers an automated solution for integrating **Vizoo** and **AXF** scans into the system. Currently, this conversion is handled by colormass staff, but if your team needs to perform individual conversions rather than processing a large batch at once, please contact your colormass account manager to see how this can be added to your account as an individual feature.
{% endhint %}


# Upload PBR Materials (Custom)

To create a new material from an image follow the [Add a Material](/building-blocks/materials/add-a-material)page and select the *From PBR Files* option.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FbO0pQVhOKAK7bifePHtx%2Fimage.png?alt=media&amp;token=f8a0c768-abaa-4974-987c-68d36d77e83b" alt="" width="293"><figcaption></figcaption></figure>

The click on *Create*.&#x20;

This will open a new material dialog, where the texture set, with the placeholder maps are already created, where you will be able to drag and drop your maps:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FXgkYt9LxvwV0hO7uIcLo%2FUntitled%20design%20(4).png?alt=media&amp;token=565c098f-889d-4bc4-a62a-915af706d957" alt="" width="563"><figcaption></figcaption></figure>

Drag and drop your maps to the slots that best describe the map you are trying to upload and then also enter the **physical size** of the maps, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FtSTjDrHnylcPlv7Xh1nA%2Ffrompbr04.gif?alt=media&amp;token=228f1377-2967-4918-a1ad-cdc42bd20f74" alt="" width="563"><figcaption></figcaption></figure>

then click on *Save*. After these steps now there is only one step left to do, which is to click on *New material:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FUNhkR91YRjNPJepo9Zmq%2FUntitled%20design%20(6).png?alt=media&amp;token=62cb9adc-0e4e-4abd-a736-d0e2e957ef2a" alt="" width="563"><figcaption></figcaption></figure>

and then save the material:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FvU1FioYbkFnawK6e7FXF%2FUntitled%20design%20(7).png?alt=media&amp;token=4eed5561-0cc3-4c48-9196-39b53ae31666" alt=""><figcaption></figcaption></figure>


# Copy a Material

To  copy a material you simply need to hover over the card of the material and then press *Copy:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FGjUavyAjepEcySDBj7wt%2Fimage.png?alt=media&amp;token=4b4043b6-cf56-46a3-b882-cd547e299ce3" alt="" width="261"><figcaption><p>Copy a material</p></figcaption></figure>

Once you press the icon the new material with the exact same material graph will be created. The name will be the same as the original material with a "(Copy)" added to the end of the title.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F8klDBw1y64RLNAM9Updl%2Fimage.png?alt=media&amp;token=7871dd8f-49bb-4a07-aaf5-82d3ec3c5140" alt=""><figcaption></figcaption></figure>


# Recolor a Material

It happens often that you want to use an existing scan or material and copy it multiple times (see [Copy a Material](/building-blocks/materials/copy-a-material)) and then recolor it or that you need to simply adjust the color of an existing scan. In either case as a first step we would need go to your copied or original material and open the material editor by clicking on the *Edit material* button.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FD0QpMjAmx7fT0hldKOxU%2FUntitled%20design%20(3).png?alt=media&amp;token=d651b551-c254-49bf-bc24-56b5e1e90a61" alt=""><figcaption><p>Edit material copy</p></figcaption></figure>

This will open up the material editor. In the material editor the Base color is simply taken from the scan or uploaded image and plugged in to the material definition (node on the right), so to change the color we would need to break this line and add an adjustment node.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FMecSGYkoKmfXqban87Ow%2FUntitled%20design%20(4).png?alt=media&amp;token=6647e168-d33d-4fca-908f-3afc28315dd7" alt=""><figcaption><p>Base color</p></figcaption></figure>

In the recording below you can see how you can add a [RGB Curve](/building-blocks/materials/recolor-a-material/rgb-curves) node that you can then use to adjust the color. Just as in Photoshop, you can add multiple different adjustment nodes RGB Curve is just one option you can also use [HSV](/building-blocks/materials/recolor-a-material/hue-saturation-value) node.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fe5DURwZbNPNR9UJr1Mpd%2Frecoloring.gif?alt=media&amp;token=1d066029-57f3-448f-aca5-7fa695bc6cef" alt=""><figcaption><p>Adding an RGB Curve node</p></figcaption></figure>

The only step left to do is to adjust the curve (or HSV values) depending on which node you chose in the end, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FF8BMu4q2xTHs37sVlgqp%2Frecoloring2.gif?alt=media&amp;token=65d570e4-80b5-44da-8c9e-ebb13faadc6b" alt=""><figcaption></figcaption></figure>

Once you are done do **not** forget to *Save* your material.


# RGB Curves

The RGB Curves Node allows color corrections for each color channel and levels adjustments in the compositing context.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FxvULQMg636i9sCIwdsB7%2Fimage.png?alt=media&amp;token=c5500fc0-fa0c-4643-b6cc-c7d8c5cafe1f" alt="" width="188"><figcaption><p>RGB Curve Node</p></figcaption></figure>

Clicking on one of the channels displays the curve for each.

* RGB (Combined RGB)
* R (Red)
* G (Green)
* B (Blue)


# Hue Saturation Value

The Hue Saturation Value Node applies a color transformation in the [HSV Color Model](https://en.wikipedia.org/wiki/HSL_and_HSV).

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5Y0CyQz1sxNtt5tXrbag%2Fimage.png?alt=media&amp;token=f95b9b60-1658-4a2b-8153-28802ae27b37" alt="" width="194"><figcaption><p>HSV Node</p></figcaption></figure>

### Hue

Specifies the hue rotation of the image. 360° are mapped to (0 to 1). The hue shifts of 0 (-180°) and 1 (+180°) have the same result.

### Saturation

A saturation of 0 removes hues from the image, resulting in a grayscale image. A shift greater than 1.0 increases saturation.

### Value

Value is the overall brightness of the image. De/Increasing values shift an image darker/lighter.


# Recolor Operator (New)

See the [Recolor](/scanning-and-tiling/texture-editor/operators/recolor) operator in the Texture Editor section.


# Adjust Reflectivity

In order to adjust the reflectivity of a material on the platform you would first need to navigate to the specific material that you would like to change and click on the *Edit material* button.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FZPaktwiCdF0PWKpS7GwP%2Fimage.png?alt=media&amp;token=b02dab64-bb70-4f05-897e-56e526c3c531" alt=""><figcaption><p>Edit material</p></figcaption></figure>

This will open up the material editor. In the material editor the reflectivity is mostly controlled by the Roughness map, so to change the reflectivity we would need to break this line and add an adjustment node.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FqKORkDkDB4mnWAm0j73z%2FUntitled%20presentation%20(1).jpg?alt=media&amp;token=a4dd2725-36a3-4edb-b9ed-5fa85ae38370" alt=""><figcaption><p>Roughness map</p></figcaption></figure>

In the recording below you can see how you can add a [RGB Curve](/building-blocks/materials/recolor-a-material/rgb-curves) node that you can then use to adjust the reflectivity.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FAaAUlcuoeQKhceyZBlmj%2Freflectivity.gif?alt=media&amp;token=91da891c-2be7-4d60-8e8d-320f8ef4261b" alt=""><figcaption><p>Reducing roughness</p></figcaption></figure>

The [RGB Curve ](/building-blocks/materials/recolor-a-material/rgb-curves)works the same way as in photoshop. The RGB Curve in this case simply adjusts the brightness of the roughness (the brighter it becomes the less reflective, the darker it becomes the more reflective). So in order to decrease the reflectivity simply drag the bottom left point more to the top, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FbhWRMQsuA6PcMRpNHjLY%2Fimage.png?alt=media&amp;token=48df0486-f4c3-476f-8c2c-87e53f9d5c94" alt=""><figcaption><p>Decrease reflectivity</p></figcaption></figure>

or drag the top-right point and drag it down, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FhVmtk2Z9NpHKzZqIYqYJ%2Fimage.png?alt=media&amp;token=ce46ac7c-cfad-4461-a3f5-d40b387d6342" alt=""><figcaption><p>Increase reflectivity</p></figcaption></figure>


# Adjust Opacity


# Materials with Transmission

You can determine if a material belongs to this category by checking for a node called Scanned Transmission.&#x20;

To adjust the opacity, simply modify the *Opaque Threshold* (see below).

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FSi7uZw8xZwrDWOo30MCr%2FUntitled%20design.png?alt=media&amp;token=f645552a-bb26-4990-8570-69a2b3cc9b86" alt=""><figcaption></figcaption></figure>

If you decrease this value then the material becomes more and more see through, see below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F3QYLji5iZkYU9dfshC2e%2Fimage.png?alt=media&amp;token=51ad2d28-517f-42b2-a891-8c8c5d15ba1f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F6AmiGJgYk0kYj8Apv0DQ%2Fimage.png?alt=media&amp;token=476d1dfe-6bbb-4fd4-b6ed-b7e72a1e5bb0" alt=""><figcaption></figcaption></figure>


# Materials without Transmission

In order to adjust the reflectivity of a material on the platform you would first need to navigate to the specific material that you would like to change and click on the *Edit material* button.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FZPaktwiCdF0PWKpS7GwP%2Fimage.png?alt=media&amp;token=b02dab64-bb70-4f05-897e-56e526c3c531" alt=""><figcaption><p>Edit material</p></figcaption></figure>

This will open up the material editor. In the material editor the reflectivity is mostly controlled by the Alpha map, so to change the opacity we would need to break this line (see highlighted in red below) and add an adjustment node.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1kj8e8JVF0rlOuXPGhGS%2FUntitled%20design%20(3).png?alt=media&amp;token=5e72c697-43ed-4766-86f5-f158cf20fd89" alt=""><figcaption></figcaption></figure>

In the recording below you can see how you can add a [RGB Curve](/building-blocks/materials/recolor-a-material/rgb-curves) node that you can then use to adjust the opacity.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FtcwYwUxlSJdk7XdH4oae%2Fopacity.gif?alt=media&amp;token=fc6d5c1d-5e25-464f-932e-4c93b0a8ac04" alt=""><figcaption><p>Reducing opacity</p></figcaption></figure>

The [RGB Curve ](/building-blocks/materials/recolor-a-material/rgb-curves)works the same way as in photoshop. The RGB Curve in this case simply adjusts the brightness of the alpha (the brighter it becomes the less see-through, the darker it becomes the more see-through it becomes). So in order to decrease the see-through simply drag the bottom left point more to the top, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F7Ou0pNh6eNCE7OLyUf8o%2Fimage.png?alt=media&amp;token=0c859659-0040-44d7-a102-81ad936903f8" alt=""><figcaption><p>Decrease see-through</p></figcaption></figure>

or drag the top-right point and drag it down, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FIqtotJRfez9v7q8BlCBN%2FScreenshot%202025-12-18%20125019.png?alt=media&amp;token=e2eb5f06-3fc0-4d18-b47b-23b462f2d395" alt=""><figcaption><p>Increase see-through</p></figcaption></figure>


# Change a Map (Substrate)

In some cases, it’s necessary to replace a map of a scanned or finished material. Most often, this involves swapping the diffuse map to introduce a new pattern while preserving the other captured reflection details.

{% hint style="warning" %}
Please note that this is an advanced change. If you are not sure what this option does, we recommend not using it.
{% endhint %}

The best way to start is by copying an existing material, such as a substrate scan (see [Copy a Material](/building-blocks/materials/copy-a-material)). Once you open the copied material, you will see the original set of textures displayed.

Next you would need to add a new Texture Set:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FisMNgM7AxuHSST4t876k%2Fnew%20texturset.png?alt=media&amp;token=bfb65923-2a0a-4d1a-9760-f144b7670148" alt=""><figcaption></figcaption></figure>

Inside the new Texture Set, upload your new map (in this case, the Diffuse Map) by simply dragging and dropping it, as shown below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FuUlIm5rYByoPvmzbyRR4%2FScreenshot%202026-05-15%20114449.png?alt=media&amp;token=9a1b234b-597f-4790-a959-3552ed5e09e9" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Do not upload the texture into the existing Texture Set, because the system will interpret the newly uploaded texture set as an updated version of the original and overwrite it.
{% endhint %}

You will also need to specify the size of the new map. Make sure the physical dimensions match the real-world size represented by the newly uploaded texture:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FYr1folIfByDZGeeWKzkJ%2Fsize.png?alt=media&amp;token=3a4c38ea-1401-4256-8e51-2a377990c327" alt=""><figcaption></figcaption></figure>

and then press *Save*.

Once it is saved, copy or remember the Texture Set ID (in this case 61012) and navigate to *Edit Material:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FO4fhk89VCyGmzVmfXBev%2Fimage.png?alt=media&amp;token=a976ff68-311d-4188-bc43-defc9fffd38f" alt=""><figcaption></figcaption></figure>

Then click *+ Add a new node* and select a new *Texture Set* from the menu.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FBmhmlTg4RCWm2fpBHUgR%2Ftexture-set.png?alt=media&amp;token=5ff8996a-058b-4a36-8676-fcfa5a2a3138" alt=""><figcaption></figcaption></figure>

and add the *Texture Set* ID here:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FLQguz8F3kruYTu3nmfEt%2Fnode-editr.png?alt=media&amp;token=0fad2017-5a34-4a82-9157-10977b8ec853" alt=""><figcaption></figcaption></figure>

As a final step, connect the UV output to the X-Y-Z input, and plug the Base Color into the Base Color input of the Principled BSDF node like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FY7TWn2hb1HAeRJINzGh1%2Fimage.png?alt=media&amp;token=a67b3bd7-751e-4fdf-98b5-205ced8ac5fc" alt=""><figcaption></figcaption></figure>

Once you are finished, save the material.


# Material Explorer

The *Material Explorer* is a tool that you can use to explore how your graphics (regular images) would look on furniture pieces, without having to manufacture the fabric or patter.&#x20;

To use the *Material Explorer*, first navigate to the *Materials* tab:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FdZUJtYifK0rnAPbmJO81%2FUntitled%20design%20(11).png?alt=media&amp;token=b3e7204d-dd51-4599-9beb-c0b5d1b315ec" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
In case you don't see this button that means your account doesn't have this feature turned on, please contact colormass staff to enable this feature.
{% endhint %}

Once you click on the button it will bring up a dialog window that should look something like this:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FlxJGU1YPwl9qOdQUkPQf%2FUntitled%20design%20(18).png?alt=media&amp;token=efe7489d-550a-44fb-8282-2a128fbbbcf5" alt=""><figcaption><p>Material Explorer dialog</p></figcaption></figure>

Click on folder icon in the bottom right corner and select your image. Next you will be asked to enter the dimensions of the uploaded image:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fl4P0LWS1ixSNBc2WhEbm%2Fimage.png?alt=media&amp;token=4ddf411f-c13e-4cac-b55c-1265c0996607" alt="" width="256"><figcaption><p>Dimensions</p></figcaption></figure>

These are basically the physical size of the picture you just uploaded, these are important to make sure that the graphic is applied to the furniture pieces in the right size (if you get it wrong don't worry, you can change this later as well).

Once your image is uploaded you can start adjusting the size and the rotation of the material, just like in this screenrecording below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FgDypBndUjvlFESKrRBn5%2Fmaterialexplorer.gif?alt=media&amp;token=871c10ed-3532-467e-a77b-5b85f56b2b42" alt=""><figcaption><p>Changing width and height of the pattern</p></figcaption></figure>

Furthermore in the bottom left corner you will be able to select furniture pieces to try for your pattern. &#x20;

{% hint style="info" %}
Please ignore the *Material Explorer Material* button on the left (just above the furniture selection). That button is meant for a specific use case that most probably will not be used in your account. If you are unsure please ask your contact person at colormass.
{% endhint %}


# Rotate Material

{% hint style="warning" %}
Before rotating a material, make sure you understand whether the issue is limited to a **single material** with incorrect orientation or if **all materials** appear incorrectly on the mesh. If it’s the latter, you should adjust the [Pattern Placement](/building-blocks/products/pattern-placement) not the material itself.

The easiest way to determine this is to open the texture editor (see below) and check whether the orientation shown there is the same as you would expect the orientation to be.
{% endhint %}

Navigate to the Materials tab and click on the material that you would like to change, and then click on the texture of the material:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FT4fbHbW4ZKtZtiRXslZX%2FUntitled%20design.png?alt=media&amp;token=ef1d08bc-6361-4dd3-8be3-7ec080e364d2" alt="" width="563"><figcaption></figcaption></figure>

Then in the operators add the *Rotate* operator to rotate:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fbdt0fbdCLe4fyoHdpfGb%2FUntitled%20design%20(1).png?alt=media&amp;token=9fe52d70-4f44-425f-9c59-2f20d3cd3cb0" alt="" width="316"><figcaption></figcaption></figure>

{% hint style="info" %}
In case you only see a Tiling operator, then please click on Tiling operator first (without modifications and then apply the Rotate operator).
{% endhint %}

If you don't see a way to add an operator then please follow the [I Can't Add an Operator](/scanning-and-tiling/texture-editor/i-cant-add-an-operator) page apply your rotation after the copy and then update your material.

In case you are looking to edit the textures more, please look at the [Texture Editor](/scanning-and-tiling/texture-editor) section.

{% hint style="info" %}
Although materials can also be rotated directly in the material editor, we recommend performing rotations only in the texture editor. Some maps (such as normal maps) require additional adjustments when rotated, and rotating them solely in the material node editor can lead to incorrect visual results.
{% endhint %}


# Displacement

It happens often that you want to increase the intensity of the surface geometry of a scanned sample.&#x20;

The first step we would need go to your copied or original material and open the material editor by clicking on the *Edit material* button.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FD0QpMjAmx7fT0hldKOxU%2FUntitled%20design%20(3).png?alt=media&amp;token=d651b551-c254-49bf-bc24-56b5e1e90a61" alt=""><figcaption><p>Edit material</p></figcaption></figure>

Once you’re editing the material, you simply need to enable Displacement and save a new revision, as shown below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FenIPxmbf9dr603ggEaIF%2Fenable-displacement-on-material.gif?alt=media&amp;token=e218069b-00e7-463e-aed3-38d4094e763c" alt=""><figcaption></figcaption></figure>

This will enable a default strength for the surface geometry. If you want to increase the intensity of the surface detail, go to the Texture Editor by clicking on any texture in the scanned set, then select Adjust size and set a value between 0 and 2 cm, as shown below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5pS7zvvXBrHvwoCY21sU%2Fadjust-displacement-size.gif?alt=media&amp;token=f3c2b9c6-84d0-4e6c-80db-ca224e5f7a58" alt=""><figcaption></figcaption></figure>

To increase the intensity, simply raise the value above the default setting and press *Ok*.


# Scan Materials

This is described in detail in the [Scanning and Tiling](/scanning-and-tiling/scanning) chapter.


# Remove a Material

On the platform, materials that are in use or have associated data cannot be removed easily by design. This prevents users from accidentally deleting work that may have taken days to create with a single click. Additionally, if a material or texture is already used in a scene, the system restricts its removal to avoid errors when the scene is opened later.

To remove a material, you need to ensure two things:

* The material doesn't have any revisions (see [#remove-material-revisions](#remove-material-revisions "mention"))
* The material doesn't have any textures (see [#remove-textures](#remove-textures "mention"))

## Remove Material Revisions

{% hint style="info" %}
If you don't see any revisions under your material (and you only see a *New Material* button), then you can skip this step.
{% endhint %}

In order to remove the materail revisions, you would need to click on *Show version history*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F0wZOFv0dj7XvCODBB7MI%2Frevision.png?alt=media&amp;token=abb45019-2e82-4ba8-a48a-b84266cc9020" alt=""><figcaption></figcaption></figure>

And then on the bin icon to remove each revision:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FTR7zq6e0fVEDoC9nldbu%2Frevision%20delete.png?alt=media&amp;token=b41a2288-2c15-4fa3-a1db-c11b158de0c8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FpyHvYvUoAbdzXxAfVxrp%2FUntitled%20design%20(4).png?alt=media&amp;token=72655226-4f4a-4e85-bbdf-e329fb911756" alt=""><figcaption></figcaption></figure>

If you see that a material revision cannot be removed, it means that it is currently referenced in a scene. At this point, removing the material becomes intentionally more restricted, because it has already been used in one or more scenes. If the material were removed, those scenes would produce an error every time they were opened. You can view the list of scenes where the material is used in the following section in the dialog window:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F3P4l1i5qL6tFc9mFewoH%2FUntitled%20design%20(4).png?alt=media&amp;token=d962b5ae-5900-42c6-81c7-759a0134f015" alt=""><figcaption></figcaption></figure>

You would need to open each scene and manually remove the material. The system will not remove it automatically, since doing so could potentially damage the scene.

## Remove Textures

{% hint style="info" %}
If you don't see any textures under your material, you can skip this step.
{% endhint %}

Removing revisions is only one part of the process. You also need to explicitly remove the textures associated with the material under *Texture Sets.* Click on any of your textures:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fip9HKdzu62uvW3TTgDHP%2FUntitled%20design%20(5).png?alt=media&amp;token=45f4cf95-094a-486e-9c65-e00664ff329b" alt=""><figcaption></figcaption></figure>

Once you are in the texture editor, you can remove all of your texture revisions like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F3YPjK2Gt21Bh71S4gcWT%2FUntitled%20design%20(6).png?alt=media&amp;token=1a166c0d-e84c-4a51-952f-34ac89c4a337" alt="" width="540"><figcaption></figcaption></figure>

And once those are removed, you still need to go back to the material and remove the complete *Texture Set* by clicking on the bin icon:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FKpkTebbHQzsdV22Bm8lO%2FUntitled%20design%20(8).png?alt=media&amp;token=9fe7789b-4428-4353-8fc3-d4e49347d638" alt=""><figcaption></figcaption></figure>

## Remove Material

To delete the material once there are no associated data, you just have to click on the three dots and press *Delete material.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FmFQ6wLi2cxx1Ei6jSD5D%2FUntitled%20design%20(7).png?alt=media&amp;token=8acabd72-95db-43cf-9028-f1c9e8999fb0" alt=""><figcaption></figcaption></figure>


# Download PBR Materials

In order to download the PBR maps of the material first navigate to the publicly available list, so go to *Materials* and then to *Public Library*.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FZUE0kBWLyhOqTPefTgKG%2FUntitled%20design%20(19).png?alt=media&amp;token=2c5bee25-2550-49f1-8aea-5bb1fc309384" alt="" width="396"><figcaption></figcaption></figure>

There click on the material of your choice. In the dialog if you see an Upgrade to Download button that means that you would need to upgrade your plan before being able to download the material.

{% hint style="info" %}
You can only download a material with a paid account. If you see a "Upgrade to Download" button, that means that you will need to upgrade your account before being able to download a material.
{% endhint %}

If you see a download icon, then just click on that and your material should begin downloading.


# Scenes


# Camera

## Add a Camera

You can add a camera by clicking on the *Camera* *& Lights* button and then clicking on *Camera.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FwgCbDpnnrBNlr7WkiFT3%2Fcamera02.gif?alt=media&amp;token=a336d561-8cb5-42bd-8493-e84cf271bf84" alt="" width="563"><figcaption><p>Adding a camera</p></figcaption></figure>

When you click on the camera, you'll see various options in the inspector area (middle column). Among these, you'll notice the Preview section. Furthermore a blue rectangle will appear in the 3D editor, which represents the focus plane.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FwyBykqzYzFWMQ8yeZhKj%2FFocus%20plane.png?alt=media&amp;token=3e64eeb6-6f99-4014-adc9-d506490ab6bb" alt=""><figcaption></figcaption></figure>


# Changing the Camera

## Quick Way to Change the Camera

If you want to quickly change the camera, an easy way is to turn on the camera icon, like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FWhwQuSohVBVwxK1jmt3n%2FUntitled%20design%20(22).png?alt=media&amp;token=f73ef862-d989-4014-a0a5-01c2e726ec1d" alt=""><figcaption></figcaption></figure>

Once you activate the camera, a warning should appear saying *You are changing the camera.* Now if you use the mouse to move around you will actually change the camera itself. You can rotate, zoom by scrolling, and pan to move the camera around, as shown in the video below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FzQtGiEJTVXfIsTNbVNa3%2Fcamera-movement.gif?alt=media&amp;token=4207a3b1-a122-4ec6-ac07-6fc7d540db5c" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
When you change the position of the camera, don't forget to check the position of the focus plane (blue rectangle), see [Focus](/building-blocks/scenes/camera/focus).
{% endhint %}

## Alternative Way to Change the Camera

If you click on the camera you can change the position using the gizmos:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F8fum6aiodz6YP76GP8lG%2Fimage.png?alt=media&amp;token=616a2c9d-d717-43fb-8193-152a709b48a7" alt=""><figcaption></figcaption></figure>

If you click on the camera again, you are able to change the target directly:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FtyC8YOlNzrXpbr5jsowi%2Fimage.png?alt=media&amp;token=dd2392a8-298f-4939-bcf7-c1b7b4bcdf93" alt=""><figcaption></figcaption></figure>

This alternative method gives you more control over making very precise camera movements. The first, easier method is a good way to get the camera roughly into the position you want.

{% hint style="warning" %}
When you change the position of the camera, don't forget to check the position of the focus plane (blue rectangle), see [Focus](/building-blocks/scenes/camera/focus).
{% endhint %}


# Focus

## Changing the Focus

If you click on the camera target (or if you click on the camera again while it is selected) you can also move the target of the camera around.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fq1WzBIeuytx4raZEHlq1%2Fcamera3.gif?alt=media&amp;token=6e947ab2-a57c-4550-833e-96d19d5618c8" alt=""><figcaption><p>Moving the target</p></figcaption></figure>

You will notice that the blue rectangle is changing while you are changing the target. This is because by default there is an *Autofocus* set and the camera is adjusting the focus depending on what you select as the target. But it is possible to **turn off** the *Autofocus* and set it manually. To do this press the  *Autofocus* toggle and then either:

* Choose a point or
* Set the focus plane distance manually in the *Focal distance* field

as you can see in the recording below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FFkjX3s5WeyS5HIny9Tvl%2Fcamera3.gif?alt=media&amp;token=48b17744-8710-4365-9eb1-6a2d479c9481" alt=""><figcaption><p>Changing the focus</p></figcaption></figure>

{% hint style="danger" %}
Please always make sure the focus plane intersect the area where you want your camera to focus, otherwise the image will be blurry.
{% endhint %}


# Focal Length

## Focal Length

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FAH3SKMHHTgi4hBzgncgz%2FDOF%20settings.png?alt=media&amp;token=bf37867c-ea64-4bac-b7e0-2286f3102bbd" alt=""><figcaption><p>Settings</p></figcaption></figure>

The focal length controls the level of zoom, determining how much of the scene is visible at once. A longer focal length results in a narrower field of view (more zoom), while a shorter focal length provides a wider field of view, allowing more of the scene to be visible at once (less zoom).


# Depth of Field

## Set Depth of Field

To achieve a DOF,  you have to set your *Focal distance* to the right point and then increase or decrease the *F-stop* (see the second arrow on the top screenshot). The lower *F-stop* is the narrower the depth of field will be and the higher the *F-stop* the larger the depth of field will be.

Therefore if you would like your image to be sharp everywhere set it to a high number (like 500) and if you would like your image to be blurry except&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FXakxnVSbJubwq94V0C7i%2Fimage.png?alt=media&amp;token=3f39b548-77c5-4470-990a-ac6cd86d09d6" alt=""><figcaption><p>DOF</p></figcaption></figure>


# Light

## Add a Light

At the moment there are two ways to add a light source in the editor:&#x20;

* Area light&#x20;
* HDRI light

You can add an area light by clicking on the *Camera* *& Lights* button and then clicking on *Lights* and then *Area Light.*&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FQubqS4NWAmpPxgLD1f29%2Flight.gif?alt=media&amp;token=0fe7ba36-7de2-4bc8-b4d3-fc5261e1d9e2" alt="" width="563"><figcaption><p>Add a light</p></figcaption></figure>

Which will add a rectangle like object in the middle:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FcQNtlWwRF6ZoDRtgdbR0%2Fimage.png?alt=media&amp;token=b2011891-5f3d-42db-ae05-c7e480266977" alt="" width="375"><figcaption><p>Area light</p></figcaption></figure>

## Targeted vs Non-Targeted

If you click on the target you can also adjust where the target of the light is. The light by default will move around a fixed point in space:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F0RiHSp10hj2vRrJURzpN%2Flight2.gif?alt=media&amp;token=0dce2497-78c5-43b7-be27-8d05823fbfc4" alt=""><figcaption><p>Targeted light</p></figcaption></figure>

If you change the *Targeted* toggl&#x65;*:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FCYHcseDKtXAnnrcFwgAu%2FUntitled%20design%20(5).png?alt=media&amp;token=a66696df-d0b6-4156-b3d2-c57508afa03e" alt="" width="563"><figcaption><p>Targeted toggle</p></figcaption></figure>

&#x20;you will have a *Non-Targeted Light* that is not fixated on any point in space.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FV8NvzLj67qj4tX8cizUK%2Flight3.gif?alt=media&amp;token=3e50d57d-c1d9-424d-b74d-b51d5025c90e" alt=""><figcaption><p>Non-targeted light</p></figcaption></figure>

## Width and Height

You can change the width and height of the light:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FH9mdZWF715hgacEMfDgD%2Flight4.gif?alt=media&amp;token=a82935a0-3f63-4783-86e5-2f2144c696f3" alt=""><figcaption></figcaption></figure>

## Intentisty and Color

furthermore you can also adjust the intensity and the color of the light. If you change the intensity it is good to keep in mind that the intensity of the light will depend on which type of light you chose.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FV2nk4PxysjLRXbonOcFa%2FUntitled%20design%20(6).png?alt=media&amp;token=01d27276-9853-46e9-a2fe-30c03301c79b" alt="" width="563"><figcaption></figcaption></figure>

You can choose between the two types of *Area Light*:

* Blender: The luminous flux (the intensity of the whole light) remains constant, meaning that increasing the surface area (width and height) will not affect the overall intensity.
* Corona: The luminance of the light (the intensity in a given unit area) is constant so if you increase the size of the light it will increase the intensity of the whole light as well

To change the color of the light, you simply have to pick a color from the color picker.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FfBUWJRsAUkrTGdd3r4CE%2Flight5.gif?alt=media&amp;token=85702766-524a-429b-957c-ee8a981a24bc" alt=""><figcaption><p>Choosing the color of the light</p></figcaption></figure>

## Visibility

In some cases it is important to adjust whether the light is visible to the camera or various reflections, and this you can change in the visiblity settings:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FdjVEpmSmy2iAch0Jggqm%2Fimage.png?alt=media&amp;token=0952b87b-8114-4852-82f8-aad558a67b34" alt="" width="176"><figcaption><p>Visibility</p></figcaption></figure>


# HDRI

In 3D design and rendering, HDRI is a technique that uses a special 360-degree panoramic photograph to light a virtual scene. HDRI stores a massive amount of real-world light data.

Imagine taking your 3D object and placing it inside a giant, glowing sphere that is painted with a real-world environment. Wherever there is a light source painted on that sphere, actual light shines down onto your object from that exact direction.

## Changing HDRI Lighting

When you are working in the platform, you have the ability to rotate this HDRI environment in three different directions (the X, Y, and Z axes).

Because the HDRI is a full 360-degree map of light and color, adjusting these rotations changes exactly where the light sources and shadows fall on your object. By simply tweaking these three rotation values, you essentially produce completely new light settings from the exact same file, without ever having to manually add or adjust artificial lamps. See the recording below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FSNKcG3vVSY6Ud2k59jxg%2Fhdri.gif?alt=media&amp;token=a5ffcb2b-3ccb-4432-a00a-0dbef36e8b0e" alt=""><figcaption></figcaption></figure>


# Render Node

In the render node you are able to set the resolution and the rendering accuracy.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FgZAuC44vtdZ1ho8ZoP7h%2Fimage.png?alt=media&amp;token=886fec81-832c-40fd-82cb-541e3ab332ab" alt="" width="322"><figcaption><p>Render node</p></figcaption></figure>

* W: width of the image in pixels
* H: height of the image in pixels
* Samples: The number of paths traced for each pixel in the final render. Increasing the number of samples reduces noise and improves accuracy. Usually for a regular white background image you can set 50-100 for a quick preview and set 100-300 for room images or for a less noisy white background image. Please note that increasing the number will take the image a longer time to finish rendering.


# Post Processing

If you already generated an image you can adjust the final look by applying various affects. All these effects can be controlled in the *Post Processing* node. If you click on the *Post Processing* node and the *Render Image* button:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FsW3aqGRpJUyaeZetNCsb%2Fimage.png?alt=media&amp;token=2cf7a7c0-cb69-45a8-b90a-9b72f16ec673" alt="" width="136"><figcaption><p>Render button</p></figcaption></figure>

then you can see how the changes that you apply to the *Post Processing* node will affect your image. You can see a quick overview of the various options and their effect on the final render below.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FQJIAuieQRnlrMviHXKjU%2Fpostprocessing.gif?alt=media&amp;token=469a0b66-3637-4205-82eb-de75dd76071b" alt=""><figcaption><p>Post processing options</p></figcaption></figure>

The main options of post processing are:

* **Exposure**: Adjusts the exposure (brightness) of the image, with negative values making the image darker and positive values making it brighter.
* **White Balance (White B.)**: Adjusts the color temperature of the image to achieve accurate colors, where lower values make the image cooler and higher values make it warmer.
* **Tone Mapping**:
  * **Tone Mapping Type**: You can select the algorithm to use when adjusting the tonal values of an image.
  * **LUT (Look-Up Table)**: Applies a specific color grading to the image for visual style.&#x20;
* **Background**:
  * **Transparent**: Makes the background of the image transparent.
  * **Composite**: Adds a background color to the image.
  * **Background Color**: Here you can select the background color that is used in compositing.


# Process Shadows

In some cases it can happen that shadows continue for way to long until the edge of the picture. Especially if you need the shadows to be uniform on many images (i.e. you would need a way to consistently cut the shadow for all images).

To easily change this without having to change the light and the camera, there is a *Post Processing* option called *Process Shadows*.

With it you can control how quickly the shadows disappear as they approach the edge of the image. Options:

<table data-full-width="false"><thead><tr><th width="155.333251953125">Option</th><th width="395">Description</th><th width="89.333251953125">Range</th><th width="100.666748046875">Default</th></tr></thead><tbody><tr><td><strong>Shadow Inner</strong></td><td>Mostly you will not need to use option, but this option pulls away shadows from the object. Unless you need something specific (e.g. increase the strength of the shadow that extends under the product) please skip this option.</td><td>0-1</td><td>0</td></tr><tr><td><strong>Shadow Outer</strong></td><td>Controls how far from the object the shadow disappears. The higher the value the more it tries to suppress the shadows that are not directly under the product.</td><td>0-1</td><td>0</td></tr><tr><td><strong>Shadow Falloff</strong></td><td>Controls the falloff of the shadow (how quickly, how soft the shadow gets). The lower the value quicker it gets softer away from the product.</td><td>0-1</td><td>1</td></tr><tr><td><strong>Shadow Opacity</strong></td><td>Controls the transparency and overall darkness of the generated shadows. The higher the value the less transparent it is.</td><td>0-1</td><td>1</td></tr></tbody></table>

Take for example the following image:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F2mVY3F7YjXzgj3MoVKiT%2Fimage.png?alt=media&amp;token=9e4622e4-1056-4895-8930-4b5a78cdb968" alt="" width="563"><figcaption><p>Original image</p></figcaption></figure>

When turning on the option we can see already that with the default values we see that much of the shadow disappears around the product:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FVub9gIznyn93fx8vA0VX%2Fimage.png?alt=media&amp;token=0a5a0483-0dff-4572-8982-7a4ced0c156a" alt="" width="563"><figcaption><p>Default values</p></figcaption></figure>

If we increase the **Shadow Outer** to 1 it will not let any shadow be casted away from the product (other than the shadow right under the product):

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FQ6Xym5DnEqusXrLyjK2d%2Fimage.png?alt=media&amp;token=e0d459fb-de8d-4ac7-ac2b-0c72d9d8815d" alt="" width="563"><figcaption><p>Shadow Outer </p></figcaption></figure>

If we decrease the **Falloff** to 0 it will make the shadows much softer much quicker away from the product. So you see the bit stronger shadow right under the product but going away the shadow gets much softer.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FIzp1yvYrj0UzdfWp7FM5%2Fimage.png?alt=media&amp;token=f302f118-6ffc-4561-8dda-1d975f92cc96" alt="" width="563"><figcaption><p>Falloff</p></figcaption></figure>

If you take a look at the last image (Falloff 0) we might want to make the shadow extend a bit more under the product and this is where **Shadow Inner** comes in. Increasing a value a bit, we can see that the shadow extends but the Falloff doesn't change.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FfEC435eag2dsCCoGImbx%2Fimage.png?alt=media&amp;token=b82d1e52-9087-4eff-b42a-b2429b21ba0e" alt="" width="563"><figcaption><p>Shadow Inner</p></figcaption></figure>


# Material Range

On the colormass platform, you can add an entire range of materials for renders and for configurators, allowing you to generate many variations of materials within the same range or pattern with a few clicks. To do this please click on *Other* and then *Material Ranges.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FFCmDfk6AfUerYnmY62Z8%2Fmaterialrange.gif?alt=media&amp;token=071d393a-a7e5-43b0-9566-431e8e441e88" alt="" width="563"><figcaption></figcaption></figure>

Once you click on your *Material Range* it will add a *Config Group* with your materials added as variants.

{% hint style="info" %}
To learn more about what a Config Group is check out the [Create Variants](/building-blocks/products/create-variants) and [Create Material Variants](/building-blocks/products/create-material-variants)pages.
{% endhint %}

To apply these variants, simply drag and drop the last item in the group (indicated by the small arrows) into the desired material slot (see below).

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FwLXYGVdjEDfXALcjM6Rp%2Fmaterialrange2.gif?alt=media&amp;token=7d5c97d2-9c69-45b1-8073-ac7f13045059" alt=""><figcaption></figcaption></figure>


# Integrations & Plugins

{% hint style="info" %}
It is possible to integrate exports directly into your website, so that you don't have to manually download and upload files. For more information check out the [Data Exporter](/dev/data-exporter/generating-exports) developer documentation.
{% endhint %}

A big advantage of an online 3D system like colormass is that since you are only storing a single source of truth, you can generate various kinds of export without having to store all those variations separately in the database.

## Types of Exports

On the right side of the screenshot below under *Material outputs* you can see four main outputs.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FREmD09UQRMm1SSXiYUIa%2Fimage.png?alt=media&amp;token=da38755f-8238-4a6c-af19-0be499cf881a" alt=""><figcaption><p>Material outputs</p></figcaption></figure>

For fall materials that have an online revision, various outputs can be generated:

* **Flat thumbnails** are images that are generated with a fixed dimension that is visible on the image. On the platform the following predefined sizes are available to be generated:

  <figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fb0Wev5YBQVLgXevg4Sbp%2Fimage.png?alt=media&amp;token=9cfa129c-708f-4474-91ae-b5412c7668b4" alt="" width="181"><figcaption><p>Thumbnail sizes</p></figcaption></figure>
* **Tileable image** is an image that can be placed next to itself (above, below, or side-by-side) without creating an obvious seam. The size of the repeat (and hence the physical size visible on the image) is included in the name of the file.
* **Map exports** are the PBR exports where the maps can be exported based on the last material revision or texture set. This can mean standard PBR exports but you are also able to change between render engines (Vray, Corona, Cycles), workflows (Metallness/Roughness, Specular/Glossiness), file type and many other settings.

  <figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FmrEUpmwyeZbscsc6D3QY%2Fimage.png?alt=media&amp;token=2a84dcdc-a075-4428-b569-f709f26431ce" alt="" width="150"><figcaption><p>PBR export settings</p></figcaption></figure>


# Material Exports


# Generating Exports

## Generating Exports

When you click on a material to view its details, the dialog window on the right will display the **outputs** for that specific material:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F4k8mmdoPPqPs8SPctahK%2Foutputs.png?alt=media&amp;token=9f6f1c04-567f-47e9-8d37-c0bc2395f34a" alt=""><figcaption></figcaption></figure>

In this section, you can generate:

* **Flat thumbnails** – fixed-size images showing a specified cutout of the fabric.
* **Tileable images** – the flat image of the complete repeat pattern.
* **PBR exports** – maps that can be used in other programs.

In order to generate an output all you have to do is to go to a specific output you would like to generate and press start (see an example of submitting a 7in x 7in flat thumbnail):

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FqmstlzPrcxKeYBfgiGnK%2Fimage.png?alt=media&amp;token=741b7229-42d2-48af-b2f5-78e06c44342b" alt="" width="179"><figcaption><p>Submit export</p></figcaption></figure>

Once you submitted the render, you should receive the following message:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F1iRSMH3DeabF3oKfwpvg%2Fimage.png?alt=media&amp;token=031df215-7323-4a1f-814d-7faabd1bccba" alt="" width="332"><figcaption><p>Submission message</p></figcaption></figure>

After this the image is submitted to the colormass servers for generating and if you check back after some time you should find that there is now a download icon next to the "7in" and that the *Flat thumbnail* text now has a (1) letter next to it, meaning that there is now 1 thumbnail available for download.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FxKHvZcCYMVGl28HUUNRl%2Fimage.png?alt=media&amp;token=63a35d2c-cb79-43f5-8c61-26dd5d0a383b" alt="" width="184"><figcaption><p>Download export</p></figcaption></figure>

Once you click on the download button you will see an option pop-up that lets you select the format for the material download.

## Re-Generating Exports

In order to re-generate outputs you would need to remove the existing output using the remove button. See this button for both Tileable and Thumbnail below:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FXm7zKmnRP7nUbJHooZVR%2Fimage.png?alt=media&amp;token=3396490d-574e-482b-974f-820c215bc469" alt="" width="225"><figcaption><p>Remove export</p></figcaption></figure>

Once you removed the image, you will need to refresh the page because this part of the UI at the moment is not refreshed automatically. Once you don't see the download option anymore that means that the output was removed and you can follow the [Generating Exports](#generating-exports) steps.


# PBR Exports

## Default Export

To access the PBR exports, click the PBR Exports option on the right.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FHoC71KJj08GdtIFFZ82f%2Fpbrexports.png?alt=media&amp;token=7f4a2f9f-6d0c-4f7a-be8e-ab960b36e3f4" alt="" width="215"><figcaption></figcaption></figure>

Then, 5 default options will be listed, consisting of combinations of:

* 3 file formats: `.jpg`, `.tiff`, `.exr`
* 2 resolution settings: `low` and `original` (original refers to the resolution of the original scan).

colormass materials are exported as ZIP files. An exemplary export would contain the following data:

<figure><img src="https://colormass.slite.com/api/files/5RBTVZ_7my6fRn/image.png" alt="Exemplary ZIP file contents of an exported dataset"><figcaption><p>Exemplary ZIP file contents of an exported dataset</p></figcaption></figure>

Tie *info.txt* file contains meta information regarding the material and the export settings:

```
Article ID: 6713402
Width: 127.00 cm
Height: 127.00 cm
Exported for workflow: Metallness / Roughness
Normal map orientation: +Y up
Resolution: Original
```

The other files are image files, named according to the following schema:

* *\[id]*-*\[name]*-diffuse.*\[ext]*
* *\[id]*-*\[name]*-normal.*\[ext]*
* ...

\[id] refers to the internal colormass material ID

\[name] refers to the material name

\[ext] refers to the file extension (JPEG, TIFF, EXR)

## Custom Export

The zip file above in regular circumstances exported using default settings. There is however a possibility to export a material with various settings on the platform. These possibilities include the following options:

* **Workflow**:
  * Metallnes / Roughness
  * Specular / Glossiness
* **Render Engine**:
  * colormass
  * Corona
  * VRay
  * Cycles
* **Normal direction**:
  * Engine default
  * +Y up
  * +Y down
* **File type**:
  * .exr
  * .tiff
  * .png
  * .jpg
* **Resolution**:
  * Original
  * 72 dpi

See screenshot of where these settings can be chosen:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FDxBYLNEwwqYSAWb7Tf3h%2Fimage.png?alt=media&amp;token=c8786f3a-4946-4396-81f9-13a2821533ff" alt="" width="243"><figcaption><p>Custom PBR export setting</p></figcaption></figure>

## Map Types

For the map types prefer refer to [PBR Maps](/scanning-and-tiling/scanning/pbr-maps).

## Exported Maps

Assuming that you selected *Engine default* option for the normal map these are the maps that will be exported for various workflows and render engines.

### Metalness / Roughness Workflow

#### colormass

* Maps: diffuse, normal, metalness, roughness, specular, anisotropy, displacement
* Anisotropy: As one map
* Normals: y+down

#### Cycles

* Maps: diffuse, normal, metalness, roughness, specular, anisotropy-strength, anisotropy-rotation, displacement
* Normals: y+up
* Anisotropy: anisotropy-strength: 0 ... 1.0, anisotropy-rotation: Counter-clockwise

#### V-Ray

* Maps: diffuse, normal, metalness, roughness, specular, anisotropy-strength, anisotropy-rotation, displacement
* Normals: y+down
* Anisotropy: anisotropy-strength: 0 ... 1.0, anisotropy-rotation: Clockwise

### Specular / Glossiness Workflow

#### VRay

* Maps: diffuse, reflect, normal, gloss, fresnel-ior, anisotropy-strength, anisotropy-rotation, displacement
* Normals: y+down
* Anisotropy: anisotropy-strength: 0 ... 1.0, anisotropy-rotation: Clockwise

#### Corona

* Maps: diffuse, reflect, normal, gloss, fresnel-ior, anisotropy-strength, anisotropy-rotation, displacement
* Normals: y+down
* Anisotropy: anisotropy-strength: 0.5 ... 1.0 (?), anisotropy-rotation: Clockwise


# pCon Export

colormass integrates with the pCon, so your materials are packed in the form pCon expects them.

Preparing a material takes a single click (or one operation across an entire collection) and everything it needs travels with it: the full set of texture maps, transparency for sheer and open-weave materials, your material naming, and the material's true real-world dimensions, so patterns and repeats appear at correct scale on furniture in pCon.

## Export

Nothing is rebuilt by hand, every package is generated from the scanned master format, so it stays faithful to the physical sample and to each of the other channels your range appears in. On the colormass platform you need to simply click on the ***pCon export*** and download the converted file to use it (see video below).

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/pCon/Download.mp4>" %}

The colormass platform then packages all the relevant information into a **.matz** file.&#x20;

## Import into pCon

This is the file format that pCon can readily read and import, so you can just simply drag it and drop it into pCon to have it available and use it on any of your products as a regular material (see video below).

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/pCon/pcon-import.mp4>" %}

By using the colormass platform as a single source of truth, you can digitize and manage your data in one central system and export it to multiple programs, such as pCon. This allows you to maintain and edit your data in one place and export it in the format that best fits your needs.

<br>

<br>


# CLO Export

CLO is a 3D fashion design software program. Our materials can be imported using the following process

## Export

On the platform, select a material and [export](https://docs.colormass.com/~/revisions/RxXZ6KbLyvGFaUFOPSSo/3d-content-management/materials/exports/pbr-exports) it as a [PBR export](https://docs.colormass.com/~/revisions/hhUottwyr9yqdItbQEIh/3d-content-management/materials/exports/pbr-exports).

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fp63dNLxYsQdtJBSnmUFz%2Fimage.png?alt=media&amp;token=c9022f5d-a417-4d74-9481-0bb6f44bf148" alt=""><figcaption></figcaption></figure>

Depending on your quality requirements you may choose between `72 DPI` and `Original` resolution. For the file format choose either `JPEG` (compressed) or `TIFF`.

If you need another file format, you can also create a custom export. The corresponding settings would be:

| Setting        | Value                       |
| -------------- | --------------------------- |
| **Workflow**   | `Metalness / Roughness`     |
| **Engine**     | `VRay`                      |
| **Normal Y**   | `+Y up`                     |
| **Resolution** | `dpi72` (low) or `original` |

## Download

Once the export is done, you can download it as a ZIP file. It contains all the required PBR maps plus some additional metadata `info.txt`. Unzip the file into a folder of your choice. Each map file is named according to the following schema

```
{material name}-{map type}.{extension}
```

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FlCEL7yhoG1O6odaVFAh9%2Fimage.png?alt=media&amp;token=d6c70e17-15b3-428e-b5a2-6f3157243f74" alt=""><figcaption></figcaption></figure>

For above example, the material name would be `43264-07`, the extension would be `jpeg` .

The following colormass map types are linked with the CLO PBR maps:

| colormass Map Type  | CLO PBR Map                                                           |
| ------------------- | --------------------------------------------------------------------- |
| diffuse             | <mark style="color:$success;">Base Color Map</mark>                   |
| normal              | <mark style="color:$success;">Normal Map</mark>                       |
| displacement        | <mark style="color:$success;">Displacement Map</mark>                 |
| alpha               | <mark style="color:$success;">Opacity Map</mark>                      |
| roughness           | <mark style="color:$success;">Roughness Map</mark>                    |
| metalness           | <mark style="color:$success;">Metalness Map</mark>                    |
| specular            | <mark style="color:$warning;">Reflection Intensity (see below)</mark> |
| anisotropy-rotation | <mark style="color:$danger;">Not supported</mark>                     |
| anisotropy-strength | <mark style="color:$danger;">Not supported</mark>                     |
| transmission        | <mark style="color:$danger;">Not supported</mark>                     |

## Import

Open CLO and select the material you would like to modify. Make sure that the material is set to `PBR` and the type is set to `Fabric_Matte`

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FG8R06VOhmPPHbS9arITp%2Fimage.png?alt=media&amp;token=306a5948-03f8-4106-8b23-fd696bc94264" alt=""><figcaption></figcaption></figure>

Now load in the maps according to above table by clicking on the little icon next to each map. For the roughness, you first have to switch the type to `Map` .&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FENzab1PhNkCYpu7d1WtY%2Fimage.png?alt=media&amp;token=3bc17941-d653-4a8e-89f7-360fedbed657" alt=""><figcaption></figcaption></figure>

### Other Settings

Some additional settings may be needed to be setup manually

| Property                                      | Value          |
| --------------------------------------------- | -------------- |
| `Base Color` ⇒ `Color`                        | White / FFFFFF |
| `Normal Map` ⇒ `Intensity`                    | 100            |
| `Opacity` ⇒ `Opacity`                         | 100            |
| `Reflection` ⇒ `Roughness` ⇒  `Map Intensity` | 100            |
| `Reflection` ⇒ `Roughness` ⇒  `Metalness`     | 100            |

#### Displacement Amount

For the `Displacement Map` you would need to setup an additional `Amount (mm)` value. You can find this in the `info.txt` of the downloaded zip file. Note that this is provided in `cm` but CLO expects `mm`, so you would have to multiply this value by a factor of 10.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FxtrTtR22giNn5QiAwBJk%2Fimage.png?alt=media&amp;token=f752ab95-f3a3-4676-bc52-3c18473f53fe" alt=""><figcaption></figcaption></figure>

#### Reflection Intensity

The reflection intensity is a parameter in CLO that allows boosting or dimming the specular intensity. This should be set to 50 to just use the specular information provided "as-is" from the PBR maps.

## Accuracy

By default, we calculate more maps than CLO can handle. As a consequence, if you have to leave out some of these maps in CLO, this can slightly reduce the fidelity of the CLO visualization compared to the physical material.

If you *only* want CLO suited maps as an end result, we can also directly calculate just this reduced set of maps that CLO supports. This will make the result as good as they can get in CLO.

Please contact us in this case.

## Result

Results are best shown using rendering in CLO. Note, however, that CLO does not support all the information provided by the colormass PBR scanner (such as anisotropy and transmission).

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Flx23fh3gdViGqY32AQYb%2Fimage.png?alt=media&amp;token=d3f7290b-97a3-45c6-95ac-fef0bbb4df0d" alt=""><figcaption></figcaption></figure>


# Blender Addon

## What you need

* Blender 4.2 or newer
* A colormass account (sign up here: <https://www.colormass.com/sign-up>)
* For working with the 3D editor: the 3D editor open in your browser on the same computer (for downloading materials this is not necessary)

## Overview

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F5Qcee2YbppO4ai5UCwwR%2Fimage.png?alt=media&amp;token=93eb1cb7-be03-4317-92dd-60ccb0cfbe28" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FevhdxcCmGrdwkeHU77eS%2Fimage.png?alt=media&amp;token=bf5db11c-b173-4c3b-a7fa-17565599958e" alt=""><figcaption></figcaption></figure>

The colormass Blender addon connects Blender with the colormass platform. With it you can:

* **Download materials** from the platform into Blender, and **upload materials** you create in Blender.
* **Work with HDRIs**: use a platform HDRI as the world of your scene, or upload your own world as a new HDRI.
* **Exchange scenes with the template editor**: send meshes, materials, lights and cameras from a template to Blender, and upload meshes, lights, cameras or whole scenes from Blender back to the template editor.
* **Render like the platform**: set up Blender so that it renders your scene with the same settings as the platform.


# Install and update

## Download the addon

On the platform, open the help menu (question mark icon) and choose **Download Blender Addon**. The version number is shown next to it. You get a zip file; you don't need to unpack it.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F9ElSlcBY9flVSsGpj0yL%2Fimage.png?alt=media&amp;token=0f8e11d4-4294-4fd6-917c-75bc099270b8" alt="" width="368"><figcaption><p>Download Blender Addon</p></figcaption></figure>

## Install it in Blender

{% stepper %}
{% step %}

### Open Get Extensions

In Blender, open **Edit ▸ Preferences ▸ Get Extensions**.
{% endstep %}

{% step %}

### Install the downloaded zip file

Open the menu at the top right (⌄) and choose **Install from Disk…**.

Select the zip file you downloaded.

![The Install from Disk menu in Get Extensions](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/30AuOgnHwkI1UTK3eYY9/images/install-from-disk.png)
{% endstep %}
{% endstepper %}

The addon now appears among your installed extensions as **colormass Platform Interface**.

![The installed colormass extension](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/hF5dPAKlnBrFE1tgx5xL/images/installed-extension.png)

## Allow online access

The addon connects to the colormass platform over the internet, so Blender has to be allowed to go online. Make sure **Edit ▸ Preferences ▸ System ▸ Network ▸ Allow Online Access** is turned on.

![Allow Online Access in the System preferences](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/WMygdyPwhOgemUjqK6Bq/images/allow-online-access.png)

## Find the addon in Blender

Once installed, the addon shows its status at the bottom right of Blender's status bar: your name when you're logged in, and the texture size you work with. Click it to log in and to change your settings. See [*Getting started*](/building-blocks/integrations-and-plugins/blender-addon/getting-started).

![The colormass entry in Blender's status bar](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/78xDBVww9WeWWz40M39R/images/status-bar-entry.png)

## Update the addon

When a new version is available, a red **Install colormass \[Version]** button appears in the status bar, next to the colormass entry. Click it to download and install the new version. Blender shows the download's progress in the status bar, installs the update and tells you when the new version is running. You don't need to restart Blender.

![An available update in the status bar](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/CwHvLQBF43rYhNl6DkRT/images/status-bar-update.png)

The same offer appears at the top of the colormass popup, which opens when you click the colormass entry in the status bar.

![The update offer in the colormass popup](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/RaiojLqfOyFJe1Ab95Nd/images/popup-update.png)

You can also install an update by hand: download the new zip from the platform and install it again with **Install from Disk…**. It replaces the installed version.


# Getting started

## The colormass entry in the status bar

Everything setting the addon needs lives in one place: the colormass entry at the bottom right of Blender's status bar. It shows your name when you're logged in, and the texture size you work with.

![Blender with the colormass entry in the status bar](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/1vRx3rwifzPyp8xnXabE/images/blender-overview.png)

Click the entry to open the colormass popup. The same settings also appear under **Edit ▸ Preferences ▸ Add-ons ▸ colormass Platform Interface**.

## Log in

Enter the email address and password of your colormass account, then click **Log in**. The addon remembers your login, so you only need to do this once per computer.

![Logging in from the colormass popup](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/xmTNX1wGrmJHBQO38llk/images/popup-login.png)

## Your settings

Once you're logged in, the popup shows:

![The colormass popup when logged in](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/hRWea4bZsHVAseofXH1l/images/popup-connected.png)

* **Template editor:** whether a template editor is connected, and on which platform it works. From here you can upload objects or send the world to it. See [*Scenes*](/building-blocks/integrations-and-plugins/blender-addon/scenes).
* **Your name**, with a button to log out.
* **Organization:** the organization that new materials and HDRIs you upload belong to.
* **Texture size:** the largest size at which downloaded textures are used in the Blender materials: Original, 8K, 4K or 2K. Textures are always downloaded in original resolution and then scaled to the target resolution. Uploads always send the original maps (so no information is lost). When you change the size, the addon switches the maps of the open file right away.&#x20;
* **Cache folder:** where the addon stores downloaded textures.

## Where to find the addon

Besides the status bar, the addon adds a **colormass** panel wherever you need it:

| Where                                                                     | What you do there                          |
| ------------------------------------------------------------------------- | ------------------------------------------ |
| **Shader Editor ▸ Sidebar (N) ▸ colormass tab**, for an object's material | Download, create and upload materials      |
| **Shader Editor ▸ Sidebar (N) ▸ colormass tab**, for the world            | Download and upload HDRIs                  |
| **Properties ▸ World**                                                    | The same HDRI tools                        |
| **Properties ▸ Object**, for a mesh, light, camera or curve               | Upload the object to the template editor   |
| **Properties ▸ Render**                                                   | Set up Blender to render like the platform |

## Transfers

Downloads and uploads run in the background, so you can keep working in Blender. Their progress shows in the status bar, and the ✕ button next to it cancels them.

![A running upload in the status bar](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/ClweAIKNBO7J6cFOeNgW/images/transfer-progress.png)


# Materials

All material tools are in the **Shader Editor**: open the sidebar with **N** and choose the **colormass** tab. The **Material** panel works on the active material of the selected object.

## Download a material

Every material on the platform has a number, its Material ID. You find it in the material's dialog on the platform:

![The Material ID in the platform's material dialog](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/OPlNBwQQNe24pUiyo4Kg/images/material-id-on-platform.png)

{% stepper %}
{% step %}

## Select the object

In Blender, select the object that should get the material.
{% endstep %}

{% step %}

## Enter the Material ID

In the **Material** panel, enter the **Material ID** and press Enter. The panel shows the material's name and organization.
{% endstep %}

{% step %}

## Pick a revision

Pick a revision from the list (v1, v2, …). The newest one is selected.
{% endstep %}

{% step %}

## Download the material

Click **Download selected material revision**.
{% endstep %}
{% endstepper %}

![A downloaded material in the Shader Editor](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/nkms0rpo4tUxxwyVRUc1/images/material-panel.png)

Blender shows the download's progress in the status bar: how many textures are done, and the current file. The ✕ button cancels it.

![A running download in the status bar](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/bgv7pppxEGjccwWmPcR2/images/download-progress.png)

Once everything has arrived, the material replaces the object's active material. If the object has no material yet, the addon creates one. From then on it works like any other Blender material. The textures are stored in your cache folder and reused, so a material you download again is ready at once.

A downloaded material remembers where it came from: the panel shows its **Material Revision ID**.&#x20;

## Create and upload a material

### A few things to know first

Your material is rendered on the platform, not on your computer, so the platform needs its own copy of everything the material uses. Anything that only exists on your computer, such as an image on your drive, has to be uploaded along with the material. The colormass nodes take care of that. Add them from the **Add Colormass node** menu:

![The Add Colormass node menu](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/lEnhQpP4jN97HKDAGvLW/images/add-node-menu.png)

* **Colormass BSDF Principled:** the shader the platform renders. Use it in place of Blender's Principled BSDF.
* **Colormass Scanned Transmission:** for scanned materials that let light through.
* **Colormass Texture Set** and **Colormass Texture Set From Images:** a full set of maps in one node.
* **Colormass Texture From Set:** a single map in one node.

### Images go into Texture Set or Texture From Set nodes

Blender's **Image Texture** node only points at a file on your drive, so the platform can't use it. Every image goes into one of the two colormass texture nodes instead.

In this fabric material, one **Texture Set** holds the complete set of scanned maps: colour, metalness, specular, roughness, anisotropy and normal. Each output feeds the matching input of the Colormass BSDF Principled. A separate **Texture From Set** holds a dirt mask. It isn't part of the fabric's set, and it only decides where a darker colour is mixed over the fabric's colour:

![A Texture Set and a Texture From Set node in a material](https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FAnbomnHNNEsMOWMkmkJf%2Ftexture-nodes.png?alt=media\&token=fb35934c-9fcb-4e84-9de4-e2f6c8cb0c4a)

#### Texture Set

A Texture Set is one node holding a full set of PBR maps, such as color, normal and roughness.

* **Colormass Texture Set** adds a set that is already on the platform. Leave **Texture set ID** empty to choose from the sets of this material, or enter another texture set's ID to use its maps.

  ![Adding a texture set from the platform](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/6cl4TZyJEnwzkQH3OFSl/images/texture-set-dialog.png)
* **Colormass Texture Set From Images** makes a new set from your own files. Choose the maps in the file browser. The addon guesses from each file name which map it is, and how its colours are to be read. Check the guesses, then enter how large the texture is in the real world.

  ![Adding a texture set from your own images](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/HzIYJnKgGmqWwMOdao5U/images/texture-set-from-images.png)

#### Texture From Set

A Texture From Set is one node holding a single map. **Colormass Texture From Set** takes either one map out of a texture set on the platform (**Texture set**) or one image from your drive (**Image file**). For an image, say which map it is, how its colours are read, and its real-world size.

![Adding a single map from an image file](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/WbZaFJrpev8xSx4N6had/images/texture-from-set-dialog.png)

#### When to pick which?

If the maps belong together and describe the same surface, like a stack of PBR maps, use a Texture Set. Use a Texture From Set when you need one map on its own, for example as a mask or for bump.

Either way:

* **All maps of a set need to have the same resolution.** The dialog tells you if they don't.
* **Every texture needs its real-world size** in centimetres. This is the size it gets on the platform. Enter the width, and the height follows from the image's proportions.
* **You can build first and upload later.** The nodes don't need the material to exist on the platform yet. Your images are uploaded with the material's next revision.

### Convert a material you built with Blender's nodes

You don't have to rebuild an ordinary Blender material. If it uses Blender's Principled BSDF or image textures, the panel offers **Prepare material for the platform**:

![A material built with Blender's nodes](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/YyfEVYALNEVpMbmtBnAs/images/material-local.png)

Before it changes anything, the addon lists what it will do, including settings the colormass BSDF handles differently:

![The Prepare dialog](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/5BN4CwpqFQYIfkZfkg9v/images/prepare-dialog.png)

* Blender's **Principled BSDF** becomes the **Colormass BSDF Principled**, and your settings come across with it.
* Every **Image Texture** becomes a **Texture From Set** node. The rest of the node tree stays as it is.

![The same material, prepared for the platform](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/QMZhZ7FqWaUUAcFj8uo8/images/material-prepared.png)

Every image texture needs a **Mapping** node in front of it. The addon reads the texture's real-world size from that node's Scale. Mapping nodes of type Point become type Texture, so the texture stays where it was. If an image texture has no Mapping node, the addon tells you which node to fix, and changes nothing until every node can be converted.

To prepare all materials of an object at once, use the same button in **Properties ▸ Object ▸ colormass**.

### Upload

{% stepper %}
{% step %}

## Create a new material

For a new material, click **Create new material**. Give it a name and choose the organization it belongs to. This creates the material on the platform, still without a revision.

![Creating a new material](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/es1roB6iJIL1qD37OE60/images/create-material.png)
{% endstep %}

{% step %}

## Upload a new revision

Click **Upload new material revision**. The addon uploads the material as a new revision, together with any of your own images it uses.
{% endstep %}
{% endstepper %}

To update a material that is already on the platform, download it, change it, and click **Upload new material revision** again.

When you upload meshes to the template editor, the addon can upload their changed and new materials along with them. See [*Scenes*](/building-blocks/integrations-and-plugins/blender-addon/scenes).


# Scenes

Blender and the template editor can exchange scenes in both directions: send a template or part of it to Blender, and upload meshes, lights, cameras, curves or whole scenes from Blender back into the template.

## Connect

{% stepper %}
{% step %}

## Open the template

Open the template in the template editor, in a browser on the same computer as Blender.
{% endstep %}

{% step %}

## Connect to Blender

In the scene viewer's options menu, turn on **Connect to Blender**. The menu shows **Connected** once Blender answers.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FhANFRzXoNUiPicZJK7aF%2FUnsaved%20Image%201.jpg?alt=media&amp;token=ad9fd1e4-97e7-4c21-990b-90ba72032f53" alt=""><figcaption><p>Connect the template editor to Blender</p></figcaption></figure>
{% endstep %}
{% endstepper %}

In Blender, the colormass entry in the status bar shows a link icon, and the popup says which platform the template editor works on.

![A connected template editor in the colormass popup](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/hRWea4bZsHVAseofXH1l/images/popup-connected.png)

{% hint style="info" %}
Only one Blender can be connected at a time. If you have several open, the template editor connects to the one you started first.
{% endhint %}

## Send from the template editor to Blender

Right-click a node in the template tree and choose **Send to Blender**. The option appears on every node that has something Blender can show, on the node itself or below it: a group sends everything in it.

The dialog lists what will be sent. Uncheck **Include materials** to send the meshes without their materials.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F4MLKB6U0ckHSzfDN1XNB%2FUnsaved%20Image%201.jpg?alt=media&amp;token=a58450fc-fcb5-42d4-b468-a6051bcd50e3" alt=""><figcaption><p>Send scene objects to Blender</p></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FmZSn62HhMseTSUgEGebo%2FUnsaved%20Image%201.jpg?alt=media&amp;token=98588a4a-4866-4f10-af62-2986864f4920" alt=""><figcaption><p>Decide what should be sent</p></figcaption></figure>

What arrives in Blender:

* **Meshes** as they were uploaded, with their subdivision as a Subdivision Surface modifier.
* **Materials** from the platform. Without them, each material slot gets the platform's default material. Decals arrive with their mask and colour overlay.
* **Curves** as Bezier curves.
* **Lights and cameras.**
* **HDRI lights**, which become the scene's world.
* **Render settings** from the Render and Post Process nodes and the cameras. Blender lists what would change and asks before changing anything. See [*Rendering*](/building-blocks/integrations-and-plugins/blender-addon/rendering).

Each send gets collections of its own that follow the template's groups, so objects you send again don't mix with those you sent before. The template editor fetches the materials itself, so Blender doesn't need to be logged in for a send.

Customer accounts can send products, meaning templates of type Product.

## Upload one object

Select a mesh, light, camera or curve and open **Properties ▸ Object ▸ colormass**. The upload button sends the object to the connected template.

![The colormass panel for a mesh in the Object properties](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/xn3Mxcx2g4V2zKdnNNX6/images/object-panel.png)

* **Meshes:** the upload options decide how the mesh arrives:
  * **Center Origin:** centers the mesh around its bounding box, instead of keeping its current origin.
  * **Weld Vertices:** merges repeated vertices, which avoids artifacts when the mesh is subdivided.
  * **Convert to World Space UVs:** the platform scales the uploaded mesh's first UV map to match its real surface size. The mesh in Blender stays as it is.
  * **Create Displacement Map Slot:** adds a UV map for displacement maps.
* **Lights:** area lights (square or rectangle), point lights and sun lights.
* **Cameras:** perspective cameras.
* **Curves:** a curve is laid onto a mesh. First select that mesh in the template editor; the panel shows which mesh the curve will lie on.

The **Scale UVs to World** button scales the UVs of the selected mesh in Blender itself, so they match the mesh's size in the scene.

## Upload several objects or a whole scene

Click **Upload Objects** in the colormass popup, or **Upload Several Objects** in the Object properties. The dialog shows what will go to the template editor before anything is sent.

![The Upload Objects dialog](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/IChpWMMMgf2se98PpZNa/images/upload-objects.png)

* **Selected / Active collection / Whole scene:** which objects to upload. Each collection becomes a group in the template. Objects that don't render in Blender are left out.
* **World as HDRI light:** adds the world as an HDRI light. The dialog tells you whether the platform already has the HDRI or will get it as a new one. If the platform can't take the world, the dialog says why.
* **Render settings:** sets the template's samples, resolution percentage and, where the platform has it, tone mapping. It also lists what the platform renders differently from your scene. See [*Rendering*](/building-blocks/integrations-and-plugins/blender-addon/rendering) for more details.
* **Mesh options:** as for a single mesh.
* **With materials / Without materials:** with materials, each zone of a mesh gets the platform material its slot holds. Without them, the zones stay empty and are named after the materials.
* **Also upload changed and new materials:** uploads a new revision of every material you changed, and creates the ones the platform doesn't have yet. The list shows what happens to each material.

The upload sends everything to the platform the template editor works on. If the upload creates materials or HDRIs, the addon has to be logged in to that same platform. Choose the organization they belong to in the dialog.


# HDRIs

The HDRI tools are in **Properties ▸ World ▸ colormass HDRI**. When the Shader Editor shows the world, you'll find the same tools in its sidebar's **colormass** tab.

![The colormass HDRI panel in the World properties](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/FTrwIcv8G9B1hIfY3S3q/images/world-panel.png)

## Use a platform HDRI as the world

{% stepper %}
{% step %}

## Enter the HDRI ID

Enter the **HDRI ID**, the number of the HDRI on the platform. The panel shows its name and organization.
{% endstep %}

{% step %}

## Download the HDRI

Click **Download HDRI as world**.
{% endstep %}
{% endstepper %}

The HDRI becomes the world of your scene, set up the way the platform renders it. Two node groups hold the settings you know from the platform's HDRI light:

* **HDRI Direction:** rotation and mirror.
* **HDRI Light:** saturation and intensity.

![A platform HDRI as the world, in the Shader Editor](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/R9sJaXvourZ4jez1DtBO/images/world-nodes.png)

The panel shows which HDRI the world uses, for example "Shows HDRI 15 from Production".

## Use your own HDRI file

Click **HDRI World From File** and choose an EXR or HDR file. The addon sets it up as the world with the same two node groups, so rotation, mirror, saturation and intensity are at hand.

## Upload a world as a new HDRI

Click **Upload World as New HDRI**, give the HDRI a name and choose its organization. This creates a new HDRI on the platform from the image the world shows. HDRIs already on the platform stay as they are.

![Uploading the world as a new HDRI](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/RniQD861FZqMMqTSNp6u/images/hdri-upload.png)

Only the image becomes the HDRI. Rotation, mirror, saturation and intensity are settings of the HDRI light in a template. They go along when you send the world to the template editor.

## Send the world to the template editor

Click **Send World to Template Editor** to add the world to the connected template as a new HDRI light, with its rotation, mirror, saturation and intensity. If the platform doesn't have the image yet, the addon uploads it as a new HDRI first. For sending, you need to connect the template editor, see [*Scenes*](/building-blocks/integrations-and-plugins/blender-addon/scenes).

## What the platform can take

The platform's HDRI light shows one image, which it can turn, mirror, desaturate and brighten. The addon refuses a world that does more, and tells you why. A world can be uploaded or sent when:

* it uses nodes, with a single Background shader and no volume;
* it shows one Environment Texture with an EXR or HDR file in equirectangular projection, read as linear;
* the image is only rotated about its centre or mirrored, not moved or stretched;
* colours change only in saturation and brightness.

Worlds set up with the colormass tools always meet these rules.


# Rendering

The platform renders every template with Cycles and the same fixed render settings. The addon can set Blender up the same way, so a scene looks in Blender the way it will look on the platform. The goal is the same settings, not identical pixels: renders on both sides stay close but aren't matched pixel for pixel.

## Render Like the Platform

**Properties ▸ Render ▸ colormass** tells you whether your scene renders with the platform's settings, and how many settings differ.

![The colormass panel in the Render properties](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/I39CG9E1jIeJAlivwHgp/images/render-panel.png)

Click **Render Like the Platform** to see which settings would change. Nothing changes until you click **Apply**.

![The Render Like the Platform dialog](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/gcMdMnz3whCmttRo0de6/images/render-like-platform.png)

What the addon sets:

* **Cycles on the GPU.** If no GPU is set up under Preferences ▸ System ▸ Cycles Render Devices, the dialog tells you.
* **Light paths:** 32 bounces of every kind, and indirect light clamped at 10.
* **Sampling:** adaptive sampling with an automatic noise threshold, the light tree, and the Tabulated Sobol pattern.
* **Film:** transparent background and glass, and a Blackman-Harris pixel filter of 1.5 pixels.
* **Denoising:** OpenImageDenoise with albedo and normal passes.
* **Colour management:** the Standard view transform, no look, and no curves or white balance. Khronos PBR Neutral stays, since the platform has it too.
* **Materials:** emission sampling Front and Back for all materials, and Displacement Only for materials with displacement.
* **Point and spot lights:** Soft Falloff off, since the platform's point lights are spheres.

## Render settings from the template editor

When you send (see [*Scenes*](/building-blocks/integrations-and-plugins/blender-addon/scenes)*)* a template to Blender that has a Render node, a Post Process node or a camera, Blender shows which settings would change and asks before changing them:

![Render settings sent from the template editor](https://content.gitbook.com/content/v3R7xjvJcsIFNxg1zMmq/blobs/BEjY4w8rj141g2eeGQla/images/sent-render-settings.png)

Besides the platform's render settings, these come from the template:

* **Resolution and exposure** of the camera. If more than one camera arrives, choose which one the scene takes them from.
* **Samples and resolution percentage** of the Render node.
* **Tone mapping, exposure and white balance** of the Post Process node, which is what the platform's renders use. Without a Post Process node, the camera's tone mapping is used.

## Tone mapping

Only some of the platform's tone mappings exist in Blender, and the other way round:

| Platform    | Blender view transform |
| ----------- | ---------------------- |
| Linear      | Standard               |
| PBR Neutral | Khronos PBR Neutral    |

The platform's other tone mappings, such as Filmic, have no Blender counterpart. Blender's AgX and Filmic have none on the platform, so the tone mapping stays as it is when you upload a scene that uses them.

## Uploading render settings

When you [upload](/building-blocks/integrations-and-plugins/blender-addon/scenes#upload-several-objects-or-a-whole-scene) a scene with **Render settings** checked, the dialog lists everything the platform renders differently from your scene:

* A view transform, look, curves, white balance or display device the platform doesn't have.
* Compositing nodes, which the platform doesn't use.
* Shadow catcher and holdout objects.
* Bokeh blades or ratio on the camera.
* How many render settings differ. **Render Like the Platform** lists them.


# Units and scale

The platform works in centimetres. Blender works in the units of your scene: metres, unless you changed the **Unit Scale** under **Properties ▸ Scene ▸ Units**.

You don't need to change anything. The addon converts between the two in both directions:

* Positions and sizes of objects
* Lengths in materials, such as displacement height and the real-world size of textures
* The size and brightness of lights, so a light shines as brightly on the platform as in Blender

Lights from Blender 5 that use **Exposure**, **Temperature**, or have **Normalize** turned off arrive on the platform with the same brightness and colour.


# Troubleshooting

## Upload Objects and Send World are greyed out

No template editor is connected. Turn on **Connect to Blender** in the template editor. Only one Blender can be connected at a time: close other Blender windows, or use the Blender you started first.

## An object is left out of the upload

The upload dialog lists every object it leaves out, with the reason:

* **The mesh has no UV map.** Unwrap it before uploading, even if no texture is applied to it.
* **The mesh is a decal.** The template editor makes decals itself from the mesh they lie on.
* **The object is hidden from some ray types.** Turn its ray visibility back on in **Properties ▸ Object ▸ Visibility**. A light may be hidden from the camera.
* **The object doesn't render.** Objects and collections disabled for rendering are left out.

## The world can't be uploaded

The platform's HDRI light shows one EXR or HDR image, turned and mirrored, with saturation and intensity. The addon names what the world does beyond that. See [*HDRIs*](/building-blocks/integrations-and-plugins/blender-addon/hdris) for what the platform can take.

## A render in Blender looks different from the platform

Open **Properties ▸ Render ▸ colormass**. If settings differ, **Render Like the Platform** lists them and sets them. Check the tone mapping as well: only Standard and Khronos PBR Neutral exist on both sides.

## A download or upload takes too long

Its progress shows in the status bar. The ✕ button next to it cancels it.


# Blender Addon

The colormass Blender addon allows downloading materials from the platform to Blender and also creating materials within Blender and uploading them to the platform.

## Install

The addon ships as one universal zip covering Windows, Linux and macOS. It can be downloaded directly from the platform by clicking on the question mark icon:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F9t1eLtmBRrE5Prj9WJud%2FUntitled%20design%20(23).png?alt=media&amp;token=3333d991-3a9a-49a9-92ad-2b8c6d136cfe" alt="" width="368"><figcaption></figcaption></figure>

In Blender, open Edit ▸ Preferences ▸ Get Extensions, click the ▾ at the top right and choose Install from Disk…, then pick the downloaded Zip file.

It appears in the list as *colormass Platform Interface.*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FeS8ZYNG0Q6QWFgVct5l6%2Fimage.png?alt=media&amp;token=1edecb61-cf39-43fc-b71a-aeef97c61df9" alt=""><figcaption></figcaption></figure>

Turn on Preferences ▸ System ▸ Network ▸ Allow Online Access. The addon declares the network permission and can reach the platform only with this enabled.

## User Interface

Open a Shader Editor, press `N` and go to the colormass tab. Under `Settings`, enter your email and password and press `Log in`. The panel then shows your name with an `✕` to log out.

Press `Select cache folder` and choose where downloaded textures should live. Everything the addon fetches is written there and reused.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FCw6LPF4AabMxlF0FOEIE%2Fimage.png?alt=media&amp;token=0fab44f6-99b9-460e-9da3-d5391f14f7b6" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Updating later.** When the platform holds a newer build, the colormass panel shows *“colormass 3.x.x is available”* with an Install update button.
{% endhint %}

## Download a material

Select the object in Blender whose material you want to replace, so the Shader Editor shows its node tree.\
Type the platform’s id into `Material ID` — the digits from its ID, e.g. `12345`. These can be copied from the material dialog of the platform.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fm7cI6Cd4LvMyDOoM0veK%2Fimage.png?alt=media&amp;token=0e88c515-7daa-4dce-b976-747b3a7f5e47" alt=""><figcaption></figcaption></figure>

After having entered the `Material ID` in the addon UI and pressed enter click the revision list (it reads the revisions as v1, v2, ...) and choose the one you like to download, most often it will be the latest one.

Press `Download selected material revision`. Two progress bars appear — the whole job and the current file — with `Cancel` beside them. All downloaded Textures land in your cache folder. The downloaded material graph replaces the active material, when everything was downloaded. You can then use this material as any arbitrary Blender material in your workflow.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FJA2S3hJ2D5A3gvYhEydg%2Fimage.png?alt=media&amp;token=0303b0d1-7ba2-4b76-9290-0faaa8e217f6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FPGNRt0QgDQVQqztbSamr%2Fimage.png?alt=media&amp;token=e41c4333-44c8-4693-a992-3b397a062fca" alt=""><figcaption></figcaption></figure>

## Create and upload a new material

You can also create your own material just as any other Blender material and upload it to the platform to make it available there. To upload, you can create a new material using the `Create new material` in the `Material` panel. During the creation you can choose a name for the material on the platform and link it to a particular organization. Once created, you can upload it by clicking the `Upload new material` revision button.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FC6YV3LnFJbZpwrOYczU9%2Fimage.png?alt=media&amp;token=89b9d6ff-753a-46af-87af-4393db3e17a2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FYp6mEjWlrBYtHPp20PHE%2Fimage.png?alt=media&amp;token=d4956b7c-a6b8-4f5f-a50a-b7b3a344b0d4" alt=""><figcaption></figcaption></figure>

**A few things to know first**

Your material is rendered on the platform, not on your machine, so the platform needs its own copy of everything it uses. Anything that only exists on your computer — an image on your drive, for instance — has to be uploaded first.&#x20;

**Images need to be either `Texture from Set` or `Texture Set`**

A normal Blender native `Image Texture` node only points at a file on your drive, so every image has to go into one of the two colormass nodes instead:

* **Texture Set** — one node holding a full set of PBR maps: color, normal, roughness, ... Add it from *`Add Colormass node` ▸ `Colormass Texture Set`* to use a set that is already on the platform, or *`Colormass Texture Set From Images`* to use your own files.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FsMjJ14QyDROx71XYaWaG%2Fimage.png?alt=media&amp;token=d1a7bb3e-ee99-44a5-8989-34eea3269e3b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FLvbvMbgYI1keiNGuYaPn%2Fimage.png?alt=media&amp;token=507d7391-53f1-4053-86e5-1f3646be929f" alt=""><figcaption></figcaption></figure>

* **Texture from Set** — one node holding a single map. Add it from *Add Colormass node ▸ Colormass Texture From Set*, either taking one map out of a set or picking one image from your drive.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FIAtyLq48nv4anQcAjXsp%2Fimage.png?alt=media&amp;token=8ed2a9e4-1553-418b-aadd-76adeb4d5e19" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FDeOZmPD04tnzanp5qta0%2Fimage.png?alt=media&amp;token=9d92a8cd-8647-4ba5-b6bc-20c6051592c3" alt=""><figcaption></figcaption></figure>

**When to pick which?**

If the maps belong together and describe the same surface, use a `Texture Set`, e.g. a stack of PBR maps.

Use a `Texture from Set` when you only need one map on its own — e.g. as a mask or as bump.

Either way you can build the material first and upload later; the nodes do not need the material to exist on the platform yet. Two rules apply to both: all the maps in a set have to be the same resolution, and you have to say how big the texture is in the real world, in centimeters.&#x20;

**Converting the textures of an existing material**

If you already have an ordinary Blender material, you do not have to rebuild it. Press **`Replace image textures`** in the Material panel and the addon swaps its image textures for colormass **`Texture from Set`** nodes, leaving the rest of the graph as it is.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fw9Aq2vSiPoW2e5lVOaKh%2Fimage.png?alt=media&amp;token=4e302c0a-9fc0-443a-9104-5bd944d28288" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FnF5aPXLLsGUzIG22yC1Z%2Fimage.png?alt=media&amp;token=8552d34e-5213-481c-bb64-5f13c38fbd81" alt=""><figcaption></figcaption></figure>

For that to work, each image texture needs a **`Mapping`** node feeding it, set to *`Texture`* mode. The addon reads the real-world size straight off that node's Scale. If an image has no Mapping node, or one is in the wrong mode, the addon tells you exactly which node to fix.

The images are sent with your next upload, so once everything is converted, press *`Upload new material revision`*.

**Use the colormass Principled BSDF**

Blender's own `Principled BSDF` is not what the platform renders, so use ours. Add it from *`Add Colormass node` ▸ `Colormass BSDF Principled`*, or press **`Replace BSDF`** to swap the one already in your material — your settings come across with it.&#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F9ZJZMm0OqfYhD94SA1nU%2Fimage.png?alt=media&amp;token=6629348c-d065-4c84-921d-dcecd73b6516" alt=""><figcaption></figcaption></figure>


# Blender

The quickest way to download materials to Blender is to use the [Blender Addon](/building-blocks/integrations-and-plugins/blender-addon-1) At the moment, however, this addon is only available to Enterprise Clients and colormass registered users. If you don’t have access to the addon, no problem, you can still use the Blender template provided below.

See the template file here: <https://drive.google.com/drive/folders/1W3loEK8ESVHA-yH49tuhf-41Q2PPjTc9?usp=sharing>

Once you downloaded and imported this material, you can create any other material by replacing the maps with the new textures and changing the values like so:

* The mapping node is set up from the dimensions listed in the *info.txt*
* The displacement is the value divided by 100 (if the scene is in Meters)

<div><figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2Fq5rC9TDFR3ltccdJ72xS%2Fimage%20(5).png?alt=media&amp;token=bc4e5db5-2913-425f-a106-4e607a0f6fb3" alt=""><figcaption></figcaption></figure> <figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FGi6VY1ECndLpFU1pqh9T%2Fimage%20(6).png?alt=media&amp;token=317a4589-64ce-4d5f-9120-31b00cda187c" alt=""><figcaption></figcaption></figure> <figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FJvCVMYYQQuTYWjl6jt1k%2Fimage%20(4).png?alt=media&amp;token=6ad3643d-7340-4df2-99ee-c3c67fd1f49e" alt=""><figcaption></figcaption></figure></div>

{% hint style="warning" %}
The material setup assumes that the model you are applying it to has a real world scale UV.
{% endhint %}


# Introduction

{% hint style="warning" %}
This tutorial builds on the [3D CMS](/building-blocks/products) tutorials. It assumes you already have some **products prepared** (either by colormass staff or by yourself), as they are required to create configurators.
{% endhint %}

In this chapter, we'll start using the 3D assets we created previously in the [3D CMS](/building-blocks/products) chapter, focusing on **generating configurators** of an existing product.

{% embed url="<https://storage.googleapis.com/cm-platform-prod-static/Videos/Docs/Configurator.mp4>" %}

In this section, we'll show you how to create new configurators that you can publish on your website. With the colormass Single Asset System, you can use the same assets for rendering images as you do for creating configurators or AR, eliminating the need to create different assets for each use case. In this chapter, we will use a simple product to create a configurator, adjust its lighting settings, and upload icons to be used in the UI of the configurator.

It's important to note that the tutorial will demonstrate the default UI of the configurator, which you can use to get started quickly. However, the colormass Configurator also offers an API that allows you to connect configurator functions to your own custom UI.

I hope you find these upcoming tutorials exciting as we begin to use the products created in the first chapter.

{% hint style="info" %}
It is possible to seamlessly integrate the configurators into your website. For more information check out the [Configurator](/dev/configurator/introduction) developer documentation.
{% endhint %}


# Create Your First Configurator


# Add a New Configurator

First navigate to the Pictures tab on the platform and there switch to the Projects tab:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FJANVWGxKSWuj2gYAG7Ox%2FUntitled%20design%20(18).png?alt=media&amp;token=490c1de3-0685-40f6-a394-76645fa93a9f" alt="" width="403"><figcaption></figcaption></figure>

If you already see various folders (projects) and sub-folders (sets) then please select a subfolder (set) where you would like to put your configurator. If the folder doesn't exist yet, please create it, by adding a new project and then set:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F7Y3i5C2GfXEoEQkP3TGs%2FUntitled%20design%20(7).png?alt=media&amp;token=5ba58c3e-3b88-427b-9b1d-b700e2fbac09" alt="" width="233"><figcaption><p>Add a new set</p></figcaption></figure>

Once you selected the set you would like to place it in then press the *+ Create* button and click on *Configurator* like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FiNaDs2w8qd06rwwkWD4W%2Fcreate%20configurator.png?alt=media&amp;token=12bd67b3-5954-46e2-9548-0aa7edd3c1c1" alt="" width="381"><figcaption></figcaption></figure>


# Add a Real-Time Scene and a Product

In order to create a configurator you would need to add Lights and a Camera in your new configurator.

You can do this by manually adding:

* A Camera: [Camera](/building-blocks/scenes/camera)
* and Lights: [Light](/building-blocks/scenes/light)

or if you prefer to start with an existing scene that can serve as a starting point go to the *Scenes* button of the top bar, remove your organization filter and search for a real-time scene:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FzFcENjPcCG6aCVFPilKe%2Fimage.png?alt=media&amp;token=5737b872-fdc8-4b02-afac-fcf499a3add1" alt="Select a real-time scene" width="563"><figcaption><p>Select a real-time scene</p></figcaption></figure>

{% hint style="info" %}
If no such a real-time scene exists in your library, please ask your colormass contact person to add one to your library.
{% endhint %}

Once you added the scene please also go to the *Products* button in the top bar and add a &#x20;

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FRltgmWwqvwUzmFLoxSh2%2FUntitled%20design%20(10).png?alt=media&amp;token=c280506b-ecc7-4ca3-935f-9c32d9bbb89d" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
It's very important to note that in these Configurator tutorials we are only showing how to embed a product in an environment and then publish it in a website. Creating variations and product logic is part of the [Products](/building-blocks/products) tutorials and not part of the Configurator tutorials.
{% endhint %}


# Adjust Camera and Lights

If you followed the previous two steps then now you should have the basic setup of a configurator: a real-time scene and a product.&#x20;

You can adjust many things in the configurator to match your exact needs, in this page we will adjust the *Camera* and the *Lights.*&#x20;

## Adjust the Camera

You can freely move around the camera and adjust both the position of the camera and its target. The preview that you can see in the inspector area (left) will be the actual starting point of the published configurator.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FCmmblbUdvksew8pSzdLh%2Fconfigurator1.gif?alt=media&amp;token=54a3d134-e1f0-44b5-88f5-776040ca04b8" alt=""><figcaption><p>Adjust the camera</p></figcaption></figure>

## Adjust the Lights

The same way as adjusting camera you can also move and adjust the lights to achieve the final light setting that you would like to have for your configurator.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FLycqxDLCJtsoumR7EUg5%2Fconfigurator2.gif?alt=media&amp;token=dce4dff6-a663-4c5c-a5e6-ab6c241fbe96" alt=""><figcaption><p>Adjust the lights</p></figcaption></figure>


# Change Basic UI Settings

If you click on the Scene Properties node in your configurator there are various options that you can do. For the purpose of this tutorial lets simply change the UI style to *Icons:*

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F7JpJi7BGBizgn8nBOltC%2Fimage.png?alt=media&amp;token=6b250103-5053-4ea7-af51-288d19be7498" alt="" width="325"><figcaption><p>UI option</p></figcaption></figure>

and also lets change the *Icon Size* to a bigger size:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FrGxuHl6ae59bqZ1U0x2k%2Fimage.png?alt=media&amp;token=800104d3-4997-454d-8626-055b0bb8a0a7" alt="" width="320"><figcaption><p>Icon size</p></figcaption></figure>


# Publish the Configurator

Once you saved your scene you can easily publish your scene using the *Publish 3D* button:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FocLOmrfzH3OuL0qn0Rjw%2Fimage.png?alt=media&amp;token=d955b14b-0171-40cd-917c-28cea33901b0" alt=""><figcaption><p>Publish</p></figcaption></figure>

in the top right corner and click on *Copy configurator URL*.

If you’ve followed these steps correctly, opening the link should display a 3D viewer similar to the one shown below, which can easily be embedded into your website.

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2F6ZVDb13iALMadbOCFTbQ%2Fimage.png?alt=media&amp;token=28d30687-1509-48b2-955f-6bb99f22c361" alt="" width="563"><figcaption><p>First configurator</p></figcaption></figure>

You’ll notice that several elements are missing (e.g., the options don’t have icons uploaded yet), but we’ll cover these details in separate tutorials.


# Upload Icons

As you probably noticed in the [Publish the Configurator](/configurator/create-your-first-configurator/publish-the-configurator) page the configurator by default doesn't include any icons and this would be something that you would need to upload for your own product. To do this you would first need to locate the product whose icon you would like to change.

If you only know the scene of your configurator, you can also find the product by finding your product inside the tree and clicking on its link:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FlX3f4QlnVjdo3Oit8yYc%2Fimage.png?alt=media&amp;token=33997c23-c980-4bdb-be0d-6fb758ed1826" alt="" width="383"><figcaption><p>Link to the template</p></figcaption></figure>

Once you are in the product that you would like to change, simply click on a config variant like so:

<figure><img src="https://1229207575-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv3R7xjvJcsIFNxg1zMmq%2Fuploads%2FydC0hWJUvNB9xV3wbppr%2Fimage.png?alt=media&amp;token=71f4220d-694e-4950-b6b5-c7ea8b623f20" alt="" width="563"><figcaption><p>Config variant</p></figcaption></figure>

and click on the blue Icon field. This will open up a window where you can select a new icon.


# Limit Camera Movements

{% hint style="info" %}
This setting is for configurators only: to limit the angles and zoom levels the user able to explore in the configurator.
{% endhint %}

You can limit the camera movement in the configurators by setting the properties of the camera in the editor. You can set the following two aspect:

* Distance: how far or how close the camera can go
* Angle: how much rotation is allowed

## Distance

You can set the minimum and maximum distance the camera can take if you click on the camera and set the following two values:

<figure><img src="https://colormass.slite.com/api/files/sHhB120S2mI1RS/image.png" alt="image.png" width="375"><figcaption></figcaption></figure>

## Angle

Camera movement in the configurator settings can be limited by setting vertical min/max angles (min and max angle (v)) and horizontal min/max angles (min and max angle (h)). Please note that these angles are in degrees and defined in the spherical coordinate system as the following figure implies:

<figure><img src="https://colormass.slite.com/api/files/Zv7SL4y_hHJ_2V/unbenannt.jpg" alt="Unbenannt.jpg" width="563"><figcaption></figcaption></figure>

To define possible values for the horizontal rotation, the user can set the minimum value of phi by the field *min angle (h)* and the maximum value by the field *max angle (h)*. In the same manner, the set of the possible values for the vertical rotation can be set by the field *min angle (v)* and *max angle (v)*. In this way, the possible viewing angles for those who uses configurator can be defined.

If you click on the camera than you can find these settings here:

<figure><img src="https://colormass.slite.com/api/files/mo2I8G7WgT2-aI/image.png" alt="image.png" width="375"><figcaption></figcaption></figure>

The minimum and maximum vertical angles are from 0 to 180. The screenshot below shows roughly what these values mean:

<figure><img src="https://colormass.slite.com/api/files/moDKsXSXAstqV0/vertical.png" alt="vertical.png" width="563"><figcaption></figcaption></figure>

Values above 180 and below 0 will be clipped. For example you set the maximum vertical angle to 190 degrees, it will be set to 180. Likewise, if you set it to -10 degrees, it will be set to 0.

The horizontal angle goes from 0 to 360 (without any clipping). See screenshot below:

<figure><img src="https://colormass.slite.com/api/files/PHy3Bq7mJuRkbN/horizontal.png" alt="horizontal.png" width="563"><figcaption></figcaption></figure>

The horizontal angle for the camera is 0 degree. If it were 360 degrees, the camera would still be in the same position.

{% hint style="info" %}
Since there is no clipping both setting *min angle (h)* to *0* and *max angle (h)* to 360 and *min angle (h)* to *-180* and *max angle (h)* to 180 will work.
{% endhint %}




---

[Next Page](https://docs.colormass.com/llms-full.txt/1)

