# Canvas darkness issue - Version 1.52 and up

**URL:** <https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907>\
**Category:** CesiumJS\
**Created:** [January 18, 2019, 4:50am UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907 "2019-01-18T04:50:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_A](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Josh\_A](https://community.cesium.com/u/Josh_A)\
**Post date:** [January 18, 2019, 4:50am UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/1 "2019-01-18T04:50:57Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

Curious as to whether anyone else has noticed this. We recently upgraded to 1.52 from 1.5 and noticed the cesium canvas constantly looks dull, as though there is a transparent dark layer on top. It also effects the billboards, and as an experiment we changed the billboard colour to white, colour picker reads this colour as #D1D1D1

To clarify, this effects the entire canvas and not just the billboards. White billboards are just a quick way to visualise the problem.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

[Sandastle link](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/#c=tVhtTxs5EP4rFvchGxGcEIJUkTS6QnMqaipQk/Y+lOrk3XWChddeeb2BtOK/33jX+75pIL2LgHg943lmxuPHs2yIQhtGH6lCb5Ggj+iKRiwO8Ndkzul4yeOVFJowQVWnO74Td2IDq2SomRQRLPt5JxB8PBJQRdCFtYcjjwqK09lepgJLo6aKmb0Tz+PUsk80WchYefRWyYBFFDDsgkIUYeL7jvX2Y8Df5xLMJfGdDsb9/OddGEb9BQlCTo1e/yHg/RXxGGea0ag0xCDp9LLYuibahjdY31PhrGLhGSWnkHezTJggQvZE+Wci1sb70/NxIQmYYAHklMeRpmrBfhiNs5ICFcTl1IdZrWKaJNyICiDspWuZWONC2Y7Gv9KueFU8/HJNq7/NydxPE4KigdzQOQMhVE1FFDJxGTPu1yvuNp93uuOK+vkgcTYT4xXsw5I+aad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8sCCUQcqy4A+/jmsKrONHw6u3GkDyNvSjf/j8yqitF6gIzrpWEHvkCqbVLnNEQunr7O8BvyhsZQrVDUV+gUfhUmnalgteGE0V8Fkdl4XMNlpmaq5SW7RhPCGdrYXjdh/psIp5oGV6gYQU1E7kSDl5QlgLspJ+laOKzDWzh27uj2v9b7o6gVyBRBJJVzHlyiRxNJ33Qrywz//IAnBvwlZOtUbk/nc7TSYzxpA+PzVU2ZFBPfZpowyrTwv2JdqW/nU60mlZrZKL96a2hSZTw5KQPz02NZqlN0uxqKBvAV2YthAhMCk+nZkSeYDQcDGAMXBfaaUOCJy5cXfC8MQxfuYZRMvUlBC0QdBKITh7UbngNr48GB5JqQPfhNCzWooZHVcldW9I+pZcGsrcGMjv6n2RvWMre3uQ1r67/N4ktrdArk9lPK9HWaT8r1Kym/wU)

**4. The Cesium version you’re using, your operating system and browser.**

observed on all platforms in 1.52 and 1.53, not present in 1.5

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [January 18, 2019, 12:33pm UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/2 "2019-01-18T12:33:56Z")

</div>

I think the color changes are related to the new HDR rendering, which allows colors to be in a broader range, which then get tonemapped before being displayed. So if something was already in the standard range it might have been dulled by the tonemapping

You can turn it off by setting the boolean on the scene:

[https://cesiumjs.org/Cesium/Build/Documentation/Scene.html?classFilter=Scene#highDynamicRange](https://cesiumjs.org/Cesium/Build/Documentation/Scene.html?classFilter=Scene#highDynamicRange)

Let me know if that turns out to be the cause of the change.

---

<div class="post-metadata">

**Author:** ![Josh\_A](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Josh\_A](https://community.cesium.com/u/Josh_A)\
**Post date:** [January 19, 2019, 12:38am UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/3 "2019-01-19T00:38:01Z")

</div>

Hi Omar,

Thanks for the reply, but it doesn’t seem to be effected by HDR rendering being set to false,

Interestingly I have just opened our application/the sandcastle on an old computer (OSX 10.10.5 safari 10.1.1, Intel HD Graphics 6000) and the white shows as white with HDR being on or off. It would make sense that HDR rendering was not supported on the older machine, but changing the boolean does not change the appearance on current hardware/browsers.

Regards,  
Josh

---

<div class="post-metadata">

**Author:** ![Ashley\_Mort](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ashley_mort/32/8527_2.png) [@Ashley\_Mort](https://community.cesium.com/u/Ashley_Mort)\
**Post date:** [January 21, 2019, 3:47pm UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/4 "2019-01-21T15:47:07Z")

</div>

The HDR false setting helped us with this issue on Win 10 w/ Intel 4600 and Nvidia Quadro K4100M.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [January 21, 2019, 3:53pm UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/5 "2019-01-21T15:53:09Z")

</div>

Thanks for reporting that it works for you Ashley!

To Josh, so when you open the Sandcastle in your first post, and set:

viewer.scene.highDynamicRange = false;

``

On the second line, do you _any_ color change? Does the globe color change but not the billboards?

---

<div class="post-metadata">

**Author:** ![Josh\_A](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Josh\_A](https://community.cesium.com/u/Josh_A)\
**Post date:** [January 21, 2019, 9:36pm UTC](https://community.cesium.com/t/canvas-darkness-issue-version-1-52-and-up/7907/6 "2019-01-21T21:36:19Z")

</div>

Hi Omar,

Sorry for the confusion! I am not sure how I missed it before but this actually does solve the problem we were experiencing - white is white again 🙂

Thanks for your prompt help, very much appreciated

Regards,

Josh
