Search Unity

Issue with HDR not working in GameView but in SceneView

Discussion in 'General Graphics' started by SavageCase, Sep 18, 2017.

  1. SavageCase

    SavageCase

    Joined:
    Jan 31, 2016
    Posts:
    8
    Hopefully someone can help me out here.

    Problem is that HDR is just working fine in the SceneView, but not in the GameView.
    All is set up for HDR, allowHDR on camera and useHDR in project settings.
    Color space in linear, Image effect both work in SceneView and GameView.
    There is no difference in forward or deferred rendering mode. And the issue persists on other projects. (e.g. Standard Assets examples)

    With the frame debugger I noticed that the BlitCopy Shader seems to mess the HDR up?
    Maybe someone can help we out and tell me whats going on here?

    See the pics:
    Note: I don't use Image Effects in the scene here, but that doesn't change the outcome.
    SceneView (Top)
    GameView (Bottom)

    Image1: HDR not applied or reverted by BlitCopy Shader (?)
    with_blitcopy.png

    Image 2: HDR looks correct, just before the Blit Shader.
    without_blitcopy.png
    I'm clueless to how to fix that.
    Any suggestions?
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    The tonemapping should be part of the Image Effects. If you don't have any Image Effects, Unity will apply a standard tonemapping. If you do have have any Image Effect, it's up to the Image Effects to do the tonemapping. So, setting a BlitCopy as Image Effect will remove the standard tonemapping.
     
  3. SavageCase

    SavageCase

    Joined:
    Jan 31, 2016
    Posts:
    8
    Thanks.

    Thing is, there is no difference if I use an non standard tonemapping effect or not, e.g. from the Post Processing Stack.
    The non standard tonemapping works totally as expected, I don't know about the standard tonemapping, but I would expect it to have equal results in the SceneView and in the GameView?
    BlitCopy is just supposed to copy over an image 1:1 right? I don't get how it can alter the output, unless it gets the maybe wrong input.

    Here are now images with Post Image Effects Applied. (Bloom and Color Grading).

    Top is SceneView and Bottom is GameView.

    How it should look like: right Before BlitCopy
    WithoutBlitCopy.PNG

    How it should NOT look like: right after BlitCopy
    WithBlitCopy.PNG

    Any other ideas?

    Is the BlitCopy supposed to be there?
     
  4. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Right, and looking at the source, that is what it does. I don't really think it's needed there and the reason for the difference might be a linear/sRGB conversion.
     
  5. SavageCase

    SavageCase

    Joined:
    Jan 31, 2016
    Posts:
    8
    Alright jvoc3dc, thanks.
    I have absolutly no idea how I can fix the issue. Hopefully it will magically be fixed with the coming releases, until then I have to live without HDR. :/
     
  6. Nasa13

    Nasa13

    Joined:
    Jul 1, 2015
    Posts:
    3
    i have the same problem but in android project...

    Then i go to the:

    edit - project settings - graphic and found this

    http://take.ms/ficlO

    After i just turn on all needed settings:
    http://take.ms/Ojtcb

    And HDR work now!

    I didn't expect than half of important settings was disabled!!!

    Sorry for my English, hope its help
     
  7. SavageCase

    SavageCase

    Joined:
    Jan 31, 2016
    Posts:
    8
    Hey Nasa13,
    thanks for the tip, I tested all settings, but they don't have any effect on the GamveView rendering.
    My problem persists. :/
     
  8. SavageCase

    SavageCase

    Joined:
    Jan 31, 2016
    Posts:
    8
    update: The problem went away with 2017.1.1p3 :)
     
  9. anu_121

    anu_121

    Joined:
    May 23, 2017
    Posts:
    5
    I have the same issue on 2018.2f version........ I did all the setting to HDR and other tricks, but nothing happened
     
  10. zeeshan01

    zeeshan01

    Joined:
    Sep 10, 2018
    Posts:
    2
    Thanks! That totally worked on 2018.1.3
     
  11. th0m4sXD

    th0m4sXD

    Joined:
    Oct 22, 2017
    Posts:
    9
    Thanks man!
     
  12. Rispat-Momit

    Rispat-Momit

    Joined:
    Feb 14, 2013
    Posts:
    266
    Will you marry me???