-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Problem with overlapping billboards #5007
Comments
@bagnell is there anything we can do about this other than sorting individual billboards by depth? |
The way the issue is effecting me is the exact same as lucasvw. The edges of our circular icons show through each other. |
Marking this as next release so that we look at it for March 1st, but if the fix is non-trivial for some reason, it will probably have to wait for April 1st. |
@bagnell also will this make it in time for 1.31? |
@lilleyse No, but a workaround to get the old behavior is: |
@bagnell How does that work for an entity collection? I can't figure out how to get it working with the entities in this example: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases&gist=73d3d23629edb117ca096324d0af7993 |
@smills2929 We don't expose the billboard collection for entities but you can access it with a private property. viewer.scene.postRender.addEventListener(function() {
var clustering = viewer.dataSourceDisplay.defaultDataSource.clustering;
var billboardCollection = clustering._billboardCollection;
if (Cesium.defined(billboardCollection)) {
billboardCollection.blendOption = Cesium.BlendOption.TRANSLUCENT;
}
}); If you won't be removing all billboards, you can remove the event listener after it is called. |
The sample shown in screenshots at the top of this issue is a bad one. The old versions only look "good" because of the old bug where the front billboard was completely wiping out the rear ones. The sample code is asking for muddy overlap, and the old bug is what saves it from itself. A much better example of this bug is shown in @lucasvw screenshots. This can be seen in the "GeoJSON simplestyle" sandcastle demo, by zooming out. For example, compare GeoJSON in 1.27 to GeoJSON in 1.30. The newer version is on the right: I have some ideas about this. I'll open a PR soon. |
Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/3jqWe5Ksi0k
This issue is the result of the transparent billboard fix that came in 1.30 #4886
Before:
After:
Parts of the green billboards are showing through the solid parts of the yellow billboards
The text was updated successfully, but these errors were encountered: