This page provides information on the Lens Effects settings in the V-Ray Frame Buffer.

 

Page Contents

 

Overview


The VRayLensEffects is a render effect plugin used to simulate bloom and glare lens effects by filtering the rendered image with a filter kernel. It uses fast multi-threaded technique to compute the result. The options can be accessed through the V-Ray Frame Buffer with the Open lens effects settings button.


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

 

 

 



UI Path: ||V-Ray Frame Buffer | VFB window|| > VFB Toolbar > Open lens effects settings button




Bloom Effect


 

 

On – Enables the bloom lens effect.

Fill Edges – Enabling this option will add 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. 

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


The controls in this group control where the bloom effect will be applied to the image.





Intensity – When enabled, the bloom effect will be applied only around pixels that have a value larger than the number specified.

Object ID – When enabled, the bloom effect will be applied only to objects with the specified ID.

Material ID – When enabled, the bloom effect will be applied only to materials with the specified ID.


The Object ID and Material ID parameters are currently disabled.


Glare Effect 






On – Enables the Glare Lens effect.

Fill Edges – Enabling this option will add pixel data outside the edges of the original image. This will remove the darkening around the edges.

Type – Specifies how the glare is computed. The possible values are:

From image – Takes the image specified in Glare Image as filter kernel.
From render camera – Takes the necessary parameters from the camera used to perform the rendering and automatically generates the filter kernel.
Glare type from camera params – Takes the camera parameters specified in the VRayLensEffects render effect itself 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.

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 – Path to the filter kernel. Available if From Image option is selected. You can create filters using the Filter generator tool which comes with the V-Ray for Maya installation.

Turn On Diffraction – Enables the diffraction, producing colored patterns in the glare.

Use Obstacle Image – Enable the use of the obstacle image the path to which is specified in the field below. The obstacle image allows you to draw the aperture shape as wall as any dirt or scratches on the lens which will affect the glare


Camera Parameters


These parameters are used if the glare Type is set to From camera parameters. They enable physical camera settings that are different from the ones used to render the image and thus control the glare separately.

 

 

 

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

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

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

 

Glare Mask


 The controls in this group control where the glare effect will be applied to the image.





Intensity – When enabled, the glare effect will be applied only around pixels that have a value larger than the number specified.

Object ID – When enabled, the glare effect will be applied only to objects with the specified ID

Material ID – when enabled, the glare effect will be applied only to materials with the specified ID


Update Control


 The options in this group control how changes to the bloom and glare effects are updated.




Interactive – Bloom and glare effects will be automatically recalculated and applied to the image each time an option is changed.

Update effects – Manually forces the recalculation of the glare and bloom effects.