I have a .shp file with buildings represented as polygons.
My goal is that, in a 3D representation, I am able to have different colors in a single polygon (building) depending on its height. For example, from 0 to 10 meters, buildings are yellow, then from 10 to 20 m they are blue, and so on.
Is there any way of doing this in QGIS or using PyQGIS?
I have tried to add copies of the buildings to the shapefile with different heights and the number of copies depends on the height of the building, and then pick a different color for each building copy, but it does not work, still only one color appears.
EDIT: This is an exemplification of what I'm looking for:
EDIT2: Using the Properties > 3D View > Rule-based, and then View > New 3D Map View, I get a 2D map :( :