Search Issue Tracker

Fixed in 2018.2.X

Votes

31

Found in

2017.2.0b11

2017.2.0f2

2017.3.0b1

Issue ID

962142

Regression

Yes

[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 (21)

  1. tracetronic

    Mar 16, 2018 11:14

    Still exists in 2017.2.1f1

  2. 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?

  3. 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

  4. 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?

  5. Numix-Jeff

    Jan 17, 2018 00:30

    I have same problem, i tryed different versions but none of them worked ...
    2017-1-2f1
    2017.3.0f3,
    2018.1.0b2

    Very annoying to have videos blackened like this. Please fix

  6. ShahriyarB

    Jan 16, 2018 09:09

    Using 2017.3.0f3 and having this issue as well

  7. frezer749

    Jan 15, 2018 23:19

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

  8. 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.

  9. PacoChan

    Jan 06, 2018 17:21

    I just updated from 2017.1.2f1 to 2017.1.3f1 with hopes of having a more stable version and this is what I get, broken videos.

  10. threespin2

    Jan 05, 2018 11:16

    We can reproduce this issue with 2017.3.0f3. As we want to display video on a Oculus Rift -which requires linear color space- this is kind of a show stopper right now.

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.