Search Unity

Feedback Game View clamped to 8bit color - So Tonemapping not visually correct for HD unclamped output

Discussion in 'High Definition Render Pipeline' started by newguy123, Oct 20, 2021.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    Hi Guys

    Since the GameView appears to be clamped to 8bit color, any tonemapping mapping like ACES or Custom curve does not seem to have the full range uf unclamped info available to properly tonemap the image.
    This becomes claringly apparant, when either switching to Neutral, Aces or adjusting a custom curve. The resulting image in Gameview is dull and clearly not correct.

    Is there a way I can correctly see the correct output? If I for example use Recorder and output unclamped EXR image from a targeted camera, will I get a correct image or it will still be based on the clamped gameview image?
     
  2. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    For example, I purposefully blown out the scene:
    upload_2021-10-20_11-37-40.png

    Output settings:
    upload_2021-10-20_11-38-18.png

    Resulting EXR, checked in Photoshop correctly identifies linear output:
    upload_2021-10-20_11-39-7.png


    However, the output is still clamped!!!
    upload_2021-10-20_11-40-16.png
     
  3. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    That's clearly clamped:

    upload_2021-10-20_12-11-15.png
     
    Ruchir likes this.
  4. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    The guys let me know that I should make sure Dithering is disabled on my cam. After I did that, it fixed the clamped output for me, and the world makes a little more sense now...
     
    Ruchir and PutridEx like this.
  5. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    595

    If you're exporting EXR files, you need to ensure that you're taking into consideration linear and log conversions.


    I've so attached an image of one of our upcoming asset documentation that might be useful for inside engine, but you'll find that you can use the render pipeline debugger to display the colour values before tonemapping in linear via scene view.

    These are pulled from the HDR colour buffer

    Might be what you're looking for.
     

    Attached Files:

  6. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    595
    In terms of ACES tonemapping though, you shouldn't be seeing values @ 255 or 0

    But if you're taking screenshot, or screen values, or EXR without converting the LOG values back to an LDR range ( where you would normally end up seeing blown highlights and crushed backs if not remapped)