Follow this brief guide to generate a V-Ray Extra Texture using either the V-Ray AOV Bind or V-Ray Material Output nodes.
Want to follow along but don’t have a license?
Overview
There are different approaches to generating a V-Ray Extra Texture element from a shader, depending on whether you want to populate a global Extra Texture output or a per-material output:
- via V-Ray AOV Bind VOP node
- via V-Ray Material Output VOP node
V-Ray AOV Bind VOP
The V-Ray AOV Bind VOP is used to export a V-Ray Extra Texture element based on the attached input.
- For each geometry in the scene that needs an Extra Texture, create a material in the |mat| network. Assign each material to its respective geometry.
- Create separate textures for the diffuse color of those materials.
- Create an AOV Bind VOP node for each of the diffuse color textures and plug the textures to the AOV Bind input socket.
- Set the Name parameter for all AOV Bind nodes to, for example, global_my_tex.
- In the |out| network, go to the V-Ray Renderer ROP > Images tab > AOV Binds, and click the +.
- Set the Name 1 parameter to global_my_tex. This will query all AOV Bind VOPs in the scene that share the same Name and put their inputs into a single Extra Texture render element. If the shading network does not have an AOV Bind VOP with the same name, it will remain black for any materials that do not have global_my_tex AOV Bind inside.
If you set different names for each AOV Bind, just add as many AOV Binds entries under the V-Ray Renderer ROP’s Render Elements rollout and type the respective AOV Bind names. - Render.
V-Ray Material Output
- For each geometry in the scene that needs an Extra Texture, create a material in the |mat| network. Assign each material to its respective geometry.
Note that the V-Ray Material Builder automatically creates a V-Ray Output node inside it.
- Create separate textures for the diffuse color of those materials.
- In the AOV tab of the V-Ray Output parameters, click + to create a new AOV entry and set the Name1 parameter. For example, object1_shader_tex.
Repeat this for all materials. Give a different name to each AOV so they appear in different channels.
- Plug the diffuse color texture to the V-Ray Output’s AOV socket. This automatically generates the AOV with the given Name1.
- Render.