Search Unity

Bug Recorder - Cant output linear unclamped?!?

Discussion in 'Audio & Video' started by newguy123, Oct 20, 2021.

  1. newguy123

    newguy123

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

    Seems there's no way of outputting unclamped linear data from Unity. Or, there's also a strong possibility I'm just doing something wrong!

    I posted this originally on the HDRP section based on my findings with GameView, but then I tested it by atually outputting to EXR from targetted cam, and the result is a clamped linear image :-(
    https://forum.unity.com/threads/gam...ally-correct-for-hd-unclamped-output.1185586/
     
  2. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    That's clamped!
    upload_2021-10-20_12-12-5.png
     
  3. cguertin

    cguertin

    Unity Technologies

    Joined:
    Aug 20, 2019
    Posts:
    83
    Hey @newguy123,

    Looking at your other thread, the Recorder settings are good (Target Camera, Linear EXR) but there a couple of other settings in the project that could prevent getting unclamped values.

    On you rendering camera you'll want to:
    • Disable the "dithering" option (when this option is enabled, it applies an 8-bit dithering over the image that clamps values)
    • "Post Anti-aliasing" is not set to FXAA (other types of anti-aliasing are fine but FXAA clamps values at the moment)
    Screenshot 2021-10-20 093720.png

    The following HDRP post-processes also clamp values and need to be disabled:
    • Tonemapping
    • Film Grain

    Let us know if you still can't get unclamped values in your recordings after this. Cheers!
     
  4. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248

    Ah brilliant thanks @cguertin I had dithering enabled on my cam. After disabling that, it sorted it, thanks!

    upload_2021-10-20_17-3-46.png
     
    cguertin likes this.