I have a city model containing a bunch of buildings in .dae format, extracted from Google Earth .kmz files, each in their structured directory. I want this city model to be published as 3D Tiles and color the buildings by their attributes, for example by their street names.
I worked through quite a long way using dae2gltf, gltf-pipeline and finally glbtob3dm. It appears to me, however, that even if I manage to provide the tileset.json, there's no way I can bind the attributes to the building model.
I read this discussion about binding attributes/properties to the building for styling:
To do that I'll need at least a BATCH_ID for each building model. But glbtob3dm does not automatically provide a BATCH_ID or option to attach an BATCH_ID to the model so that's not possible.
I've also find this thinking of using tileset.json for styling here:
But this issue is closed and I'm not sure why and whether this solved by some other approach.
So is there a way I can workaround to achieve what I want? Sounds to me by modifying the .b3dm I can get the BATCH_ID:
and after that I can use model.color for the styling?
Or is there a different route I can take to make the styling of 3D Tiles happen, when it's converted from a COLLADA .dae model?
BTW I'm using Cesium 1.34 on a Win10 desktop, Node.js 4.8. Not sure if these are relevant to my question, though.
Thanks in advance.