---
title: "Lens Effects Layer"
canonical: "https://documentation.chaos.com/space/VRAYHOUDINI/113281158/Lens+Effects+Layer"
format: markdown
---
This page provides information on the Lens Effects layer found in the V-Ray Frame Buffer.


## **Overview**

---

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 the 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** layer is accessible from the **Layers panel **in the VFB and can be activated when the lens effects are enabled. It can be blended with the rest of the layers in the VFB.

Additionally, V-Ray includes a standalone[ Lens Effects Generator Tool ](https://docs-chaos.atlassian.net/wiki/spaces/VRAYHOUDINI/pages/113280436)for composing custom lens filters.

> ✅ Lens Effects layer can be disabled from the visibility icon (> Macro (inline-media-image)
> ✅ 
> ✅ ). Disabled layers are indicated by the > Macro (inline-media-image)
> ✅ 
> ✅  icon.

![image](media://eef9ff59-d7e8-4f72-9e24-c26280c4d55b)



## **Lens FX controls**

---

**Opacity** – Controls the weight of the layer. A value of 0 means no effect and a value of 1.0 means full effect.

**Enable bloom/glare effect** – Enables the V-Ray Lens Effects.

**Size **– Specifies the size of the filter as percentage of the image's diagonal. *See the **[Size example](#size)** 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](#intensity)** 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](#bloomglare)** below.*

**Threshold **– Sets a minimum value for the rendered pixels to be considered as lens effects source. The **Bloom/Glare effect** is generated only regarding pixels with larger value than the specified threshold.

**Rotation **– Rotates the final result effect, regardless of this is a filter image or a procedurally created one. 

**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](#coldwarm)** below.*

**Hardware Accelerated** – Enable to calculate lens effects on the GPU. When multiple devices are present, V-Ray prioritizes the best one available.

**Cold/Warm **– When enabled, the **Bloom/Glare effect **is toned to cold hues. When disabled, the effects receives warm hue. The hue shift requires **Saturation** values larger than 0. *See the **[Cold/Warm & Saturation examples](#coldwarm)** below.*

**Interactive **– When enabled, the bloom/Glare effect is automatically recalculated and applied after any V-Ray lens effects parameter change.

**Save Glare channel** – When enabled, writes the glare channel to a file when writing all channels.

**Update **– Manually forces the recalculation of the bloom/glare effects.

> ✅ You can modify the frequency at which the lens effects are updated during progressive rendering via the **[Post effect rate ](https://docs-chaos.atlassian.net/wiki/spaces/VRAYHOUDINI/pages/113279287)**parameter located in the **V-Ray Renderer** node **> Renderer **tab** > Sampler **tab. Increase the value if you want to see the lens effects updated more often during IPR with V-Ray and V-Ray GPU. However, note that using large values is only useful in IPR and is not recommended for the final rendering.

![image](media://eebce90a-4286-4d79-88ea-d4f6463c07a1)


> Macro (anchor)



---


### **Example: Size**


![image](media://8cd4ecff-9782-4846-ae66-d85b394674a3)

**Size** = 1  
**Intensity** (constant) = 1.00

![image](media://87bc8aa8-25bb-4c82-bd45-3c4d53879d24)

**Size **= 10  
**Intensity** (constant) = 1.00

![image](media://c1faa831-7e65-4aa1-a9c1-50d7f2db14ff)

**Size **= 20  
**Intensity** (constant) = 1.00

![image](media://233bde2e-1fba-476f-9341-b10e5e8c8139)

**Size **= 30  
**Intensity** (constant) = 1.00

![image](media://d3a5e869-85f5-4419-b5fc-3399c76eaf01)

**Size **= 40  
**Intensity** (constant) = 1.00

![image](media://dd6ac348-d228-483c-a9a5-1ddd5ceebe4b)

**Size **= 50  
**Intensity** (constant) = 1.00

![image](media://ce316fad-e54e-449a-888d-eed0fcce77ab)

**Size **= 60  
**Intensity** (constant) = 1.00

![image](media://54fe3a91-e908-4f2d-8eab-be0aa9cc707b)

**Size **= 70  
**Intensity** (constant) = 1.00

![image](media://9fbc46a9-2465-4660-bcd0-30bb0b6bb033)

**Size **= 80  
**Intensity** (constant) = 1.00

![image](media://99d134c3-74e6-4c41-b20f-499a84de7093)

**Size **= 90  
**Intensity** (constant) = 1.00

![image](media://409d95a8-18d0-40ef-865d-c7f52fe36be3)

**Size **= 100  
**Intensity** (constant) = 1.00



  
> Macro (anchor)



---


### **Example: Bloom / Glare**


![image](media://d03dd4d2-6c3f-469b-82d6-b15acf2e6e89)

**Bloom** = 0.0  
**Streak blur **(constant) = 0.20** **

![image](media://0acf1832-826d-4649-9133-227f11b85c62)

**Bloom** = 0.1  
**Streak blur **(constant) = 0.20

![image](media://c4a8f564-ccee-4573-a157-5924fc783aa5)

**Bloom **= 0.2  
**Streak blur **(constant) = 0.20

![image](media://8b90154b-ee43-4a6c-9c14-b7b94c9ccff2)

**Bloom **= 0.3  
**Streak blur **(constant) = 0.20

![image](media://5fd96735-5bf4-4e44-aaef-6d82abf2c6c4)

**Bloom **= 0.4  
**Streak blur **(constant) = 0.20

![image](media://0d03900d-7a95-4563-b8f6-eb2abba8578e)

**Bloom **= 0.5  
**Streak blur **(constant) = 0.20

![image](media://e4080e5c-3d7b-4700-9903-74c9d2322c68)

**Bloom **= 0.6  
**Streak blur **(constant) = 0.20

![image](media://ee037804-0d5c-4b5a-93fe-6e8429ec6477)

**Bloom **= 0.7  
**Streak blur **(constant) = 0.20

![image](media://70467749-399d-4db2-a78c-ac25cdd00f83)

**Bloom **= 0.8  
**Streak blur **(constant) = 0.20

![image](media://ea933d7b-6069-4eb9-bcef-2efd3a7fe3d5)

**Bloom **= 0.9  
**Streak blur **(constant) = 0.20

![image](media://f3d636cc-3933-40bf-b579-51a6687f117e)

**Bloom **= 1.0  
**Streak blur **(constant) = 0.20



  
> Macro (anchor)



---


### **Example: Intensity**


![image](media://b9939e7f-be81-4106-9352-4e0f86fbf603)

**Intensity** = 0  
**Size** (constant) = 50

![image](media://3af1aac2-d993-4898-956d-05a599f91f1a)

**Intensity **= 1  
**Size** (constant) = 50

![image](media://d0e83f11-d45b-4bb9-8170-2eafad8e0b79)

**Intensity **= 2  
**Size** (constant) = 50

![image](media://77734cdf-707a-4ce8-aa3a-b1c2714f07eb)

**Intensity **= 3  
**Size** (constant) = 50

![image](media://bd706b37-6b2d-42d2-84d8-51509c6e1a49)

**Intensity **= 4  
**Size** (constant) = 50

![image](media://83a1d499-754a-4462-b75c-1dae0392bf7b)

**Intensity **= 5  
**Size** (constant) = 50

![image](media://132e61ec-2237-4ec6-ac15-cb3bc67e07d3)

**Intensity **= 6  
**Size** (constant) = 50

![image](media://e2599f51-1402-4e09-aa13-bbc7a0ae4efb)

**Intensity **= 7  
**Size** (constant) = 50

![image](media://113bbc35-a592-42f1-86ed-a7c3cd510c2d)

**Intensity **= 8  
**Size** (constant) = 50

![image](media://56e165df-b261-45f7-bbdc-3973c818e592)

**Intensity **= 9  
**Size** (constant) = 50

![image](media://46e4a693-8213-4f67-b7fe-56d226d7e079)

**Intensity **= 10  
**Size** (constant) = 50



  
> Macro (anchor)



---


### **Example: Cold/Warm & Saturation**


![image](media://6f7906be-fa6c-4748-9048-bf88999f4f15)

**Saturation **= 1.5  
**Cold/Warm On**  
**Lights shaded with pure white color **

![image](media://106add3b-5a1c-4323-804c-750f55d75a09)

**Saturation **= 1.0  
**Cold/Warm On**  
**Lights shaded with pure white color**

![image](media://1a1cbcaf-a678-49c1-b9c1-282a22338846)

**Saturation **= 0.5  
**Cold/Warm On**  
**Lights shaded with pure white color**

![image](media://8108bfb3-824e-4091-8b76-45dd37b40b0b)

**Saturation **= 0.0  
**Cold/Warm On**  
**Lights shaded with pure white color**

![image](media://34ad44ec-9372-42f6-81a2-66505f21df48)

**Saturation **= 0.5  
**Cold/Warm Off**  
**Lights shaded with pure white color**

![image](media://797ed94e-1c0a-4fb9-952a-102f23b18cda)

**Saturation **= 1.0  
**Cold/Warm Off**  
**Lights shaded with pure white color**


![image](media://0dfd495d-607e-46b2-8324-d4cdf53f748a)

**Saturation **= 1.5  
**Cold/Warm Off**  
**Lights shaded with pure white color**



##   
**Aperture Shape**

---

Clicking the > Macro (inline-media-image)

 button displays/hides the parameters of the rollout.

**Blades **– Enables the Blades effect.

**Sides **– 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 and blades.

**Streak blur **– Determines the width of the angle at which glare rays spread. The larger the value, the wider the spread. If set to 0, rays are directional; if set to 1, glare rays spread out and completely blend together. *Observe in the **[Streak blur example](#steakblur)** below how values in-between change the glare rays appearance.*

**Peripheral grating** – Enables grating along the sides of the aperture shape. 

**Density** – Controls the density of the grating effect in percent, where 100 is fully black.

**Length **– Controls the length of the grate lines.

**Zoom **– Controls the size of the halo around the lights.

**Slope **– Controls the direction of the lines.

**Strength **– Controls the strength of the blades effects.

**Occlusion **– When enabled it controls the aperture shape by occluding part of it.

**Symmetric **– Enables symmetric occlusion of the shape. When disabled, the occlusion appears only on one side of the shape.

**Percent **– Controls how much of the shape is occluded.

**Rotation **– Determines the position of the occlusion over the shape by rotation.

**Arc **– Controls the arc of the occlusion. A value of 0 sets a straight line, while a value of 100 makes an arc.

![image](media://c933aaf0-a21f-4d57-8352-6894429b521d)



---

> Macro (anchor)




### **Example: Streak blur**


![image](media://a7f557fe-718f-4220-a783-1ccbe4e89ac5)

**Streak blur** = 0.0  
**Bloom** (constant) = 0

![image](media://e6b5777a-4c38-4a70-a90a-b1e4df4235cb)

**Streak blur** = 0.1  
**Bloom** (constant)** **= 0

![image](media://f00eb517-c09e-45e6-8978-043a82c9b9eb)

**Streak blur** = 0.2  
**Bloom** (constant) = 0

![image](media://427b3823-cf65-4110-b27b-b99b44209fe3)

**Streak blur** = 0.3  
**Bloom** (constant) = 0

![image](media://396c65e6-bc02-402a-a6d0-20c26af1397f)

**Streak blur** = 0.4  
**Bloom** (constant) = 0

![image](media://288c9e41-07d6-4c1f-abe4-d7f2b7bd7297)

**Streak blur** = 0.5  
**Bloom** (constant) = 0

![image](media://7c0f2160-cf93-450e-a403-d9fceb04f753)

**Streak blur** = 0.6  
**Bloom** (constant) = 0

![image](media://a0157360-1393-42ba-8879-9e42cff08d76)

**Streak blur** = 0.7  
**Bloom** (constant) = 0

![image](media://d8c7404d-699e-42e7-8d44-0e7e7a279f48)

**Streak blur** = 0.8  
**Bloom** (constant) = 0

![image](media://5c9b541f-7012-45a1-9352-a072f1e04648)

**Streak blur** = 0.9  
**Bloom** (constant) = 0

![image](media://5f3d294e-12a7-49a4-bffd-0a2f16e1d58c)

**Streak blur** = 1.0  
**Bloom** (constant) = 0




### **Lens Scratches**

---

**Lens scratches** – Enables the lens scratches effect.

**Symmetric **– When enabled creates symmetric pattern of the scratches. This option is available only when **Pattern** is **Random**.

**Pattern** – Specifies **Random**, **Stripes**, **Square** or **Hexagonal** type of pattern for the scratches.

**Streaks **– Specifies the number of streaks that are clustered together. If **Symmetric** is enabled, the streaks are stemming from one point with equal angles. If **Symmetric** is disabled, the streaks are scattered from random angles.

**Density **– Controls the density of the scratches effect in percent, where 100 is fully black.

**Length **– Controls the length of the scratches.

**Slope variance **– Randomizes the direction of the scratches.

**Width variance **– Randomizes the width of the scratches.

**Seed **– Specifies a seed parameter to introduce variance in the randomization.

**Zoom **– Controls the size of the pattern.

**Rotation** – Determines the position of the scratches by rotation.

**Strength **– Controls the strength of the effect.

![image](media://7e625eac-7102-42a0-a07d-668e7419cd31)


### **Lens Dust**

---

**Lens dust **– Enables the lens dust effect.

**Pattern **– Specifies the **Random**, **Square** or **Hexagonal** type of pattern for the dust.

**Density **– Controls the density of the dust effect in percent, where 100 is fully black.

**Radius variance **– Specifies a variance in the radii of the dust dots. A value of 0 makes the dust dots uniform.

**Jitter **– Controls randomization of the position of the dots.

**Zoom **– Controls the size of the dust dots.

**Rotation **– Determines the position of the dust dots by rotation.

**Strength **– Controls the strength of the effect.

![image](media://dd33225f-8cc0-419a-8088-e01f05654b77)


### **Obstacle Image**

---

**Obstacle image** – When enabled an obstacle image can be specified. You can use it to simulate various effects on the camera lens. *See how this changes the lens effects in the **[Obstacle Image example](#obstacle)** below.*

**Load Obstacle Image** – Loads an obstacle image.

**Browse** – <span style="color: #202124">Opens a browser to search for an obstacle image.</span>

**Recent** – <span style="color: #202124">Shows a list of recently used obstacle images.</span>

**Zoom **– Controls the size of the obstacle image. 

**Rotation **– Rotates the obstacle image. 

**Strength **– Controls the strength of the effect.

![image](media://cb7e0f5c-2eb2-49a2-b6d9-52d2a653431b)



---

> Macro (anchor)



### **Example: Obstacle Images**


Obstacle images used


![image](media://81adbdd1-b8ae-4aaf-879d-7944be109bb4)


![image](media://a323ae4d-dec3-454a-9bd0-11ff7a18dc0e)


![image](media://83de2b2b-b5b1-4c06-8041-62ed9927480b)

![image](media://9c7315fb-bed5-414b-9e71-ad91a7508d90)


![image](media://392ccbc7-e7a3-418a-8e4b-0bd40a004158)

![image](media://843f0ce4-6f9f-4485-a7c3-c0d9a4ea2cc5)

<span style="color: #000000">**Size (constant) = 50**</span>  
<span style="color: #000000">**Bloom (constant) = 0.5**</span>


### **Filter Image**

---

Enabling this rollout disables the controls for the generated filter:

**Filter image** – Enables a filter image from the Filter generator tool to be used.

**Load Filter** – Specifies the path to a filter kernel. You can create filters using the [Filter generator tool ](https://docs-chaos.atlassian.net/wiki/spaces/VRAYHOUDINI/pages/113280436)which comes with the Houdini installation.

<span style="color: #202124">**Browse**</span><span style="color: #202124"> – Opens a browser to search for a filter image.</span>

<span style="color: #202124">**Recent**</span><span style="color: #202124"> – Shows a list of recently used filter images.</span>

![image](media://6f92bcb4-2614-4be9-ae0d-ae7d490a46fd)


### **Chromatic Aberration**

---

**Chromatic aberration** – Enables chromatic aberration.

**Strength **– Controls the strength of the effect.* See the **[Strength example](#chromAberr)** below.*

![image](media://83434cf3-cd5d-446e-a1d1-1e695f687396)



---

> Macro (anchor)



### **Example: Chromatic Aberration Strength**


<span style="color: #272727">Depending on the </span>**Strength**<span style="color: #272727"> of the chromatic aberration, you can create different looks in your scene. You can imitate the effect of a real camera with subtle aberration, or, if you wish to achieve an artistic effect, consider increasing the Strength parameter, as in the example.</span>


![image](media://8a92bbb7-b301-49e1-adf0-d198aacc25be)

**Strength** = Off

![image](media://4eaa938c-1488-459f-ab77-ab9c9700b84b)

**Strength **= 0.25

![image](media://e09129b4-d89e-4206-a074-ee0257012a30)

**Strength **= 0.5



## **Aperture Preview**

---

The Aperture Preview panel is loaded by default, but can be minimized like the other Aperture groups. The aperture shape shows the result of the applied lens effects.

![image](media://f32dc96f-ecd6-4b6b-9046-466695b7fd6b)


## **File Names of Saved Channels**

---

As expected, channels keep their names as displayed in the VFB when saving them to a single *.vrimg* or *.exr* file (using the **Save all image channels to single file** VFB button). The same channel names are appended to the files when you use the VFB button **Save all image channels to separate files**.


## **Notes**

---

- When using Deadline for network rendering in combination with V-Ray Lens Effects, make sure to **disable** the **Local Rendering** option when submitting to Deadline. Otherwise, Deadline is not able to save your bloom/glare effects.