RailClone Reference
RailClone / Reference / Ramdomness

Ramdomness

randomness rollout

Using this rollout we can apply randomness to RailClone objects. All values are defined by each segment, and you must select an item in the Segments rollout to enable the parameters.

Translation/Rotation/Scale

Defines a range of values for translation, rotation and scale by each axis. The transformation is applied in the local coordinates of the segment.

Offset Material ID

Applies an offset value to the material IDs of the geometry. You can define a range of values (from 0 to a specified limit), and two operation modes: Random or Sequence.

The Sequence mode is used only for default segments (see Construction Rules), adding to the material IDs the next value in the sequence and restarting to zero when the upper limit is reached.

random

Traffic barrier using material sequence

If you use multiple materials in a segment but want to randomize only some of them, be sure to duplicate the materials which don't change in the multi-sub, because the offset value is added for each material ID in the geometry. For instance, using the range from 0 to 1 in the following material, will randomize only material B:

multi-material

Mapping

Generates UV coordinates of type "Box" to the the segment. As difference of using the default UV coordinates of the the individual segment, this mapping is seamlessly tiled along the full length of RailClone object.

mapping

Note: this feature is not compatible with Mental Ray when the "Display->VRay/Mental Ray shader" parameter is on. See Best Rendering Practices for more information about the rendering modes.