Versions Compared

Key

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

...

Example: ID Generator Tex


In the following example, a VRayMultiSubTex controls the transparency of an object

...

. The difference from the standard transparency is that here, we can't see the back faces of the object.

The VRayMultiSubTex's Get ID from is set to ID generator tex. The plugged ID

...

generator tex. is a VRaySamplerInfoTex with a Type - Transparency level. Note that the Loop through textures mode must be off.

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 first ID

...

slot. Manually this slot has to be set to a value of 0. You could have more ID slots with values of 1, 2, and 3, etc which represent different depth levels.

The Default Color has to be set to black.

UI Button
colorblue
icondownload
titleSample Scene
urlhttps://drive.google.com/uc?export=download&id=160wq1qydoL89HXINsqLBXDeh5wafRQBd


Section
Column
width20%


Column
width60%

Image Added

Column
width20%


Section
Column
width30%

Column
width40%
Image slider
Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V255

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

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V192

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

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V128

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

Panel
borderStylenone

IDGenTex_Slots1_DefSlot-V0_ID0-V0

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

Column
width30%

...