1. A concise explanation of the problem you're experiencing.
Hi, I'm working with Cesium 3D Tiles to visualize very large datasets, and I was wondering if there is any way to alter the order/priority with which these tiles are rendered? I have a code sample that colors tiles based on order of loading using a Red -> Green -> Blue spectrum (earliest loaded are R, last loaded are B), but I cannot find a way to alter this order.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
tileset.tileLoad.addEventListener(function(tile) {
tile.color = Cesium.Color.fromBytes(r, g, b, alpha);
if (g < 255)
{
if (r > 1){
r -= 255/50;
}
g += 255/50;
}
else{
if (g > 1){
g -= 255/50;
}
b += 255/50;
}
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
My goal is to make it so that a tile is composed of features that are geographically close together, and then use the camera's view frustum to select those features using the tileVisible or tileLoad events. Currently individual tiles are spread out over a very large area, so I am interested in being able to manipulate this property.
4. The Cesium version you're using, your operating system and browser.
1.37 on Chrome.
Thanks!
Aditya