Unity-Technologies / GenericFrameRecorder

This GitHub package is DEPRECATED. Please get the new Unity Recorder from the Asset Store (https://assetstore.unity.com/packages/essentials/unity-recorder-94079) Use the editor builtin Bug Reporter to report issues. You can track and vote for issues on the Issue Tracker (https://issuetracker.unity3d.com)
MIT License
534 stars 66 forks source link

Linear color space is not captured correctly #85

Open artyom-zuev opened 5 years ago

artyom-zuev commented 5 years ago
What happened?

Any PNG frame captured from linear color projects comes with completely incorrect colors - everything is darkened and saturated, as if a gamma color curve was applied on top of original rendering.

Recorded colors: https://i.imgur.com/bCtq61g.jpg

Expected colors (viewport screenshot): https://i.imgur.com/YSjQ8OC.jpg

A workaround for this was suggested a long while ago in an issue about same problem appearing during 360 panoramic captures, which was to switch the project to gamma color space. Unfortunately, this is not a correct workaround, since gamma space drastically alters all shading gradients and completely changes lighting and post processing from expected output. Linear projects are never meant to be switched to gamma space.

As of 2018.1.1f1, ScreenCapture.CaptureScreenshot function seems to capture viewport colors correctly, so its implementation could be a good starting point for investigating a fix for this. :)

Is it reproduceable?

Yes.

Released package version / tag?

Release 0.2 from the Asset Store.

Unity version, operating system, target platform (standalone windows, mac, iOS, PS4...)?

2018.1.1f, Windows 10, editor environment

Luzido commented 5 years ago

Sadly, I have the same problem with linear workflow. Hope this can be fixed soon.

Best wishes

JexD commented 5 years ago

same here, Linear workflow is very needed :)