I tired to draw line on the b3dm 3d tile using Cesium.
The line is displayed on the 3d tile.
But there is one issue. It is displayed as well with some Camera angles, not well with some Camera angles.
Some line segments are hidden behind the 3d tile.
This is a code for add tileset
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: tile_url,
heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
terrainProviderViewModels: terrainModels,
maximumScreenSpaceError : 1, // Temporary workaround for low memory mobile devices - Increase maximum error to 8.
maximumNumberOfLoadedTiles : 10000 // Temporary workaround for low memory mobile devices - Decrease (disable) tile cache.
}));
and this is a code for add line
viewer.entities.add({
polyline : {
positions : new Cesium.CallbackProperty(function() {
return currentPositions;
}, false),
material : new Cesium.Color(0.99, 0.89, 0.15, 1.0),
width : 5
}
})
I already have checked sample code for draw line on the Cesium Site.
By my checking, it does works as well. But I have above issue in only our model.
Please make me clearly.
Thank you.