Material for a b3dm tiles

I transformed CityGML with FME into the b3dm format and I want to change the Material definition for the b3dm tiles. Is there a way to change the material of the features like the changing of the color with the Cesium3DTileStyle?

The b3dm files have a material definition in the gltf JSON. Swapping the material there is working.




Is there a way without touching the b3dm files and specify it via CesiumJS?

I am using:

  • Cesium 1.69.0
  • Windows 10
  • Firefox 79.0

CesiumJS doesn’t support dynamically changing the material in 3D Tiles (like changing roughness/metallic factors), although you can use the 3D Tiles styling language to change color and opacity like in this code example: