Sie sind nicht angemeldet.

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

1

Donnerstag, 6. Juli 2017, 21:51

Load hotspot before pano? How?

I seem to remember a way to force a hotspot(s) to load before the underlying pano appears -- or something like that -- but can't find a reference. I have an image meant to cover the underlying pano on start but in some cases the pano appears briefly before the cover image. It needs to be a hotspot so this works in VR Mode.

Any help would be appreciated.

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Freitag, 7. Juli 2017, 15:12

Hi!

I guess, you should move the cover hotspots out of the <scene> node, add keep="true" to these hotspots. And then maybe call 'loadscene' after the cover hotspots were loaded. Just a guess on the fly though, further details depend on your code and impelentation.
Regards,

Alexey

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

3

Freitag, 7. Juli 2017, 17:20

Preload!

I remember the feature I was looking for. It is the preload attribute for layers/plugins. But it seems that doesn't exist in hotspots!

Klaus, please add preload to hotspots. I trust it is easy enough. This could be an important attribute as VR Mode, which only uses hotspots, becomes more important.

4

Freitag, 7. Juli 2017, 23:06

Hi,

laus, please add preload to hotspots. I trust it is easy enough.
The preload feature is everything but not easy! ;-) It's a very special edge-case out of the normal internal workflow. If possible I would recommend not using it - normal loading has the advantages of unblocked and parallel loading. Then using preload then everything is waiting until the preloaded file has finished loading.

If you're using scenes in your xml you could put the 'preload' hotspot out of the <scene> elements, add keep=true to it and load the first scene in the onloaded event of the hotspot. The result would be the same.

Best regards,
Klaus

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

5

Samstag, 8. Juli 2017, 00:56

Thanks, Klaus.

Your (and Alex's) workaround works, of course. Regarding issues you see with preloading, I understand your point. still, it seems to me that a preload attribute for hotspots would have as much value as it does for layers. Cast my vote in favor.