Shining Color for complex Polygons

Hello,

for polygons which are extruded the colors of all sides of the model are little bit different, which looking grat. It feels like shining. see picture
https://picload.org/image/wplwwcc/2d.png

if i have complex models, which polygons are describe one by one, then there is only one color with no shining effect. see picture
https://picload.org/image/wplwwcp/3d.png

so how i get this nice effect for all polygons?

i use 3dCityDB Viewer which use cesium for 3d Buildings.
They use PolygonHierarchy to describe the buildings.
https://github.com/3dcitydb/3dcitydb-web-map

i check the fabric material description but i don't get it working.

Hello,

How are you creating the models in the second picture? Are you still using polygons?

If so, Cesium doesn’t have official support for polygons that are not parallel to the earth surface. That could be why your lighting isn’t working.

Best,

Hannah

Hello Hannah,

yes it think it use poygons for all surface which are described one by one.
Whats about other models? How they are created? Are there some solutions?

Thanks

The best solution would be to represent your building models using glTF and use our new 3D tiles specification to load them. To learn more about 3D tiles, see this forum post: https://groups.google.com/d/msg/cesium-dev/tCCooBxpZFU/7hxT_E4pGgAJ
I can’t think of any workarounds using polygons other than to just use your first approach using extruded polygons.

Best,

Hannah