Search Issue Tracker

Fixed in 2018.2.X



Found in




Issue ID




[Regression] [Win] Videos are dark when using Linear color space

Graphics - General


How to reproduce:
1. Download attached project file and open "1" Scene
2. Enter Play Mode (make sure Linear color space is selected in Player Settings)

Actual result: All videos are too dark when using the Linear color space. They are correct with the Gamma color space.

Reproduced with: 2017.1.2p2, 2017.2.0f3, 2017.3.0b6, 2018.1.0a1
Not reproduced with: 2017.1.2f1, 2017.2.b10, 2017.3.0a7

Regression since: 2017.1.2p1, 2017.2.0b11, 2017.3.0b1

Reproduced only with Windows.

Fixed in: 2018.2.0a6

Comments (23)

  1. Mark-Davis

    Mar 20, 2018 22:37

    Hey guys - I just ran into the same issue, but found a workaround. Maybe this will help someone.

    Try using a RenderTexture as the target. An easy way to handle this is to link the RenderTexture to a RawImage. When you create the RenderTexture, in the RenderTextureDescriptor,
    set: desc.sRGB = false;

    Good luck!

  2. chadidi97

    Mar 17, 2018 12:11

    The issue still exists in 2017.3.1f1 please fix asap.

  3. tracetronic

    Mar 16, 2018 11:14

    Still exists in 2017.2.1f1

  4. Ghaleon25

    Mar 12, 2018 14:01

    Tried both workaround but on dark areas, there are bad artifacts and you can clearly see the difference in quality if you play the video outside of unity.
    Any idea if this will be fixed soon or if there is a better workaround?

  5. Ratt

    Mar 05, 2018 22:33

    We ran into the same issue, we fixed it by making a custom shader based on the default Unity UI shader.

    We added:

    fixed4 col = tex2D(_MainTex, i.uv); //this is the line before, should be in the shader
    col.rgb = LinearToGammaSpace(col.rgb); //this is the line we added

    And then make a material with that, put it as the material for the VideoPlayer and you should be good to go

  6. CorwinJ

    Jan 18, 2018 23:51

    I'm trying to get a workaround going.
    Another thread mentioned it might be lacking gamma correction so I wrote a quick shader to try and add in gamma correction using a formula I found online.

    // Where _GammaFactor is a range of 1-2.4
    col.rgb = pow( col, 1.0 / _GammaFactor);

    This brings the color and some brightness back but it up introducing some weird artifacting.
    Anyone else had any luck with this?

  7. Numix-Jeff

    Jan 17, 2018 00:30

    I have same problem, i tryed different versions but none of them worked ...

    Very annoying to have videos blackened like this. Please fix

  8. ShahriyarB

    Jan 16, 2018 09:09

    Using 2017.3.0f3 and having this issue as well

  9. frezer749

    Jan 15, 2018 23:19

    Having the same problem... kind of stopping the development of my game

  10. VirZOOM

    Jan 08, 2018 21:23

    We have this issue as well. The legacy MovieTexture doesn't have this problem in linear space, but we just moved to VideoPlayer to have synchronized audio.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.