Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear color space is not captured correctly #85

Open
artyom-zuev opened this issue Jul 9, 2018 · 2 comments
Open

Linear color space is not captured correctly #85

artyom-zuev opened this issue Jul 9, 2018 · 2 comments

Comments

@artyom-zuev
Copy link

artyom-zuev commented Jul 9, 2018

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
Copy link

Luzido commented Jul 31, 2018

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

Best wishes

@JexD
Copy link

JexD commented Jul 31, 2018

same here, Linear workflow is very needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants