The ExtraTex render element allows the user to render the entire scene with one texture mapped on all objects.

To apply the texture you need to create a shader network with the help of one NetworkMaterial and one or several VrayShadingNode nodes.

Non defualt output

If a texture shader has multiple output parameters, then you can connect any of them to the extraTex terminal of the NetworkMaterial node. The connected output parameter will be used for the generation of the ExtraTex render element. See the TexSampler setup for an example.

Simple setup

Bellow you'll find the steps needed to apply a color texture like Checker to all objects in the scene.

  1. Start with a minimal scene setup for V-Ray
  2. Create one NetworkMaterial and name it nm_extra_tex
  3. Add extraTex terminal in the nm_extra_tex node
  4. Create one VrayShadingNode and name it checker
  5. Set the nodeType to 'TexChecker'
  6. Connect checker.out to extraTex terminal of nm_extra_tex
  7. Create one VrayOutputChannelDefine and one RenderOutputDefine nodes
  8. In the VrayOutputChannelDefine set the name parameter to 'checker_tex' and the type parameter to 'extra_tex'
  9. Select the nm_extra_tex node in the Node Graph and shift-drag it with the middle mouse button over to the material parameter in the VrayOutputChannelDefine node
  10. Set the outputName parameter in the RenderOutputDefine node to 'extra_tex'
  11. Set the renderSettings.channel parameter in the RenderOutputDefine node to 'checker_tex'
  12. Render a preview render

 

Resulting rendering

TexSampler setup

TexSampler node is used when you want to generate RenderElements or AOVs that will make it possible to do advanced composing operations on the rendered image. The shader has several output parameters which can provide useful information like world position, normals, facing ratio, uv coordinates, etc.

  1. Start with a minimal scene setup for V-Ray
  2. Create one NetworkMaterial and name it nm_extra_tex
  3. Add extraTex terminal in the nm_extra_tex node
  4. Create one VrayShadingNode and name it sampler
  5. Set the nodeType to 'TexSampler'
  6. Connect sampler.point to extraTex terminal of nm_extra_tex
  7. Create one VrayOutputChannelDefine and one RenderOutputDefine nodes
  8. In the VrayOutputChannelDefine set the name parameter to 'world_pos' and the type parameter to 'extra_tex'
  9. Select the nm_extra_tex node in the Node Graph and shift-drag it with the middle mouse button over to the material parameter in the VrayOutputChannelDefine node
  10. Set the outputName parameter in the RenderOutputDefine node to 'extra_tex'
  11. Set the renderSettings.channel parameter in the RenderOutputDefine node to 'world_pos'
  12. Render a preview render

 

Resulting render