You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CesiumJS versions
Issue present in CesiumJS version 1.105 & 1.105.1. (No issues in cesiumjs version 1.92) Only tested in versions: 1.105, 1.105.1, 1.92
Expected behaviour:
When changing the style of a Cesium3DTileset using either of the following:
I expect that all existing / newly loaded tiles to respect the assigned alpha value. Regardless of if the style has been added before or after the initial render of a Cesium3DTileset.
Actual behaviour
When changing the alpha value of a Cesium3DTileset, existing tiles use the old alpha value. Newly loaded tiles use the new alpha value.
The alpha value is respected if the style has been added prior to the model being added to the scene. If the alpha value is changed after this, the issue occurs:
Sandcastle example:
By showing the tiles content volume, we can see that older tiles aren't affected by the alpha value change.
Ok, I've tested on all versions between 1.92 and 1.105.1, it looks like the bug was introduced in version 1.97. These were the major changes in this version.
Maybe texture caching is the culprit?
previousColor is storing this._color, and when this._color is later being changed by the style, this also changes previousColor. The correct solution would be to use a scratch Color variable for previousColor. Then, use Color.clone to copy the color into previousColor, before potentially changing it via the style.
CesiumJS versions
Issue present in CesiumJS version 1.105 & 1.105.1. (No issues in cesiumjs version 1.92) Only tested in versions: 1.105, 1.105.1, 1.92
Expected behaviour:
When changing the style of a Cesium3DTileset using either of the following:
I expect that all existing / newly loaded tiles to respect the assigned alpha value. Regardless of if the style has been added before or after the initial render of a Cesium3DTileset.
Actual behaviour
When changing the alpha value of a Cesium3DTileset, existing tiles use the old alpha value. Newly loaded tiles use the new alpha value.
The alpha value is respected if the style has been added prior to the model being added to the scene. If the alpha value is changed after this, the issue occurs:
Sandcastle example:
By showing the tiles content volume, we can see that older tiles aren't affected by the alpha value change.
Sandcastle
Browser:
Tested on Chrome (Version 113.0.5672.127) & Edge (Version 113.0.1774.50)
Operating System:
Windows 10 Enterprise - version 21H2
The text was updated successfully, but these errors were encountered: