# How to change a global gamma?

**URL:** <https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795>\
**Category:** Rendering\
**Tags:** console-command, unreal-engine, Post-Process, Rendering, question\
**Created:** [October 21, 2014, 7:14am UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795 "2014-10-21T07:14:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dneproman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dneproman](https://forums.unrealengine.com/u/Dneproman)\
**Post date:** [October 21, 2014, 7:14am UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/1 "2014-10-21T07:14:22Z")

</div>

How to change the global settings of gamma in the game. For example we have a slider, we want it to change the parameters of the gamma, how to do it?  
Maybe there is a console command, or what?  
We can not deal with this ☹  
Thanks!

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [October 22, 2014, 3:56pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/2 "2014-10-22T15:56:26Z")

</div>

Hey Dneproman -

All you would need to set this up is a Global Post Process volume and add the following Blendable Post Process Material into the volume. Run the Scalar Parameter Value (which I called Gamma\_Correction) through a Blueprint control in which you set up a slider to adjust the value in a predetermined range.

 ![gammacorrection.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/8/d859550c0dead9ea77e6c7898364b19a541f4d8f.jpeg)

Gamma at its simplest form is a power law function meaning the results are a power of the input times a constant (and in its simplest form that constant is 1). We do have a color grading feature in our post process volumes which is a more advanced form of Tone Mapping which can also be used to help adjust Gamma. More on that here, [Color Grading and Filmic Tonemapper | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Engine/Rendering/PostProcessEffects/ColorGrading/index.html)

Thank You

Eric Ketchum

EDIT: Very sorry in my haste I forgot to post the Image.

---

<div class="post-metadata">

**Author:** ![Dneproman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dneproman](https://forums.unrealengine.com/u/Dneproman)\
**Post date:** [October 23, 2014, 5:14am UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/3 "2014-10-23T05:14:05Z")

</div>

Hi Eric!  
In truth, I did not count on a quick response, thank you so much, this is what i need!  
Many thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [February 17, 2015, 8:35pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/4 "2015-02-17T20:35:04Z")

</div>

I implemented a Gamaoption this way, inside the editor it works as intended (4.6.1), also “standalone play” works fine. However if the project is packaged the option just has no effect at all.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [February 18, 2015, 3:56pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/5 "2015-02-18T15:56:07Z")

</div>

Hey AlexW88 -

Can you be more specific as to how you are changing the Gamma\_Correction Option at runtime? Is it a part of your level blueprint, character blueprint? A specificly created actor blueprint? As much information as you can would be helpful.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [February 19, 2015, 9:37pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/6 "2015-02-19T21:37:49Z")

</div>

Hi Eric,

thank you for your quick response, and also for providing this guide. I’m changing it through set scalar parameter within a widget blueprint.

Apparently it seems like there was some issue with the packaging. I packed it a few more times, and after like the 4th time the function started out of sudden to work (without any change to related code or assets) and keeps working nicely till now.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [February 20, 2015, 3:41pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/7 "2015-02-20T15:41:29Z")

</div>

What are you packaging for? Mobile does not currently support the Post Process Blendables yet.

Thank You  
Eric Ketchum

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_81fb15a7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_81fb15a7](https://forums.unrealengine.com/u/anonymous_user_81fb15a7)\
**Post date:** [March 25, 2015, 6:01pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/8 "2015-03-25T18:01:06Z")

</div>

Hello!

This is a fantastic solution, but I am getting no anti-aliasing when I implement this method. Please see post here:

> **[Global Gamma correct blendable breaks AA](https://forums.unrealengine.com/questions/196968/global-gamma-correct-blendable-breaks-aa.html)**
>
> Hello, I have a very simple scene that I need to globally gamma correct to match the colors of the incoming shaders from maya (Blinns). In order to do so, I implimented Eric Ketchum’s solution of applying a blendable material here: \[How to change...

any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Loxli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Loxli](https://forums.unrealengine.com/u/Loxli)\
**Post date:** [April 27, 2015, 2:17pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/9 "2015-04-27T14:17:59Z")

</div>

cmd: gamma 0-10

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f3fb80e6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f3fb80e6](https://forums.unrealengine.com/u/anonymous_user_f3fb80e6)\
**Post date:** [August 8, 2015, 3:35pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/10 "2015-08-08T15:35:03Z")

</div>

This works well, should be the favorite answer here!

---

<div class="post-metadata">

**Author:** ![Cobryis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cobryis](https://forums.unrealengine.com/u/Cobryis)\
**Post date:** [January 5, 2016, 11:30pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/11 "2016-01-05T23:30:39Z")

</div>

gamma is clamped by the engine between .5 and 5.0. The default value is 2.2.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [November 16, 2017, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-change-a-global-gamma/296795/12 "2017-11-16T12:34:21Z")

</div>

Updated this as the accepted answer. Command Line is arguably a preferable alternative to creating an asset!
