Appearances/colors do not show when using City GML (buildings appear white)

Hi,

Using FME, I’m experimenting with Cesium.

I’m uploading building and waterbodies 3D models as CityGML to Cesium Ion.

The models have colors associated with them (i.e the buildings have red roofs, grey walls, the waterbodies are blue).
However, when uploaded to CesiumIon, these colors disappear. Whenever I download the uploaded files from and view the GML data on my desktop, the colors are there.

I’ve looked on this forum but couldn’t find an explanation.

I’m trying to find a solution for:

  • EITHER: Having the appearances from the GML being visible the Cesium ION Asset directly.
    (Asset ID, buildings: 636787 - Asset ID, waterbodies: 636784)

  • OR: Maybe setting the colors within the .html file that is used to view the Assets. So far, I haven’t been able to do so, but I have zero experience with it. The example code I’ve found online is more complex then I need, such as code for conditional styling (I just want to give all buildings the same color).
    Code such as below doesn’t have the desired effect:

    //Color the objects
    var defaultStyle = new Cesium.Cesium3DTileStyle({
    color: “rgba (255, 255, 255, 1)”,
    show: true
    });
    newBuildingsTileset.style = defaultStyle;
    // Move the camera to buildings.
    viewer.flyTo(newBuildingTileset);

Thanks in advance for your help!