Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Dienstag, 23. Juli 2013, 15:42

set(view.fovmax,VAL) not working in HTML5

Is it possible that set(view.fovmax,111) is not working in HTML5? I can only set a fovmax statically in the <view> tag itself, but attempting to set it dynamically fails (as in, the value is not used). Is this a know issue?

Thanks!

Beiträge: 718

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Dienstag, 23. Juli 2013, 18:43

I use action which limits FOV between 20 and 100 for ipads and iphones... Never noticed any problems...

Check out that the scene has limitview="range" atrribute.
Regards,

Alexey

3

Donnerstag, 25. Juli 2013, 12:21

Thanks for your input, Alexey. Unfortunately, that didn't help.

I did find the culprit, however. Klaus, not sure if this is something for you to look at, or if there's a simple logical explanation.

This DOESN'T work:

Quellcode

1
2
3
oninterrupt(break);
lookto(90,0,80, smooth(45,45,60), false);
set(view.fovmax,111);


But this DOES (i.e. the fov is correctly limited in HTML5 [it always works fine in Flash...])

Quellcode

1
2
3
oninterrupt(break);
set(view.fovmax,111);
lookto(90,0,80, smooth(45,45,60), false);


In other words, the order of set and lookto matters.

Beiträge: 718

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Donnerstag, 25. Juli 2013, 12:46

i see the reason, I guess. Oninterrupt(break) breaks the current action. If you didn't specify "nonblocking" parameter to "true" for your lookto(); action, then lookto executed first, and after its completion set(view) is fired. If lookto is interrupted by the user, the lookto action stops and set(view) is not launched. In your second working example set(view) is fired before the lookto and thus is not blocked.

I tried this code and it worked:

Quellcode

1
2
3
oninterrupt(break);
lookto(90,0,80, smooth(45,45,60), false,true);
set(view.fovmax,150);


When nonblocking is set to "true", the set(view) is executed just outright during the lookto action.
Regards,

Alexey

5

Donnerstag, 25. Juli 2013, 13:01

Ah, yes, that makes sense! I'm amazed by your insight into all this, well done!!

Thanks, Alexey!