1. A concise explanation of the problem you’re experiencing.
Entity with BillboardGraphics defined are not properly clamping to ground(clampToGround). This is not true for all of our billboards( we have a total of just over 900), and billboards that are causing the problems are different each time I run our application. I think something has changed in the last couple of builds. I’ll do a git bisect to check. Has anyone else noticed a change with billboards and clampToGround?
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
Selected Object:
id: 2bc4ce30-6729-402a-a713-a84207447048
position: {“x”:4148348.3120467556,“y”:3981164.0971134626,“z”:2753255.82268478}
orientation: {“x”:-0.2085740042263669,“y”:-0.4892534597703206,“z”:-0.7789996326139755,“w”:-0.3320956326889017}
billboard:
image: images/symbols/SFGP/SFGPUS-----D.PNG
show: true
scale: 1
horizontalOrigin: 0
verticalOrigin: 0
eyeOffset: {“x”:0,“y”:0,“z”:0}
pixelOffset: {“x”:0,“y”:0}
rotation: 0
alignedAxis: {“x”:0,“y”:0,“z”:0}
width: 48
height: 48
color: {“red”:1,“green”:1,“blue”:1,“alpha”:1}
heightReference: 1
show: true
Selection Box:
id: 5754b731-4479-4042-8536-9993d1eea3aa
position: {“x”:4148348.3120467556,“y”:3981164.0971134626,“z”:2753255.82268478}
billboard:
image: images/icons/border.png
scale: 1
horizontalOrigin: 0
verticalOrigin: 0
eyeOffset: {“x”:0,“y”:0,“z”:0}
pixelOffset: {“x”:0,“y”:0}
rotation: 0
width: 70
height: 70
color: {“red”:1,“green”:1,“blue”:1,“alpha”:1}
heightReference: 1
Check the images: the info above is from the badSelection.png
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I’m trying to show the selected unit, and we had to create our own selection box which looks just like the cesium selection box. We have a lot of stacked units, and we don’t always allow selection, so we had to right our own selection box(a billboard graphic). I can tell from moving the camera that the units that are not working properly are not clamping to the ground(this units move while moving the camera).
4. The Cesium version you’re using, your operating system and browser.
**Cesium 1.41, Windows 10, Chrome **Version 63.0.3239.84 (Official Build) (64-bit)