3Dtiles building color issue

1. A concise explanation of the problem you’re experiencing.

I manage to convert my buildings (shape files) to 3dtiles using FME.

Based on the code below, i set the color to white. However the buildings looks grey and the side ‘walls’ of the building color tone seems to be different from the roof.

The building (roof and side walls) is 1 object as i can move over and it change into yellow entirely.

Playing with the timeline only change the buildings from total black to grey.

At certain view, part of the buildings does flicker without any mouse movement.

I’m not sure if this is a 3dtiles issue or the environment variables. My location is near the equator.

Does 3dtiles format carry any color info from the original file or the code below overides it ?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

tileset.style = new Cesium.Cesium3DTileStyle({

color : “color(‘white’)”,

show : ‘${ROOF_HT} > 0’,

meta : {

description : ‘" "’

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I like to reproduce the white looking building seen in the New York 3dtiles demo. Looks really good!

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.36 ,windows 10, chrome

I think you are experiencing some of the same issue as this thread: https://groups.google.com/forum/#!topic/cesium-dev/kR7u5R5wq5k. The flickering should now be fixed in https://github.com/AnalyticalGraphicsInc/cesium/pull/5773.

The reason you are seeing gray instead of pure white is the style does not replace the source color. Instead it acts as a highlight, or multiplication, against the source color as stored in the tiles. Likely the diffuse color of the tiles is some value other than (1.0, 1.0, 1.0).

But it is possible for a style to replace the color by setting tileset.colorBlendMode = Cesium.Cesium3DTileColorBlendMode.REPLACE.