Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width60%

Get ID from – Specifies the meaning of the ID parameters.

Face material ID – Considers the face IDs of the object when feeding the data (color or texture) to the material.
Object ID – Considers the Object IDs of the object when feeding the data (color or texture) to the material.
Random – Randomly chooses IDs (via the Randomization modes) when feeding the data (color or texture) to the material.
ID Generator Tex – VRayMultiSubTex randomizes textures that allow integer input. See the ID Generator Tex example below.

Seed – Changes the randomization pattern.

Randomization – (active only when the Random mode is selected) Specifies what elements serve as basis for randomizing the colors.

By name – Generates a color index based on the name of the node that the texture is applied to. This allows the color to remain consistent if the object is merged into another scene, or X-Ref'd etc.
By instance ID
– Assigns random colors based on InstanceID (works for Alembic instances, VRayInstancer source objects, VRayEnmesh, and Chaos Scatter).
By object ID
– Assigns random colors based on object's ID.
By face MtlID – Assigns random colors based on material IDs of the object's faces.
By element
 – Assigns random colors based on element (e.g. teapot lid, etc.) IDs of the object.
By particle ID
– Assigns random colors based on ParticleID (works for VRayInstancer source objects and Thinking Particles).
By node handle – Each node in 3ds Max is assigned a unique number (a handle) when it is created. This option generates the color index based on that node ID. It is useful because the node handle survives through scene editing - e.g. if you add/remove other objects, or rename them, you still get the same colors.

By render ID – Assigns random colors based on RenderIDs.

By user ID – Assigns random colors based on user's ID. The user ID is defined through the By user ID settings button, and then from Object Properties > User Defined, where a value for it is selected.
By user ID settings – Active, when By user ID mode is enabled. It defines the user ID (int, float, string).
By tile – Assigns random colors/textures for the tiles generated by the BerconTile plugin. See the ByTile example below.

UI Text Box
typenote

Currently, the By tile option is not supported on V-Ray GPU.

UI Text Box
typenote

When using the By element option to randomize the elements of a VRayPoxy, Optimize for instancing in the V-Ray mesh export dialog needs to be turned on before exporting. The V-Ray mesh export menu can be accessed from V-Ray menu > .vrmesh exporter.

Random Hue/Saturation/Gamma – These three parameters control post-process randomization of output color. Input value is percentage of the HSV/gamma range and specifies the maximum random deviation, where gamma range is fixed to [1/10,10]. See the Random Hue/Sat/Gammaexample below.

ID generator tex. – A slot for a texture when the Get ID from is set to ID generator tex. A VRaySamplerInfoTex could be wired here.

UI Text Box
typenote

VRaySamplerInfoTex could be set to Transparency level. When it is wired to the ID Generator tex slot, the Color swatch in the Default slot has to be set to black if the user wants to produce full transparency.

Slots – Sets the number of sub-textures.

Delete Unused – Deletes disabled slots from the list.

Batch load – Opens a browser window for loading multiple bitmaps at once. The number of loaded textures sets the Slots number automatically. See the Batch Loading of Textures example below.

Loop through textures – (works with Face material ID and Object ID modes) When the objects assigned with VRayMultiSubTex map have IDs outside the interval of valid sub-texture IDs, the Loop through textures option calculates a wrapped version of these IDs that fit in the interval. Then it picks the corresponding sub-texture. For example, if an object with an ID 5 is assigned a VRayMultiSubTex and the interval of valid sub-texture IDs is [1:4], it is looped and is rendered with some of the sub-textures. See the Loop Through Texture example below.

Blend color and texture – Uses the alpha of the sub-textures to blend between the color for the respective material ID and the texture color. When disabled, the texture alpha is returned directly and the color specified in the VRayMultiSubTex texture itself for the given material ID is ignored.

Default slot – (works only in Face material ID and Object ID modes) A default color or texture for objects whose IDs cannot be matched with a sub-texture ID (with or without looping).

ID (1-20) – Specifies a color or a texture to be assigned to the material when it is assigned on an object with the current ID.

Column
width5%


Column
width35%

...

Section
Column
width60%

Add – Opens a file browse window for file selection and adds the selection to the list.

Remove – Removes the selected map from the list.

Move up – Moves the selected map up in the list.

Move down – Moves the selected map down in the list.

ID reassign – Reassigns the IDs of the whole list, i.e. renumbers the maps in order.

Id from file – Uses the IDs given in the file name when adding new maps. The ID number can be specified anywhere in the map file name and must be separated with underscores, hyphens, or full stops. Examples: id6-example.png, text_ID12.jpg, pic.Id03.version.tx

Column
width5%


Column
width35%


Anchor
IDGeneratorTex
IDGeneratorTex

...


Example: ID Generator Tex


VRayMultiSubTex controls the transparency of an object/Get ID from ID generator tex. The ID gen. tex. is a VRaySamplerInfoTex with a Type - Transparency level. The VRayMultiSubTex is used in the Opacity slot of the material and the actual transparency is controlled by the value of the color in the ID 0 Slot. The Default Slot is black, meaning all the range from 0 to 255 will be used. The difference from the standard opacity is that here, we can't see the back faces of the object.

Section
Column
width30%

Column
width40%
Image slider
Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V255Image Added

ID Generator Tex: Slots = 1; Default Slot = V0; ID0-V255

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V192 Image Added

ID Generator Tex: Slots = 1;Default Slot = V0; ID0-V192

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V128 Image Added

ID Generator Tex: Slots = 1;Default Slot = V0; ID0-V128

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V0Image Added

ID Generator Tex: Slots = 1;Default Slot = V0; ID0-V0

Column
width30%



Anchor
ByTile
ByTile

...

Example: By Tile


Section
Column
width11%


Column
width35%

A VRayMultiSubTex with Get ID from: Random and By tile is plugged in the Color 1 slot of a randomized BerconTile Texture node. The Hue, Saturation and the Gamma of the VRayMultiSubTex are not tweaked. There are 15 different brick textures plugged in the VRayMultisubTex slots.

Column
width8%


Column
width35%

A VRayMultiSubTex with Get ID from: Random and By tile is plugged in the Color 1 slot of a randomized BerconTile Texture node. The Hue, Saturation and the Gamma of the VRayMultiSubTex are tweaked - Hue = 2, Saturation = 5, Gamma = 2.5. There are 15 different brick textures plugged in the VRayMultisubTex slots.

Column
width11%


Section
Column
width11%


Column
width35%

Image Added

Column
width8%


Column
width35%

Image Added

Column
width11%




Anchor
batchLoadEx
batchLoadEx

...