1. A concise explanation of the problem you're experiencing.
I have added vector data polygons (*.vctr) and i3dm data to the scene. The pixels of i3dm data are overlayed by vector data. But I expect to see the trees as they are, without the red color from vector data.
I tried to change the order of primitives.add, but it does not change the draw order.
Can I configure something to change the z-order?
I found a todo "Future work Polygon z-order": https://github.com/AnalyticalGraphicsInc/cesium/pull/4665 may be it is a known issue?
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
var viewer = new Cesium.Viewer('cesiumContainer', {
terrainProvider: Cesium.createWorldTerrain()
});
var flstTileset = new Cesium.Cesium3DTileset({
url: ‘https://raw.githubusercontent.com/vitjok/testfile/master/vectordata/’
});
flstTileset.style = new Cesium.Cesium3DTileStyle({
color: ‘rgba(255, 0, 0, 0.3)’
});
var vctr = viewer.scene.primitives.add(flstTileset);
var treeTileset = new Cesium.Cesium3DTileset({
url: ‘https://raw.githubusercontent.com/vitjok/testfile/master/i3dm/’
});
var tree = viewer.scene.primitives.add(treeTileset);
viewer.zoomTo(flstTileset);
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I want to see the Polygons on the terrain and the trees over the terrain and over the Polygons.
4. The Cesium version you're using, your operating system and browser.
Cesium 1.46
Windows 10
Chrome 67.0.3396.87