This page provides information on the Lens Effects settings in the V-Ray Frame Buffer.
V-Ray Lens Effects simulates real-world camera lens effects such as bloom and glare. The plug-in uses a fast multi-threaded technique to compute the result and provide immediate update in V-Ray VFB. V-Ray Lens Effects are applied in the effectsResult channel together with other post effects executed over the RGB rendered image.
The Lens Effects fly-out is accessible from the Open lens effects settings button located in the V-Ray VFB Toolbar.
Additionally, V-Ray includes a standalone Lens Effects Generator Tool for composing custom lens filters.
The Lens Effects window can be docked or undocked from the VFB by right-clicking the Open lens effects settings button.
||V-Ray Frame Buffer window|| > VFB Toolbar > Open lens effects settings button
When V-Ray Lens Effects are used, a new channel called effectsResult will be created in V-Ray VFB. The RGB Channel button allows users to easily toggle between the effectsResult and original RGB channel.
Bloom/Glare effect – Enables the V-Ray Lens Effects.
Size – Specifies the size of the filter as percentage of the image's diagonal. For more information see the Size example below.
Bloom – Controls the blend between bloom and glare. A value of 1 forces bloom to be applied to full extent and without any glare. A value of 0 removes the bloom completely and applies only glare. Values in-between blend the two effects proportionally. See the Bloom/Glare example below.
Intensity – Multiplier for the bloom/glare source bright pixels. Increasing the value can boost the effect by simulating up to 20 times brighter source. Values lower than 1 can be used to produce subtle bloom/glare from overbright sources. See the Intensity example below.
Threshold – Sets a minimum value for the rendered pixels to be considered as lens effects source. The Bloom/Glare effect will be generated only regarding pixels with larger value than the specified threshold.
Mode – Determines if the Bloom/Glare effect will be applied to the final image (in the effectsResult channel), stored into a separate render element, or both.
Cold/Warm – When enabled, the Bloom/Glare effect will be toned to cold hues. When disabled, the effects will receive warm hue. The hue shift requires Saturation values larger than 0. See the Cold/Warm & Saturation examples below.
Saturation – When the value is set 0, the effects use the original hue of the bright pixels to create bloom and glare. Larger values intensify the hue set with the Cold/Warm option. See the Cold/Warm & Saturation examples below.
Blades – Sets custom camera aperture blades number to be considered for the lens effects. This parameter directly controls the number of "rays" of the glare.
Blades rotation – Controls the rotation of the camera aperture blades.
Streak blur – Determines the width of the angle at which glare rays spread. The larger the value, the wider the angle glare rays have. If set to 0, rays are directional; if set to 1, glare rays blend together. A value of 1 produces the same results as the Blades option switched off. Observe in the Steak blur example below how values in-between change the glare rays appearance.
Use Obstacle Image – When enabled an obstacle image can be specified. Use it to simulate dirt and scratches on the camera lens. See how this changes the lens effects in the Obstacle Image example below.
Load Filter – Specifies the path to a filter kernel. You can create filters using the Filter generator tool which comes with the V-Ray for Maya installation.
Hardware Accelerated – Enable to calculate lens effects on the GPU. When multiple devices are present, V-Ray will prioritize the best one available.
Interactive – When enabled, the bloom/glare effect will be automatically recalculated and applied after any V-Ray lens effects parameter change.
Update effects – Manually forces the recalculation of the glare and bloom effects.
The Lens Effects were updated with version 4.1 of V-Ray Next. Lens Effects from scenes saved with previous versions of V-Ray will not be loaded and rendered.
Example: Bloom / Glare
Example: Cold/Warm & Saturation
Example: Steak blur
Example: Obstacle Images
Obstacle images used
Size (constant) = 50
Bloom (constant) = 0.5
File Names of Saved Channels
As expected, channels will keep their names as displayed in the VFB when saving them to a single .vrimg or .exr file (using the V-Ray raw image file option from the Frame buffer rollout or the Save all image channels to single file VFB button). The same channel names will be appended to the files when you use the VFB button Save all image channels to separate files.
However, using the Save separate render channels option from the Frame buffer rollout to save all layers as separate files will save the effectsResult channel to a file with the text RGB_color appended to its name, and the RGB channel as origRGB instead.
- When using Deadline for network rendering in combination with Lens Effects, make sure to disable the Local Rendering option when submitting to Deadline. Otherwise, Deadline is not able to save your bloom and glare effects.