I have very simple instanced geometries (cylinders), inside a primitive, which are distributed over terrain.
What is the correct way to update the instances modelMatrix?
Should I build a new primitive with the updated model matrices each time or is it better to just switch to a primitive collection?
Also, is there a callback/event that tells me that the terrain changed or a certain tile has been replaced?
Thankyou for your time.
How many instances do you have and how often do you update the model matrix? You may be better off using one geometry instance per Primitive and updating the primitive’s model matrix (which is allowed in this case).
Patrick
Also, for this:
is there a callback/event that tells me that the terrain changed or a certain tile has been replaced?
There isn’t anything in the public Cesium API yet, but I expect we’ll expose an event at some point.
Patrick