-
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
Clamped billboard has incorrect bounding sphere in 2D and Columbus View #5042
Comments
Came up again in the forum here: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/z4o1l7bKtZs |
This may actually be fixed by #5136 (still open). Someone should test out that branch for this issue. |
@rahwang we recently merged #5136 into master. Can you please test if this issue is fixed? Try the hosted version from CI: http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/master/ |
The problem has something to do with billboards with var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
viewer.scene.globe.depthTestAgainstTerrain = true;
var billboards = scene.primitives.add(new Cesium.BillboardCollection({
scene: scene
}));
billboards.add({
image : '../images/facility.gif',
position : Cesium.Cartesian3.fromDegrees(-122.1958, 46.1915),
heightReference : Cesium.HeightReference.CLAMP_TO_GROUND
});
billboards.debugShowBoundingVolume = true; @bagnell any ideas? |
Hello from the future! I am also suffering from this issue -- as a result, I can either clamp billboards, or use a terrain provider, but never both. Is there any update on the problem? My first thought was to just "clamp" them myself using |
Sorry @thw0rted, no I don't have an update. Instead of clamping, you can try using |
I'm working up something like this now. Because of the way I work with data, it's going to be simpler to make Entities, then "fix" their height, rather than correcting the data before creating Entities. I'll let you know how it goes, but just fixing the |
Tentatively optimistic -- I think my implementation works, though right now I'm only dealing with those that have a |
Hello the earth, we're near 2025... The only way I found to avoid floating point when you change from a scene mode to another is to change the billboard attribute heightReference (So you need to redraw all your Point entities) Here, noRelief = no terrain or terrain is ellipsoid (flat)
So I think that changing the Cesium code somewhere, to avoid clamping to ground when there is no relief should be easy to do. |
https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Clamp%20to%20Terrain.html
The selection indicator is in the wrong place and the camera seems to be tracking wherever the selection indicator is pointing to
The text was updated successfully, but these errors were encountered: