Sie sind nicht angemeldet.

Taurus

Schüler

  • »Taurus« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

1

Sonntag, 17. März 2013, 16:19

onloadcomplete vs onviewchange in tour with multi-res pano

Hi, friends

to control the skin, I use the event "onidle" and "onviewchange"
after loading the panorama onidle gives signal that changes the skin in my tour according to the event onidle, but after that mistakenly detected onviewchange and skin again changes according to the event onviewchange *wacko*
at first I could not understand why defined onviewchange, because the pano is not rotated, not changing fov
now I assume that there issue is a continuation of loading tiles of multi-resolutions panorama

ie onloadcomplete event occurs earlier the time when I can properly use the event onviewchange

how do I solve the problem in this situation? *confused*
Thanks in advance for your advice

Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

Taurus

Schüler

  • »Taurus« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

2

Sonntag, 17. März 2013, 20:21

solved by software "traps"

the question was not relevant: I am now using software "traps" and I fix it

however, I still do not understand why the events do not work correctly

Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20

3

Mittwoch, 20. März 2013, 20:17

Hi,

the onviewchange event will be also sent when something in the pano image itself will be changed - e.g. when there a new tiles in multires-loading,

and in multires-loading, the the onloadcomplete event will be sent when the loading of the 'first current view' will be fully ready, but the viewer will still be loading tiles after that event - and so the onviewchange event can also be sent a several times after that event after the onloadcomplete event.

Best regards,
Klaus

Taurus

Schüler

  • »Taurus« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Belarus

Beruf: photographer & virtual tour developer

  • Nachricht senden

4

Donnerstag, 21. März 2013, 21:33

Thank you, Klaus

I already understood the situation
by the way, would love to be in a future release Krpano the following features:
wait([previewcomplete);
wait(blend);

best regards!
Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20