I’m using CaptureScreenshot at specific points in my game.
Everything works fine usually, but I’ve recently added HDR support for the game and the above function returns “Failed to capture screen shot” in the player.log when HDR Mode is enabled.
Can anyone confirm that the function should be able to capture HDR screenshots and have it working ? Thanks
(Running Unity 2020.3.25 Standalone build on Windows 10 desktop)
im looking for a PNG file output so that all screenshots are in the same format. I’m only using them as large thumbnails. If you could offer any hints how to achieve that, would be much appreciated. thanks for your help.
Can’t say for sure, unfortunately, because I haven’t tried this myself.
This could work if you are using HDR rendering with SDR output:
Maybe combining WaitForEndOfFrame with CaptureScreenshot would also work in that case.
If you are using HDR rendering with HDR output, it’s more complicated because then you probably have to add a temporary tonemapping pass for the screenshot.