---
title: "Lens Effects Filter Generator"
canonical: "https://documentation.chaos.com/space/VRAY4TOOLS/117637135/Lens+Effects+Filter+Generator"
format: markdown
---
This page contains information about V-Ray's standalone Lens Effects Filter Generator.


## **Overview**

---

The Filter Generator is a tool to create HDR filter kernels for use in the V-Ray Frame Buffer Lens Effects'** Glare Image **parameter.

The V-Ray Lens Effects Filter Generator is based largely on the model presented in * **[Physically-Based Glare Effects for Digital Images](https://www.graphics.cornell.edu/pubs/1995/SSZG95.pdf)*. For a complete list of references, please see the [References ](https://docs-chaos.atlassian.net/wiki/spaces/VRAY4TOOLS4EDIT/pages/110502306)section.

![image](media://b20c5767-31ba-43f3-9c4a-e6e2e511d7c2)


## **Location**

---

The Filter Generator utility is included with the V-Ray installation. See its location according to your host application:

- [V-Ray for Maya](https://docs-chaos.atlassian.net/wiki/spaces/VMAYA/pages/111739600)
- [V-Ray for Houdini](https://docs-chaos.atlassian.net/wiki/spaces/VRAYHOUDINI/pages/113280436)
- [V-Ray for Revit](https://docs-chaos.atlassian.net/wiki/spaces/VREVIT/pages/162038116)
- [V-Ray for Unreal](https://docs-chaos.atlassian.net/wiki/spaces/VRAYUNREAL/pages/116558224)
- [V-Ray for Cinema 4D](https://docs-chaos.atlassian.net/wiki/spaces/VC4D/pages/116850735)
- [V-Ray for SketchUp](https://docs-chaos.atlassian.net/wiki/spaces/VSKETCHUP/pages/155255294)
- [V-Ray for Rhino](https://docs-chaos.atlassian.net/wiki/spaces/VRHINO/pages/116131047)


> Macro (excerpt)
> 
> ## **File Options**
> 
> ---
> 
> 
> ![image](media://7e1cbd7b-267e-42cf-90e8-21fa5bf6c50a)
> 
> 
> 
> The file menu shows options for saving and loading presets and exporting the final filter kernel.
> 
> 
> ## **Radial Symmetric Pattern Parameters**
> 
> ---
> 
> 
> ![image](media://d4244579-a500-484b-8fa3-c3025183d943)
> 
> 
> The Radial Symmetric Pattern parameters control the scale of the overall Lens Filter.
> 
> **Shape **– Adjusts the size of the pattern.
> 
> 
> ## **Corona Flare Lines Pattern Parameters**
> 
> ---
> 
> 
> ![image](media://b0d1c204-b353-49f1-8748-4f4536e92275)
> 
> 
> The Corona Flare Pattern parameters control the amount of rays emanating from the light source.
> 
> **Diametric ** – When enabled, mirrors the pattern across the center.
> 
> **Radius **– Controls the size of the pattern radius.
> 
> **Number Of Lines** – Controls the number of lines in the pattern.
> 
> 
> ---
> 
> ### **Example: Corona Flare Lines Pattern**
> 
> 
> This example demonstrates how different values of the **Number of Lines** parameter affect the lens effect. Increasing the Number of Lines value produces more rays emanating from the light source, while decreasing it lowers the number of rays.
> 
> The last image also has the** Diametric** parameter enabled, which mirrors the ray pattern across the center (thus producing symmetrical flares).
> 
> 
> ![image](media://c5e46448-f3b7-402a-bc73-5c6c194e9a93)
> 
> ![image](media://0ff8ccee-713a-4a7f-a520-3e9aca7a73e3)
> 
> ![image](media://361f5830-f211-4e6d-bd95-22d1ede76b52)
> 
> 
> ![image](media://cc791b49-544e-4119-891b-dbfd948278f6)
> 
> ---
> 
> 
> ## **Special Flare Lines Pattern Parameters**
> 
> ---
> 
> 
> ![image](media://01546bed-30a4-4aba-abf4-f1cd090048dc)
> 
> 
> The Special Flare Pattern parameters control the pattern of the Special Flares Lines.
> 
> **Ray Pattern Dropdown ** – Determines the number of Ray groups.
> 
> **Radius ** – Scale of the Special Flares Lines Lens kernel in Percent.
> 
> **Number of Lines ** – Determines the amount of lines used in each ray pattern.
> 
> **Range ** – Controls the spread of the Ray Pattern.
> 
> ** Rotation **– Rotates the entire Special Flare Lines Pattern in degrees.
> 
> 
> ---
> 
> 
> ### **Example: Special Flare Lines Pattern **
> 
> 
> This example shows the effect of **Range** and **Ray Pattern** parameters on the lens appearance. The **Number of Lines** is set to 10 for all images.
> 
> 
> ![image](media://18b68b1d-a656-4556-8a29-2ffa6ebc1adf)
> 
> 
> ![image](media://877962b2-488c-4c89-ba11-4812c578a89b)
> 
> 
> ![image](media://549c7db4-2c82-4438-9c2f-d9dfcd9f3a0e)
> 
> 
> ![image](media://f9ed0ed3-fa23-429e-8762-ffb30c55a964)
> 
> ---
> 
> 
> ## **Lenticular Halo Parameters**
> 
> ---
> 
> 
> ![image](media://c62f8b8a-ce04-4747-ae6b-b4fc6227150c)
> 
> 
> The Lenticular Halo parameters control the bounds of the halo.
> 
> **Inner Radius** – Sets the inner bounds of the Lenticular Halo
> 
> **Outer Radius** – Sets the outer bounds of the Lenticular Halo.
> 
> 
> ---
> 
> 
> ### **Example: Lenticular Halo**
> 
> 
> This example shows how changing the inner and outer bounds values affects the Lenticular Halo. The **Inner Radius** is set to 20 for all images.
> 
> 
> ![image](media://79a84ac2-e122-4621-ac95-454dc9735ab6)
> 
> 
> ![image](media://ec8c23db-65ec-4090-a22c-023b9e601310)
> 
> 
> ![image](media://70abe8ec-2752-469e-b0b9-eb73af36f174)
> 
> ---
> 
> 
> ## **Mix Parameters**
> 
> ---
> 
> 
> ![image](media://d8da70f1-cc0e-48af-a352-84e48f215186)
> 
> 
> The Mix parameters control how the Lens Parameters mix together into the final Filter kernel.
> 
> **Pattern 1** – Sets the percentage Radial Symmetric Pattern 1 is mixed with the final Filter kernel.
> 
> **Pattern 2 **– Sets the percentage Radial Symmetric Pattern 2 is mixed with the final Filter kernel.
> 
> **Halo ** – Sets the percentage the Lenticular Halo has on the final Filter kernel.
> 
> **Aspect **– Determines the Aspect Ratio of the final Filter kernel.
> 
> **Apply Corona Flare Pattern ** – Enables kernel filtering with the Corona Flare Pattern.
> 
> **Apply Special Flare Pattern **– Enables kernel filtering with the Special Flare Pattern.
> 
> 
> ---
> 
> ### **Example: Special Flare Pattern**
> 
> 
> The following examples show how lens parameters can be mixed together to achieve a final filter kernel.
> 
> 
> ![image](media://263b0650-0294-41ef-97ae-7c75a0bb8c88)
> 
> 
> ![image](media://0555f659-e116-4560-8758-309111ba02ae)
> 
> 
> ![image](media://278aeecf-9c7a-45d5-835b-7b523bdac02a)
> 
> 
> ![image](media://69d19d82-fa84-4546-b398-2bb551d6488a)
> 
> 
> ![image](media://4c24f06a-e65c-49e8-ab5f-a0bc0d666936)


> Macro (anchor)



## **References**

---

Here is a list of references about the V-Ray Sun and Sky implementation, as well as general information about the illumination of the Sun.

- G. Spencer, P. Shirley, K. Zimmerman, D.P. Greenberg

** Physically-Based Glare Effects for Digital Images.**;   
An online version can be found at [https://www.graphics.cornell.edu/pubs/1995/SSZG95.pdf](https://www.graphics.cornell.edu/pubs/1995/SSZG95.pdf).  
*This paper is the base for the V-Ray Lens Effects Filter Generator.*