Versions Compared

Key

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

This page provides information on the Extra Texture render element.

 

Page Contents

Table of Contents
maxLevel3
stylecircle

 

Overview


Section
Column
width45%

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).

Column
width5%

 

Column
width50%

 

 


 

UI Path: ||Render Settings window|| > Render Elements tab > Extra Tex


Attributes 


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.

Filtering – Applies the image filter to this channel. Image filter settings are in the Image Sampler rollout in the VRay tab of the Render Settings.

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.

 

Sample Usage


 

Section
Column
width10%

 

Column
width40%

 
UV information from Extra Texture pass

 

Column
width40%

 
Object XYZ information from Extra Texture pass

 

Column
width10%

 

 


Ambient Occulsion from Extra Texture pass

 

 

Section
Column
width10%

 

Column
width40%


World Space Normals from Extra Texture pass

 

Column
width40%


Bump Normals from Extra Texture pass

 

Column
width10%

 

 


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 is 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.

 

Section
Column
width10%

 

Column
width40%

 
World Point Positions

 

Column
width40%


Bump Normals Render Element

 

Column
width10%

 

Section
Column
width10%

 

Column
width40%


Original Beauty Composite

 

Column
width40%


The resulting relit composite
(2 point lights of varying intensities and colors were used along with a directional light)

 

Column
width10%

 

 

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. 

 

Section
Column
width10%

 

Column
width90%

 

V-Ray Extra Texture Render Element with SamplerInfo's
U and V information connected to the Red and Green Channels

 

Column
width10%

 

Section
Column
width10%

 

Column
width40%

Original Diffuse Render Element

 

Column
width40%

New Masked Diffuse Render Element

 

Column
width10%

 

 

 

Section
Column
width10%

 

Column
width40%

 

Original Beauty Render

 

Column
width40%

 

Beauty Composite with new Diffuse Render element

 

Column
width10%

 

 

Common Uses - Ambient Occlusion 


VRayDirt is useful for changing the appearance of a render in a compositing or image editing software. 

 

Section
Column
width10%

 

Column
width40%

 
VRayDirt

 

Column
width40%


Original Beauty Composite

 

Column
width10%

 

 


Beauty Composite with VRayDirt composited over in multiply mode

 

 

Anchor
Notes
Notes

Notes


Fancy Bullets
typecircle
  • 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.