---
title: "VRayEnmeshMod"
canonical: "https://documentation.chaos.com/space/VMAX/113580194/VRayEnmeshMod"
format: markdown
---
This page provides information on the VRayEnmesh Modifier.


## **Overview**

---

The VRayEnmesh modifier generates a render time patterned geometry over a mesh surface. The modifier can be used to create crochet fabric, chain mail, nets, and anything that requires inflex geometry tiling.

Multiple objects can be included in the modifier's Objects list to form a complex pattern sample and tile together over the mesh surface.

The modifier's gizmo encloses the sample to be tiled. You can adjust it to fit all the listed geometry or crop it conveniently by modifying the size and position of the gizmo. Therefore, the gizmo is also referred as crop box.

V-Ray Enmesh patterns are available in the Chaos Cosmos Browser. *For more information, visit the **[Cosmos page](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113587032)*.


> ℹ️ The VRayEnmesh UI is slightly different in 3ds Max 2018 due to limitations in the Qt embedded version.


**UI Paths:**

||Select a geometry|| >** V-Ray** menu >** Create **>** Modifiers **>** V-Ray EnMesh Mod**

||Select a geometry|| > **Modifiers **menu >** V-Ray** >** V-Ray EnMesh Mod**

||Select a geometry|| > **Command **panel > **Modify **tab > **Modifier List** > **VRayEnmeshMod**



 

## **Object Parameters**

---

<span style="color: #333333">**Add**</span><span style="color: #333333"> – Adds mesh objects to the Objects list. The listed objects form the repeating pattern in accordance with the gizmo setup.</span>

<span style="color: #333333">**Remove **</span><span style="color: #333333">– Removes selected meshes from the Objects list.</span>

<span style="color: #333333">**Remove all**</span><span style="color: #333333"> – Removes all meshes from the Objects list.</span>

<span style="color: #333333">**Crop box size X/Y/Z**</span><span style="color: #333333"> – Sets the gizmo size along X/Y/Z axis.</span>

<span style="color: #333333">**Fit in object space**</span><span style="color: #333333"> – Adjusts the size and position of the gizmo to fit all listed objects.</span>

<span style="color: #333333">**Height %**</span><span style="color: #333333"> – Sets the resulting VRayEnmesh height based on the </span><span style="color: #333333">**Crop box size Z**</span><span style="color: #333333">. 100% means using original crop box height.</span>

<span style="color: #333333">**Height offset %**</span><span style="color: #333333"> – Sets the VRayEnmesh geometry offset along the surface normals based on the </span><span style="color: #333333">**Crop box Z size**</span><span style="color: #333333">.</span>

