CesiumJS 1.103 3D Tiles Opacity Problem

Hello community.
The recent versions of CesiumJS does not work the same as the previous ones regarding the management of the opacity of the 3D Tiles.

In the following Sandcastle example it shows that it only works correctly with values 1 or 0 opacity.

Has something changed in how to manage the 3Dtiles styles in this version or is it just a bad coding of mine?

Thanks a lot

Opacity Sandcastle

Hi there,

Would you mind being specific about what versions of CesiumJS you’re referring to? There’s been a few major changes recently, including a move to WebGL 2 by default in 1.102, and a major refactor of our model code in 1.97.

Knowing when the regression may have occurred would help us track down the source of the issue.

Thanks!
Gabby

Hi @Gabby_Getz , Thanks for your answer.
As the post title said, i’m referring to CesiumJS 1.103 version, but versions 1.97 and 1.102 also gave me failures in this functionality.
The example I set up in Sancastle fails with 1.103.

The last version that worked for us was 1.96.

Best
Moises

Hi!

Setting the opacity to 0.9 in the code seems to do the trick.

const viewModel = {
  opacity: 0.9,
};

This will make the slider functional again

Hi @Brian_de_Vogel
Thank you for your reply.
Indeed, when 3dtile loads with 0.9 opacity it works correctly but only in intervals between 0 and 0.99 when you go back to the value 1 opacity it malfunctions again.
The solution of limiting the opacity to less than 1 is not good since the collisions are lost and the experience is not the same.

Perhaps it is opportune to open an issue to solve this functionality that worked well until version 1.96.

Best

Moises

The solution of limiting the opacity to less than 1 is not good since the collisions are lost and the experience is not the same.

Perhaps it is opportune to open an issue to solve this functionality that worked well until version 1.96.

Yes, if you could please open an issue in GitHub, we would like to track this as a regression.

Thank you!

Open issue. 3D Tiles Opacity Problem since 1.97 version · Issue #11199 · CesiumGS/cesium · GitHub

Thanks @Moises_Herrera!