V-Ray Switch Material can be used to switch between different materials based on a value sampled from a texture. Using only one “Map texture” with a linear gradient from 0 to 1, you can modify this gradient to increase/decrease the probability of choosing a particular material. With the V-Ray Switch Material material you can switch between materials of different types (Advanced V-Ray Material, SSS, Car Paint, Light material, etc.).

Compared to the other Schematic materials (V-Ray Blend Material and the V-Ray Two Sided Material) the V-Ray Switch Material material allows multiple connections to its material slots, since the order doesn’t matter (unless the user wants to modify the probability for choosing a material).

Basic Properties

Name – here you can enter a name for the object.

Layer – If an element was assigned to a layer its layer color will be displayed here. This field reflects the layer color in the Layer Palette. You can drag & drop layers from the Layer Browser or similar layer fields onto this field. You can also assign layers or remove elements from current layers using the menus located behind the small triangle.

Preview Quality – quality of material preview in preview window.

Map Preview Size – Here you’ll find entries from 64×64 (16 KB) to 4096×4096 (64 MB). The value controls the internal resolution of the map — the higher you set this value, the more detailed the map will be in the Viewport. The value has no effect on the rendered result.Proceed with caution when increasing the Map Preview Size. Higher settings require more RAM and increase the file size of the CINEMA 4D scene. OpenGL is also affected because the map previews must be loaded into the graphics card’s memory.

Overridable – when you use Override material options in Global options, you can specify some materials that will no be override, like glasses, curtains etc..it useful for preview vizualization of interiors.

Round Edges – edges of object with this material will be rounded.

Radius – specify a radius (in world units) for the round edges effect. Since the actual geometry is not being changed and only the normals of the faces are affected large values here may produce undesirable effects.

Radius Mode – XXX

Use RayTracing – XXX

Same Objects Only – when enabled, the rounded corners will be produced only along edges that belong to the same object which has the attribute applied. When disabled, rounded corners will be produced along edges formed when the object with the attribute intersects other objects in the scene.

Corners to Smooth – Choose which edges are considered in the calculation. Possible options are:

  • Both – Considers all edges.
  • Convex Only – Only applies Round Edges effect to edges with convex angles.
  • Concave Only – Only applies Round Edges effect to edges with concave angles.

Parameters

Input Value  – the texture which is sampled to switch between the assigned materials based on the value of the texture used.The Input Value channel takes a floating point value in the 0 to 1 range. The amount of connected materials will define the interval of values used to select the different materials. As an example if four materials were connected then the first material would be selected in the 0, 0.25 range, the second material in the 0.25, 0.5 range, the third material in the 0.5, 0.75 range and the fourth material by the 0.75, 1 range.

Map – Using  texture with a linear gradient from 0 to 1, you can modify this gradient to increase/decrease the probability of choosing a particular material.

Use Material – enables or disables use of Material.

Assignment

In this box, you’ll find a list of all objects in the scene that use the selected material. Using the context menu, you can carry out commands on these objects that relate to the selected material. To open the context menu, right-click (Windows) or Command-click (Mac OS) on an object’s name in the list.