Hi,
is it possible to share datasources between two viewers ?
i.e. considering the syncing example in the sandcastle - esp. for 3d-Tiles ?
Rüdiger
Hi,
is it possible to share datasources between two viewers ?
i.e. considering the syncing example in the sandcastle - esp. for 3d-Tiles ?
Rüdiger
Great question! Two viewers can certainly view the same data source. Are you considering an application where two viewers can also edit the same data source? In this application, when edits are made, they are visible to both viewers.
-Sam
Hi there,
Yes, you can duplicate anything into different viewers. However, there’s performance penalities for multiple viewers, as well as the fact that you have to duplicate (not share or reference) that data between them. A Cesium viewer is its own instance with its own engine and memory and JS stack and rendering.
Depending on the complexity of a scene, it can get pretty crazy. Now, you can probably sync the view cameras in iteresting ways, but if there’s a lot of data it will get very slow very quickly. But some tricks where you calculate distance to camera (I usually do this every X seconds per item) for the items in a scene and stream them in and out based on that will speed up the overall performance.
Cheers,
Alex
Hi Sam,
is there a sandcastle or example code ?
Rüdiger
Of what?