# Auto Exposure

**URL:** <https://blenderartists.org/t/auto-exposure/1510372>\
**Category:** Works in Progress\
**Tags:** scripting, animation\
**Created:** [January 17, 2024, 5:37am UTC](https://blenderartists.org/t/auto-exposure/1510372 "2024-01-17T05:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snoka](https://blenderartists.org/user_avatar/blenderartists.org/snoka/32/1265366_2.png) [@Snoka](https://blenderartists.org/u/Snoka)\
**Post date:** [January 17, 2024, 5:37am UTC](https://blenderartists.org/t/auto-exposure/1510372/1 "2024-01-17T05:37:53Z")

</div>

![comparison](https://blenderartists.org/uploads/default/original/4X/8/5/e/85e312f5ff575bbe144f7a1636e278a699c7ef12.png)

Simulating camera auto exposure in Blender animations.

Unlike compositor-based techniques, this innovative method keyframes the exposure setting in Cycles based on the average brightness of the scene with OpenCV using an initial low-resolution render.

**Features**

 ![ui](https://blenderartists.org/uploads/default/original/4X/0/7/f/07ff1676bf6ebb7c6baf869fd1a4681cf2b4844e.png)

**Simulate Metering Modes**

- **Matrix:** Divides the image into a grid and calculates exposure based on grid segments. For Matrix mode, you can specify the grid size.
- **Spot:** Measures the brightness in a central spot area. For Spot mode, you can adjust the spot size.
- **Center Weighted:** Measures the brightness in a central area with adjustable weight. For Center Weighted mode, you can adjust the center weight.
- **Screen Average:** Uses the average brightness of the entire screen.

**Exposure Mapping**  
Fine tuned controls over the exposure mapping with options for setting the Target Min, Target Midpoint and Target Max.

**Smoothing**  
You can specify the size of the smoothing window, which is used to smooth the exposure curve.

**Motion Blur Control**  
When exposure increases cameras utilizing auto exposure tend to keep the shutter open longer. To simulate this the add-on allows you to optionally keyframe the Motion Blur → Shutter setting along with exposure. The add-on provides a way to map exposure values to shutter speeds using a mapping system. You can add, edit, or remove mapping points to customize the mapping.

**OpenCV Dependency**  
If OpenCV is not installed, you can install it directly from the add-on’s preferences.

Results

---

<div class="post-metadata">

**Author:** ![Snoka](https://blenderartists.org/user_avatar/blenderartists.org/snoka/32/1265366_2.png) [@Snoka](https://blenderartists.org/u/Snoka)\
**Post date:** [January 17, 2024, 5:03pm UTC](https://blenderartists.org/t/auto-exposure/1510372/2 "2024-01-17T17:03:29Z")

</div>

Completed:

- Centre Weighted Metering
- Spot Metering
- Matrix Metering
- Shutter Speed Control

Results with matrix metering and shutter speed control:

---

<div class="post-metadata">

**Author:** ![Snoka](https://blenderartists.org/user_avatar/blenderartists.org/snoka/32/1265366_2.png) [@Snoka](https://blenderartists.org/u/Snoka)\
**Post date:** [January 17, 2024, 7:32pm UTC](https://blenderartists.org/t/auto-exposure/1510372/3 "2024-01-17T19:32:32Z")

</div>

**Added Smoothing**  
This is done by averaging each exposure value with its neighboring values. The number of neighbors considered for each average is determined by the smooth\_window parameter. For example, a window size of 5 means that each exposure value is averaged with its two preceding and two following values.

The results with matrix metering and a smoothing window of 5:

5 seems a bit unrealistic as it reacts the light changes too soon. But that might be desirable in many cases.

The graph:

 ![smoothingmatrix](https://blenderartists.org/uploads/default/original/4X/2/8/3/28372f06d1c7b9036b248dd0c559022def475bda.png)

If you’ve got any feedback or feature ideas let me know.

---

<div class="post-metadata">

**Author:** ![Snoka](https://blenderartists.org/user_avatar/blenderartists.org/snoka/32/1265366_2.png) [@Snoka](https://blenderartists.org/u/Snoka)\
**Post date:** [January 20, 2024, 8:30am UTC](https://blenderartists.org/t/auto-exposure/1510372/4 "2024-01-20T08:30:02Z")

</div>

**Development Update**  
Exciting news! The “Auto Exposure” add-on is a big step closer to reality.  
Here’s a look:  
 ![ui example (2)](https://blenderartists.org/uploads/default/original/4X/d/c/8/dc8e47d2b5f36b0baedee51ea9510179d3c96ef4.gif)

---

<div class="post-metadata">

**Author:** ![Mr\_Droid](https://blenderartists.org/user_avatar/blenderartists.org/mr_droid/32/1504813_2.png) [@Mr\_Droid](https://blenderartists.org/u/Mr_Droid)\
**Post date:** [October 17, 2026, 8:13pm UTC](https://blenderartists.org/t/auto-exposure/1510372/5 "2026-10-17T20:13:54Z")

</div>

Hello! I just found this post and I am wondering if you’re gonna release addon?

Just because not only did you do a really good job and many people would find this addon very useful for animations such as found footage.
