Versions Compared

Key

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

This page offers information about the Sampler Info node in V-Ray for Cinema 4D.

 

Overview


 

Section
Column
width55%
The Sampler Info texture is a color image that provides information about the scene, with the choice to show any of various aspects as color blocks. It provides information about various aspects of the shaded points such as position, normal, bump normal, reflection/refraction vectors and UVW coordinates, which previously were only available through the Extra Texture Render Element.

Sampler Info texture can be used either for world position passes or normal passes. It extracts particular information about the scene, converting the gathered information into RGB data for use in compositing.

Column
width5%

 

Column
width40%

 

Properties


 

Section
Column
width55%
Uv Set Name – Specifies the UVW Channel to render by the name of the UV set.

Uv Index – Selects the UVW mapping channel of the connected Bitmap node

Refraction Ior – Sets the Index of Refraction.

Transform . P – Specifies how to position the map.

Transform . R – Specifies how to rotate the map.

Transform . S – Specifies the scale of the map.

Transform . Sh – Specifies a shear for the map.

Transform . Order – Specifies the order of the rotations.

Column
width5%

 

Column
width40%

 


Example: Creating 2D Transparency with the Sampler Info Node

You can effectively fade out objects in your scene using the V-Ray Sampler Info node. This method guarantees that the entire object is faded, including the internal structures, similar to how a 2D object would fade. Тo achieve this 2D transparency effect, follow the steps or copy the Node Editor Setup from the screenshot.

Section
UI Text Box
Column
width50%
  1. Create a V-Ray Material node.
  2. Create a V-Ray MultiSubTex node and attach it to the Opacity port of the V-Ray Material node.
  3. In the MultiSubTex General options, set the Mode to Use ID Generator Texture.
  4. Create a V-Ray Sampler Info node and attach its Transparency Level to the Switch ID Texture slot.
Column
width50%

5. Go to the Texture List of the MultiSubTex and set the sub-texture's ID to 0.
6. Create a V-Ray User Color node and attach it to the sub-texture's Texture slot.
7. Set the MultiSubTexture's Default color to completely black (0, 0, 0).
8. Apply the V-Ray Material node to your geometry.

Section
Column
width50%

 

Node Editor Setup

Click on the image to preview it in full size

 

 

Column
width45%
Image slider
minLabel3D
startIndex1
maxLabel2D

Comparison between 2D and 3D transparency effect. Notice how the internal structures display in each case.

Panel
borderStylenone

3D Transparency

Panel
borderStylenone

Opaque

Panel
borderStylenone

2D Transparency