This page offers information about the Sampler Info node in V-Ray for Cinema 4D.
Overview
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.
Properties
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.
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.
- Create a V-Ray Material node.
- Create a V-Ray MultiSubTex node and attach it to the Opacity port of the V-Ray Material node.
- In the MultiSubTex General options, set the Mode to Use ID Generator Texture.
- Create a V-Ray Sampler Info node and attach its Transparency Level to the Switch ID Texture slot.
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.
Node Editor Setup
Click on the image to preview it in full size