Chaos
Important Notice: Due to a high volume of inquiries, our response times may be delayed. We apologize for this, and appreciate your patience as our team works diligently to address your concerns. Thank you for your understanding! If you are experiencing licensing issues related to the Enscape 4.1 release, please visit our detailed FAQ document here

Corona Multi Shader - C4D

Corona Multi Shader - C4D

 

In addition to the below content, see also: Corona Multi Shader at Chaos Docs

 

 

The Corona Multi Shader can be used to create a single material, which will show randomized textures (or solid colors), on each object (formally known as Instance), face, material ID, or based on other modes. The random items are distributed among all the objects using this map. The colors or textures can be blended together using the “Mix amount” parameter. 

 

1. Distribution Modes


Following distribution modes are available:

  • Primitives - each of the items will be distributed on each mesh primitive (triangle):

00_HowToUseMultiShader_Distribution_Primitives.jpg

 

  • Material name - the items will be applied to different materials the Multi Shader is assigned to: 

01_HowToUseMultiShader_Distribution_MtlName.png

 

  • Object - each of the items will be distributed on each of the instances (objects):

02_HowToUseMultiShader_Distribution_Object.jpg

 

  • Material tag index - each of the items will be distributed based on the object’s material ID. In this case, the central logo uses a material with a different material ID than the rest. 

03_HowToUseMultiShader_Distribution_MtlTagIndex.jpg

 

  • Material ID - each of the items will be distributed based on the material’s Buffer ID. This can be set via the advanced tab in each material.

04_HowToUseMultiShader_Distribution_MtlID.png

 

  • Object Buffer ID - each of the items will be distributed based on the object’s Buffer ID. In this case, the three logos in the middle are using different Buffer IDs than the rest. 

05_HowToUseMultiShader_Distribution_ObjectBufferID.jpg

 

  • Mesh Element - items will be distributed randomly on all mesh elements (in case the mesh consists of multiple elements). 
06_HowToUseMultiShader_Distribution_MeshElement.jpg
  • Polygon - items will be distributed randomly on all mesh faces:
    (only available in Corona 8 daily builds and newer)Polygon_Distribution_mode_01.jpg


2. How to use it?


The Corona Multi shader can be used in any material slot (diffuse, reflection level, bump, ...). Any type of map, or a solid color, can be used as an item in the Corona Multi shader.

 

Example usages of the Multi shader include: 

 

Color variation of tree leaves 

Corona Multi shader was used to produce a subtle variation of green between each tree:

07_HowToUseMultiShader_TreeLeaves_A_Sample.jpg

 

Identical colors can be used as both items in the MultiMap. The variation is achieved by increasing the random hue and gamma values:

08_HowToUseMultiShader_TreeLeaves_A_MtlSetup.png

 

 

More distinct variation between the colors can be used to achieve an "autumn" look:

09_HowToUseMultiShader_TreeLeaves_B_Sample.png

 

Material setup:

10_HowToUseMultiShader_TreeLeaves_B_MtlSetup_01.png

 

Additionally, the frequency of each color version can be controlled using the "Frequency" value:

11_HowToUseMultiShader_TreeLeaves_B_MtlSetup_02.png

 

 

Result of the above material setup. The red trees are much more frequent than other variants:

12_HowToUseMultiShader_TreeLeaves_B_Result.png

 

A single texture for the leaves with an increased value in the "Hue Random" settings will distribute a slightly different color across each tree:

13_HowToUseMultiShader_TreeLeaves_C_MtlSetup.png

 

 

Result of the above material setup:

14_HowToUseMultiShader_TreeLeaves_C_Result.jpg

 

 

A "Winter" version of the scene can also be achieved by randomizing the opacity of tree leaves. This way, some of the trees will appear leaf-less:

15_HowToUseMultiShader_TreeLeaves_D_Sample.jpg

 

Material setup:

16_HowToUseMultiShader_TreeLeaves_D_MtlSetup.png

 

 

Texture variation of pebbles

17_HowToUseMultiShader_Pebbles_A_Sample.jpg

 

Material setup:

18_HowToUseMultiShader_Pebbles_A_MtlSetup.jpg

 

 

Different textures on floor tiles

19_HowToUseMultiShader_Tiles_A_Sample.png

 

Material setup - "Batch load textures..." option can be used to quickly load multiple textures as the Multi Shader items:

20_HowToUseMultiShader_Tiles_A_MtlSetup.png

 

Polygon distribution mode in Corona Multi Shader can be used to create variations of texture or color in each polygon of any 3D model:
(only available in Corona 8 daily builds and newer)
Polygon_Distribution_mode.jpg


Material setup:

Polygon_Distribution_mode_mat_setup_Cinema_4D.jpg

 

 

Note that the Corona Multi Shader can be as well used with one item only. 

You can then use hue and gamma values to randomize the colors. 

21_HowToUseMultiShader_Pebbles_B_Sample.png

 

Material setup:

22_HowToUseMultiShader_Pebbles_B_MtlSetup.png

 

 

 

Was this article helpful?
0 out of 0 found this helpful