I’m using CesiumJS to view point cloud based 3DTiles. I’d like to be able to toggle showing points in a specific color range but it doesn’t seem to work. Should the following code work to hide any points that don’t have a red value of 242?
tileset.style = new Cesium.Cesium3DTileStyle({
show : “${Red} !=242”
});
Based on this I’d expect to see the red property unless it’s getting transformed in the API itself. Also, can you expand on converting a color value to between 0 and 1. There is no information on how that’d be done in the link you provided.
@dzung I’ve applied this example to ion asset id 168554 and it doesn’t seem to work. Would you be able to look at that asset and see why it isn’t? The color I’m trying to turn off should be 242,242,242.
I took a look at your asset and was able to apply the styles mentioned in my previous post. Please check out this Sandcastle. To apply the style you will need to click on the Apply Style button at the top left corner of the viewer.