Inconsistent label background transparency, when using "translucencyByDistance" property.

Label background transparency is all over the place, when I use “translucencyByDistance”. Screenshot of 3 labels, which all have different background transparency:


The only actual differences between labels are text and position. Most of the backgrounds will also stay semi-transparent even if you zoom in past the “near” point of the “NearFarScalar”.

Even with the same position, same text, same zoom level, but different padding, transparency can be completely different:

Is that a bug or am I missing something?

Here is link to Sandcastle which I used for these examples. You can change scenario in upper left corner.

Hi @TempName, thanks for bringing this up. It looks like a bug to me.
Can you please open an issue for this? GitHub · Where software is built.
If you have time to help us track it down, you could test your Sandcastle in some older versions of CesiumJS, to see if translucencyByDistance was broken by a recent change.

1 Like

I tested the example in older vesions. Looks like the bug appeared in 1.127. Labels behave as expected in 1.126 and older versions. I have also opened an issue on GitHub.

2 Likes