This page provides information on the Extra Texture render element.
The Extra Texture Render Element shows the rendered image with a single texture applied to all objects in the scene. The texture applied to the scene can be a bitmap or a procedural texture such as VRayDirt or VRayCurvature.
A common use for VRayExtraTex is to use VRayDirt as the texture, which creates an ambient occlusion element for use in the composite. In this way, ambient occlusion can be controlled separately during the compositing process.
While a similar result to the VRayExtraTex render element can be obtained by applying the same texture to all objects in the scene and rendering, as usual, such an approach requires additional time spent on reverting to actual materials, saving different versions of the scene, etc. The VRayExtraTex render element provides a quick and easy way to render the scene with a single texture without the extra work.
Note: Specific objects can be excluded from this Render Element by disabling the Generate Render Elements option in the VRayObjectProperties node for the selected object(s).
UI Path: ||Render Settings window|| > Render Elements tab > Extra Tex
The parameters for this render element appear in the Attribute Editor under Extra V-Ray Attributes.
Enabled – The render element will be generated.
Deep output – Specifies whether to include this render element in deep images.
Filename suffix – Appends this value to the name of the channel, followed by the name of the connected texture when an explicit channel name is not specified.
Type – Specifies the type of texture that will be used for rendering the extraTex channel.
Texture– Allows a bitmap or a procedural texture to be connected.
Float texture – The extraTex will produce a floating-point number that masks each object. Connect a vrayUserScalar texture to read custom floating values from vrayUserAttributes per object. Alternatively, some types of geometry can generate or receive custom float values that can also be passed to VRayExtraTex with vrayUserScalar. This is mostly used in compositing package scripts for find-by-id masking. Filtering and AA do not affect VRayExtraTex in this mode. For more information, see the Notes section.
Int texture – The extraTex will produce an integer number that masks each object. Connect a vrayUserInteger texture to read custom integer values from vrayUserAttributes per object. Alternatively, some types of geometry generate or receive custom integer indices that can also be passed to VRayExtraTex with vrayUserInteger. This is mostly used in compositing package scripts for find-by-id masking. Filtering and AA do not affect VRayExtraTex in this mode. For more information, see the Notes section.
Consider for Anti-Aliasing – When enabled, anti-aliasing will be used where possible.
Affect Matte Objects – Sets whether to include matte objects when generating the render element. A matte object is an object that has been assigned a Wrapper Material or VRayObjectProperties with the Matte surface option enabled.
Explicit channel name – Specifies an explicit name for the generated image channel.
Exclude list – Specifies a set of objects to be excluded from the extraTex channel.
Exclude list as inclusive set – Inverts the effect of the Exlude List parameter, making it an inclusive set.
Force 32 bit output – When enabled, stores the Extra Texture render element as a 32-bit float even when writing a 16-bit raw image. This option applies only to multichannel .exr files.
UV information from Extra Texture pass
Object XYZ information from Extra Texture pass
Ambient Occulsion from Extra Texture pass
World Space Normals from Extra Texture pass
Bump Normals from Extra Texture pass
Object Normals from Extra Texture pass
Common Uses - Relighting With the World Point Position and Bump Normals
Bump Normals and World Positions Render Elements are useful for changing the appearance of lighting in a scene in a composite without the need for re-rendering. The example below is a lighting workflow that is used at a composite level to change the lighting in the scene. Note that it does not create any extra shadowing or GI. While the Bump Normal Render Element provides information about how lights will affect each surface; the Point Position element passes the spacial location of each pixel. When used together it allows lights added in composite to react on the pixels as if they were the surface of the model.
World Point Positions
Bump Normals Render Element
Original Beauty Composite
The resulting relit composite
(2 point lights of varying intensities and colors were used along with a directional light)
Common Uses - UV Element Retexturing
By using Maya's SamplerInfo texture with Extra tex, a Render Element can be created to replace objects texture during compositing without the need to re-render the scene.
V-Ray Extra Texture Render Element with SamplerInfo's
U and V information connected to the Red and Green Channels
Original Diffuse Render Element
New Masked Diffuse Render Element
Original Beauty Render
Beauty Composite with new Diffuse Render element
Common Uses - Ambient Occlusion
VRayDirt is useful for changing the appearance of a render in a compositing or image editing software.
Original Beauty Composite
Beauty Composite with VRayDirt composited over in multiply mode
- Filtering and AA are only applied to extraTex when Type is set to Texture. When Type is set to Float texture or Int texture, for pixels where multiple objects are visible, the object that most contributes to that pixel has its ID stored. This is to prevent the mask from breaking around the edges of the objects.