Versions Compared

Key

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

...

Section
Column
width62%

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  or VRayCurvature.

A common use for VRayExtraTex is to use 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.

UI Text Box
typenote
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 Expand
titleUI Path: ||Display Render Settings button|| > Render Elements tab > Extra Tex
Section
Column
width25%

 

Column
width50%

Multiexcerpt include
MultiExcerptNameRE
PageWithExcerptRender Elements

Column
width25%

 

Image Removed

 

To use render elements, select from the Available render elements column and click the Add button to add the passes you wish to generate at render time. When you render the scene, the added render elements listed in the column on the right, will also render, which can be viewed from the VFB window's channel drop-down menu.

For more information on the parameters on this dialog, see the Render Elements tab page.

Column
width5%

 

Column
width33%

 

...

Section

The parameters for this render element appear in the Attribute Editor under Extra V-Ray Attributes.

 
Column
width62%
55%

Enabled – The render element is 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 is used for rendering the extraTex channel.

Texture– Allows a bitmap or a procedural texture to be connected. This is the default option. A Texture field is available for selection, when this option is selected.
Float Texture – The extraTex produces 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 is 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.

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.

Denoise – Enables the render element's denoising, provided the Denoiser render element is present.

Force lossless compression – When enabled, lossy DWAA/DWAB compression is not applied to the VRayExtraTex data stored in a multichannel exr. This option applies only to multichannel .exr files.

Background Color – Specifies a custom background color.

Column
width5%

 

Column
width33%40%

Image RemovedImage Added


Sample Usage

...

 

Section
Column
width10%

 

Column
width40%

 
UV information from Extra Texture pass

 

Column
width40%

 
Object XYZ information from Extra Texture pass

 

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 Example Workflow

...

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

 

. Here is how to add Ambient Occlusion using ExtraTex render element:

section
Section
Column
width45%
Fancy Bullets
typecircle
  • Open the render settings and go to the Render Elements tab.
  • From the list, find vrayRE_Extra_Tex render element and click on Add. Now when you open the VFB, you can see extraTex in the render elements dropdown.
  • While selecting vrayRE_Extra_Tex, go to the Attributes editor and open the Extra V-Ray Attributes tab. Apply a VRayDirt texture in the Texture slot by clicking on the Image Added icon and selecting it from the list.
  • Adjust the settings of VRayDirt according to your scene.
  • Render the image.

  • In the VFB, go to File,and depending on your preferredcompositing technique, click on Save all image channels to separate files or Save all image channels to single file. You can then open the file(s) in an external compositing or image editing software.

  • In a compositing or image editing software, set the vray_Extra_Tex layer's blending mode to Multiply.
Column
width10%

 

Image Removed 
VRayDirt

 
Column
width40%
45%
Image slider
startIndex1
Panel
borderStylenone

Image Added
VRayDirt
Subdivs = 2 ; Radius = 10

Panel
borderStylenone

Image AddedVRayDirt
Subdivs = 15 ; Radius = 10

Panel
borderStylenone

Image Added
VRayDirt
Subdivs = 15 ; Radius = 0.2

Section
Column
width40%45%
Image Removed

Image Added

Original Beauty Composite 

Column
width10%

 

Column
width

...

45%

...

Image Added

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.