How to set Height offset after set clampToGround is true in geojson

Hi Ahmed,

Sorry for my late response.
This is a new link of the demo Sandcastle demo I mentioned above:

Does it work for you?

Thanks,
Yujie

Just to clarify, you need to open the ā€œSample line positions and draw with depth test disabledā€ option of ā€œClamp to Terrainā€ demo in Sandcastle Gallery.


Thank you all. I’ll take a look and keep working on it.

There’s no option ā€œSample line positions and draw with depth test disabledā€ in sandcastle with cesium 1.116 and all demos you provided back in 2021 are not working. I tried to reproduce height offset effect of polyline above the ground from your previous post, but I couldn’t manage to.

Sandcastle: https://sandcastle.cesium.com

clampToGround property seems to negate height of my points.

Is it possible to be done without having hundreds of sampled points that follow the mountain curvature?