Page Contents

 

Overview


The V-Ray Lens Effects are render effect plug-ins used to simulate bloom and glare lens effects. Effects are implemented by filtering the rendered image with a filter kernel. It uses fast multi-threaded technique to compute the result. The Lens Effects menu can be accessed from the V-Ray Frame Buffer | VFB.

The Lens Effects window can be docked or undocked from the VFB by right-clicking the Open lens effects settings button.

 

Bloom Effect


 

 

 

On – When enabled, turns the bloom lens effect on.

Fill Edges – When enabled, adds pixel data outside the edges of the original image. This will remove the darkening around the edges.

Mode – Determines if the bloom will be applied to the RGB image, stored in a separate render element, or both. Storing to a render element only works with the V-Ray VFB.

Weight – Specifies the strength of the interpolation between the filtered image and the original image.

Size – Specifies the size of the filter as percentage of the image's width.

Shape – Specifies the fall off of the filter.

Bloom Mask


Intensity – Enables the control over the bloom mask intensity.

Object ID – Enables the user to specify an object ID number to the bloom mask.

Material ID – Enables the user to specify a material ID number to the bloom mask.

 

Glare Effect


 

 

 

On – When enabled, turns the glare lens effect on.

Fill Edges – When enabled, adds pixel data outside the edges of the original image. This will remove the darkening around the edges.

Type – Specifies how the glare is computed.

From image – Takes the image specified in Glare Image as the filter kernel.
From render camera
 – Takes the necessary parameters from the scene camera used to perform the rendering and automatically generates the filter kernel.
Glare type from camera params
– Takes the camera parameters specified in the below Camera Parameters section and automatically generates the filter kernel.

Mode – Determines if the glare effect will be applied to the final image, stored into a separate render element, or both. Storing to a render element only works when the V-Ray VFB is enabled.

Weight – Specifies the strength of the interpolation between the filtered image and the original image.

Size – Specifies the size of the filter as percentage of the image's width.

Glare Image – Specifies the path to the filter kernel. Available if From Image option is selected. You can create filters using Lens Effects Filter Generator which comes with V-Ray.

Turn on Diffraction – When enabled, procudes colored patterns in the glare.

Use Obstacle Image – When enabled, uses the obstacle image specified by the user.

Camera Parameters


These parameters are used if the Type is set to Glare type from camera params.

F-Number – Specifies the camera f-number used to calculate the glare. Larger values produce smaller camera aperture and stronger glare effects.

Blades – Controls if the camera aperture has any blades and how many they are. This directly controls the rays of the glare.

Bl. Rot – Controls the rotation of the of the camera aperture blades.

Glare Mask


Intensity – Enables the control over the glare mask intensity.

Object ID – Enables the user to specify an object ID number to the glare mask.

Material ID – Enables the user to specify a material ID number to the glare mask.

 

Update Control


 

 

 

Interactive – When enabled, adjustments to the lens effects will be automatically updated in the viewport.

Update effects – When pressed, this button manually updates the lens effects in the viewport.