Quality levels for SPi-V tours
Hi,
I'm pretty sure this has been tried before, but I couldn't find anything related in the forums.
Basically, I'd like to allow users switch between 3 different quality levels in my panoramic tour, depending on their available network bandwidth. That is, for each node (scene) there will be 3 panoramic images of different resolution, trading off image fidelity vs download size.
Now, the question is how to wire them up in the .xml file? Obviously I can't simply create 3 layers for them in my panoelement nodes, since they will all be downloaded to the client at the same time.
The only solution I was able to came up with so far was to create 3 parallel "universes" of nodes in my .xml file, essentially mirroring the same content, but in different resolution, and then switch between them with the setView() API.
However duplicating content feels wrong and error-prone. Is there any way to dynamically change the "src" property of the layer nodes? Say, I could have a global variable, indicating which quality level we're at, and each layer would reference this global variable, adding scene-specific image name to it. However I'm not sure if this is possible.
What is the best way to approach this?
Any suggestions welcome.
Thanks,
Yury
fieldOfView | SPi-V dev