<span style="color: #333333">**Use mesh UVW mapping**</span><span style="color: #333333"> – When enabled, uses the mapping of the listed objects for shading the result VRayEnmesh. This option is disabled by default and the mapping of the original base mesh object is used for shading. </span><span style="color: #333333">*See the *</span><span style="color: #333333">*[Use mesh UVW mapping example](#UseMeshUVWMappingEx)*</span><span style="color: #333333">*.*</span>

<span style="color: #333333">**Use mesh IDs**</span><span style="color: #333333"> – When enabled (default), shades the VRayEnmesh using the polygon materialIDs of the objects that form the pattern. This comes handy with shading setups that include VRayMultiSubTex or Multi/Sub-Object material. If disabled, the polygon materialIDs of the base mesh object are used. </span><span style="color: #333333">*See the *</span><span style="color: #333333">*[Use Mesh IDs example](#UseMtlIDEx)*</span><span style="color: #333333">*.*</span>


> ✅ You are able to use VRayMultiSubTex and VRayUVWRandomizer for texture variations on a single pattern level of VRayEnmesh with the help of the **By Instance ID** randomization mode.


![image](media://78a816fb-70f5-4608-a7a4-a0f4ea06fc49)


## **Basic Parameters**

---

<span style="color: #333333">**Map channel – Specifies the mapping channel of the base surface to use for pattern tiling.**</span>

<span style="color: #333333">**Tiling U/V**</span><span style="color: #333333"> – Sets a tiling factor for the pattern.</span><span style="color: #333333">* For more information, see the*</span>* **[VRayEnmeshMod Tiling example](#tilingEx)*<span style="color: #333333">*.*</span>

<span style="color: #333333">**Offset U/V – Sets a pattern offset along the base surface local mapping.**</span>

<span style="color: #333333">**Rotation **</span><span style="color: #333333">– Sets pattern rotation around the base surface normal.</span>

**Random offset U/V** – Sets a random offset along the base surface mapping to every pattern in its tile.

<span style="color: #333333">**Use rotation steps**</span><span style="color: #333333"> – </span>When enabled, the random rotation is snapped to distinct angles as formed by using the **Random** **rotation** value as steps count to cover the full 360 spectrum. For example, if Random rotation is set to 4, the pattern mesh is randomly rotated on a 90 degrees step (360/4) - 0, 90, 180, 270, 360 (0). If there is also a Rotation set, for example to 30 degrees, there is a 30 degrees offset - 30, 120, 210, 300, 390 (30).

<span style="color: #333333">**Random rotation**</span><span style="color: #333333"> – Sets random rotation up to the given angle to each pattern around the base surface normal. Rotation happens in positive and negative direction.</span>

<span style="color: #333333">**Step counts**</span><span style="color: #333333"> – Sets rotation steps count when </span><span style="color: #333333">**Use random rotation steps**</span><span style="color: #333333"> is enabled.</span>

![image](media://388d4682-1a16-4ad9-9e90-e41243db2c32)


## > Macro (anchor)

**Examples**

---


### Example: VRayEnmeshMod Tiling


The following example shows how а VRayEnmeshMod is used on a simple plane to coat it with a pattern of torus objects. The pattern is controlled via the **Tiling** parameters and the tori are included in the Objects list.

The **Crop box X**, **Y** and **Z** are set at the following values respectively: 12.6, 17.056, 4.5.

Download the example scene [here](https://drive.google.com/uc?export=download&id=1J57zW3weO4iPA17n4k3xMsUes4ZOqDjA).

![image](media://82df36e6-1925-471c-a04b-77c5744d2d15)


---

The tiling pattern changes considerably when the **Tiling** values change:


![image](media://6fbaacfa-ca64-4b34-9e6a-533803bbe308)


![image](media://af24f015-5d4c-4c7d-88a1-d848a47fed97)


![image](media://4e86941f-e2f4-4a98-b224-1feab8ad9050)



---


### Example: VRayEnmesh Randomization


The following example shows how a VRayUVWRandomizer texture randomizes several other textures on a VRayEnmesh's single pattern level. The VRayUVWRandomizer's randomization mode is set to **By instance ID**.

![3dsMax_Enmesh_randomization_MaterialSetup.jpg](media://a03a3680-2cc6-4b64-8afa-fccdbd7454e1)


---

Texture <span style="color: #202124">variations</span> are visible in the following render:



![image](media://93099984-27f6-4e72-aeef-5a969c977eeb)

---


VRayMultiSubTex can also add variations on a VRayEnMesh's single pattern level. In the following example, the texture's randomization mode is set to **By instance ID** as well.


![3dsMax_Enmesh_patternLevel_MaterialSetup.jpg](media://34a0c4c9-45b3-4a4b-92d2-7ffe44e99976)


---


<span style="color: #202124">Color variations</span> are visible in the following render:


![image](media://c82067ea-99d7-4584-ba68-afdedea73dc3)


---

> Macro (anchor)




### Example: Use Mesh IDs


The following example shows the effect of **Use Mesh IDs** parameter. The scarf geometry has a VRayMtl applied with a VRayMultiSub texture plugged in the Diffuse map slot.


![image](media://f08ec052-9706-47a3-ba95-fab33fb278e6)

![image](media://978bbaa2-2e9a-4875-89c9-5992424d1604)


> Macro (anchor)



---


### Example: Use mesh UVW mapping


This example shows the effect of the **Use mesh UVW mapping** parameter. Keep in mind that the geometry used for pattern has its own correct mapping so that textures are placed and tiled properly on that single geometry. The VRayEnmesh option simply controls whether to use the mapping from the pattern or from the base object.


![image](media://acfb6a6d-d63b-4ae3-a80b-23e3f2b2f8fc)

On the left is the material setup in the Material Editor used for the scarf geometry. On the right is the geometry used as a pattern for the VRayEnmeshMod.


---


The following renders show how the **Use mesh UVW mapping** parameter controls the mapping source for the shading.


![image](media://12b3d908-7273-4336-9f20-64c0ad432e04)


![image](media://99d0a56c-4312-4b58-a0b6-c6cc8f07e1df)


---


And here is the final image with enabled Use mesh UVW mapping.


![image](media://55104f49-af95-4845-96aa-1b8c5e7793a0)

## **Notes**

---


- VRayEnmesh is incompatible with render-time created geometry like displacement and V-Ray Fur.
- When using VRayEnmesh on V-Ray GPU the gizmo’s amount on the Z axis should be slightly greater than the bounding box size of the source object to avoid Z-fighting.