While trying to add a couple of hundred copies of a model to cesium I stumbled across ModelInstanceCollection in the source code. I managed to get it to do part of what I wanted, but I’m slightly worried about the fact this method appears to be completely undocumented. Is this purely an internal method that shouldn’t be used directly or has it just not been documented? Also it I want to animate or update the positions of each model instances independently (possibly by updating each instance’s Transformation Matrix) is using a ModelInstanceCollection the best approach?
It is a private class which means it is subject to changes in the API, but this does sound like exactly what it was made for. I think the only reason it’s still private is just that we haven’t gotten around to exposing it yet. I opened an issue to expose it here:
So far I have 150 cars all moving around att the same time based on the results of a vissim simulation without a hiccup, so that part seems to work. Applying a rotation is doing weird things, but that may still be on me.
I need to add more than one of the same model in different locations. But I think the model instance feature has been removed. Even though it’s the same url, I’m having trouble rendering it. What path should I follow? Is ModelInstanceCollection still used? What is the alternative?
why this class was removed when this was working fine ? to force users go paid ion service … why its do difficult add it back ? I am planning to implement my own fully opensource simulation and animation on ThreeJS and ditch cesium for map layer use maplibre …god know what else will be suddenly removed