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

Disable HDR #7966

Closed
lilleyse opened this issue Jun 25, 2019 · 8 comments
Closed

Disable HDR #7966

lilleyse opened this issue Jun 25, 2019 · 8 comments

Comments

@lilleyse
Copy link
Contributor

There have been many issues related to HDR causing imagery to appear darker in Cesium:

Personally I do not think HDR provides enough (or any) of a visual quality improvement to justify being on by default. The problem is very little of the Cesium rendering engine outputs high dynamic range values so tone-mapping is ineffective and only darkens the scene.

We should consider disabling it on everything but PBR glTF 2.0 models, where the tonemapping would just be part of the PBR shader.

@GatorScott
Copy link

+1

@mramato
Copy link
Contributor

mramato commented Jun 25, 2019

I agree as well, I feel like HDR went in prematurely and it needs a lot more thought to be enabled by default. It affects too many things in unintended ways.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 27, 2019

Agree to turn it off by default. I would think this includes glTF PBR models but that is up to @lilleyse.

@ProjectBarks
Copy link
Contributor

ProjectBarks commented Aug 13, 2019

I made a quick sandcastle example to see the differences between HDR and non-HDR cesium. From what I noticed, disabling HDR makes cesium look cartoon-ish and models have harsh shadows.

It might be worthwhile to:

  • Enable HDR on glTF models or
  • Leave HDR enable but create a sand castle to show how to enable/disable

@lilleyse
Copy link
Contributor Author

Just seeing how washed out the milk truck looks with HDR disabled I think it will be a good idea to add tonemapping to the PBR shader when HDR is disabled.

@lilleyse
Copy link
Contributor Author

And both the atmsophere and shadows can be tweaked when HDR is disabled.

@OmarShehata
Copy link
Contributor

The reason it looks washed out is because of our PBR shader is trying to output HDR values right? These equations were created with HDR in mind for example: https:/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/processPbrMaterials.js#L787-L790

@lilleyse
Copy link
Contributor Author

lilleyse commented Sep 6, 2019

HDR was disabled by default in #8055

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

No branches or pull requests

6 participants