I want not to show Polyline under terrain surface

Hello,

I'm now making drone flight planner by using Cesium.

I'm using TerrainProvider and SimplePolylineGeometry, both work well in each,
but Polyline under terrain height is not hided by terrain.

How can I make polyline under terrain height to be hided?

Thanks,
Ko-hei

Hi,

Try setting this:

viewer.scene.globe.depthTestAgainstTerrain = true;

Eventually, this will be automatic. See #2160.

Sounds like a cool app, please share a link or screenshots as you make progress.

Patrick

Hello,

Thank you, that it!
Polyline goes under the terrain.

My application is for closed order, so I can't show full source of it.
But I made component for loading DEM tiles which are provided by Japanese
Geospatial Information Authority as TerrainProvider.

So, I will open this component as open source later.

BTW, Thank you for your cooperation!

Ko-hei

2014年12月21日日曜日 2時56分23秒 UTC+9 Patrick Cozzi:

Hi Ko-hei,

Thanks for the info. If any parts of the app are publicly available (even if closed source), we would be happy to showcase it on the Cesium website like we’ve done for similar apps for Australia and France:

https://cesiumjs.org/demos/nationalmap.html

https://cesiumjs.org/demos/ign.html

Let me know.

Patrick

Hello, Patrick,

Thank you for helping me about this topic.
With your help, I have already publish Tile/TerrainProvider from Japanese Geospatial Information Authority’s API,
in Github.

https://github.com/tilemapjp/Cesium-JapanGSI

Example is here.

http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html

If this is comes up to quality, please use showcase of Cesium.
It is my pleasure.

Thank you,
Ko-hei

2014年12月22日月曜日 22時09分44秒 UTC+9 Patrick Cozzi:

Thanks for the link. Nice progress. Are you going to do more development? Or is the focus on just showing terrain and imagery?

Patrick

My last development products, which use library in github, are closed.
So I can’t show them as public.

And
http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html
is just example of library, so talking about this URL, that’s all.

Ko-hei

Ko-hei,

Do you have more development you can share publicly? The demo at http://t.tilemap.jp.s3.amazonaws.com/cesium/index.html is great and if there were more details available to viewers we’d love to showcase it on the Cesium website: http://cesiumjs.org/demos.html

Sarah Chow

Cesium editor