The Effects  used to simulate bloom and glare lens effects by filtering the rendered image with a filter kernel. It uses fast multithreaded technique to compute the result. You can use it with V-Ray Frame Buffer.

To use this tab you need to change mode to Expert.

Lens Effects

Interactive – when this check box is enabled, the bloom and glare effects will be automatically recalculated and applied to the image each time an option is changed.

Bloom

Enable – turns on 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.

Mask Intensity – when this option is enabled, the bloom effect will be applied only around pixels that have a value larger than the number specified in the field to the right.

Mask Object ID – when this option is enabled, the bloom effect will be applied only to objects with the specified ID.

Mask Material ID – when this option is enabled, the bloom effect will be applied only to materials with the specified ID.

Glare

Enable – turns on 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 – this parameter 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.
  • From Lens Effects Settings – takes the camera parameters specified in the Effects 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-RAYforC4D installation in chaosgroup folder.

Turn On Diffraction – this option will turn the diffraction on, 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 F-Stop – the f-stop used to calculate the glare. Larger values produce smaller camera aperture and stronger glare effects.

Camera Blades On – this parameter controls whether the camera aperture has any blades.

Blades – this parameter controls how many blades whether the camera aperture has. This effect directly controls the number of “rays” of the glare.

Blades Rot – this parameter controls the rotation of the of the camera aperture blades.

Mask Intensity – when this option is enabled, the glare effect will be applied only around pixels that have a value larger than the number specified in the field to the right.

Mask Object ID – when this option is enabled, the glare effect will be applied only to objects with the specified ID.

Mask Material ID – when this option is enabled, the glare effect will be applied only to materials with the specified ID.