orlando.kml – works great, roads are locked to the ground.
orlando_tessellate.kml – roads are not very visible, but do not move.
orlando_tessellate_CTG.kml – roads are not very visible, but do not move.
orlando_tessellate_RTG.kml – works great, roads are locked to the ground.
Here’s the interesting thing:
I switched the terrain provider to: 'http://www.vr-theworld.com/vr-theworld/tiles1.0.0/73/'. The exact same kml lines start to move when the camera is moved around(ie they do not appear to be clampToGround). It appears that there is something special about agi’s terrain? If I switch back to https://assets.agi.com/stk-terrain/world the lines do not move around.
// code to load the different kml files( I'm adding the clampToGround option )
var options = {
"camera" : viewer.scene.camera,
"canvas" : viewer.scene.canvas,
"clampToGround": true
};
//viewer.dataSources.add( Cesium.KmlDataSource.load( '../../SampleData/kml/orlando.KML', options ) );
//viewer.dataSources.add( Cesium.KmlDataSource.load( '../../SampleData/kml/orlando_tessellate.KML', options ) );
//viewer.dataSources.add( Cesium.KmlDataSource.load( '../../SampleData/kml/orlando_tessellate_CTG.KML', options ) );
viewer.dataSources.add( Cesium.KmlDataSource.load( '../../SampleData/kml/orlando_tessellate_RTG.KML', options ) );
Is there anything we can do to fix the LineStrings from moving?
<tessellate>1</tessellate>
<gx:altitudeMode>clampToGround</gx:altitudeMode>
I also have some other features that need to render clampedToGround. I'm having trouble with billboards and polylines. Is there anything I can do to keep these objects from appearing to move as the camera is pitched? The attached pics are of corridors, that had previously been polylines.