This page gives information on the Object ID Render Element. 

 

Page Contents 

 

Overview


The Object ID Render Element isolates individual objects with colors or integer values for compositing purposes. 

In 3ds Max, each object can be assigned an Object ID in the Object Properties dialog's G-Buffer section. This value is also sometimes called the G-Buffer value. Two or more objects in the scene can share the same Object ID.

The Object ID Render Element creates selection masks based on Object ID. This render element either shows each object (by Object ID) in a solid unshaded color, or stores the Object IDs as integer values within the EXR format or V-Ray Image Format file.

The Color (with AA) method supports antialiasing at the edges of objects. The Integer (no AA) method, which assigns an Object ID to each pixel in the render element, does not support antialiasing as each pixel either has an integer assigned to it, or it does not.

More than one VRayObjectID pass can be generated for a single rendering if desired; for example, if you wish to have both solid-shaded color and integer-based render elements for maximum flexibility during compositing.

 




UI Path: ||Render Setup window||  > Render Elements  tab  > Add  button  > VRayObjectID



Parameters


This render element is enabled through the Render Elements tab of the Render Setup window in 3ds Max and displays its parameters in a rollout at the bottom of the window:

 

 

 

vrayVFB When enabled, the render element appears in the V-Ray frame buffer.

deep output – Specifies whether to include this render element in deep images.

output type – The type of output desired:

Integer (no AA) – Object IDs will be exported within the EXR or V-Ray Image format image as an Integer value, one integer per pixel. Colors shown in the V-Ray Frame Buffer are for visual representation only, and are not saved as part of the render element file itself. Antialiasing around the edges of the object or material is not represented.
Color (with AA) – Each object ID renders as a solid color depending on the Object ID set in the 3ds Max Object Properties dialog. A wide range of preset colors is used (red, green, blue, pink, purple, orange, etc.) to accommodate a potentially large number of Object IDs in the scene. The edges of objects or materials are antialiased where they meet other parts of the scene. The colors red, green, and blue will be used first, followed by additional colors if there are more than three Object IDs in use in the scene.


Common Uses


The Object ID Render Element is useful for isolating geometry in a scene based on the Object ID. This means that items can be isolated by use of a matte created from the solid colors within the Object ID pass. In the example below the sofa has an Object ID of 1, the dangling light has an Object ID of 4 and the sideboard has an Object ID of 2.

 

 

Object ID Render Element

 

Matte created in composite by using only the blue channel

 

 

 

Original beauty render

 

Dangling lamp color-corrected using matte created from
Object ID Render Element blue channel (as a mask in composite)

 

 

 

Notes


  • If antialiasing is a needed for a scene, setting output type to Color (with AA) gives the best results.

  • Setting the output type to Integer (no AA) will render slightly faster, although with no antialiasing.