How to move entities that are under terrain to the top of it?
238 views
Skip to first unread message
micael...@gmail.com
unread,
Aug 23, 2018, 12:01:00 PM8/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cesium-dev
I'm drawing some entities with data that I get from a service.
However, the height values that I get always put the entities under the terrain. Is it possible to detect this and move them to the top of the terrain?
Thanks in advance.
Omar Shehata
unread,
Aug 24, 2018, 3:25:25 PM8/24/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
For example, when creating a point (https://cesiumjs.org/Cesium/Build/Documentation/PointGraphics.html) you can set the heightReference to `Cesium.HeightReference.CLAMP_TO_GROUND` and that'll ensure it's always above ground on the terrain. Here's a Sandcastle example: