variables in the command LOADSCENE

  • Friends, need your help

    execution of the program fragment on desktop Safari in iPad compatibility mode

    Code
    <action name="start">
    start_1(get(startscenename),get(prev_hlookat),get(prev_vlookat),get(prev_fov));
    </action>
    ...
    <action name="start_1">
    trace(%2,' ',%3,' ',%4);
    loadscene(%1,view.hlookat=%2&amp;view.vlookat=%3&amp;view.fov=%4, MERGE, BLEND(1));
    trace(view.hlookat,' ',view.vlookat,' ',view.fov);
    </action>


    have the following result

    Code
    INFO: -245.58631090712493 7.3763463730371654 90
    INFO: -245.58631090712493 38 105


    that is, of the three parameters: %2, %3 and %4 correctly is implemented only the first - view.hlookat=%2
    if I change their positions, for example

    Code
    ..,view.vlookat=%3&amp;view.hlookat=%2&amp;view.fov=%4,..

    then correctly is implemented the first parameter - view.vlookat=%3

    again will turn your attention to the fact that this is happening when emulating iPad Safari browser for Windows
    win7x64, Safari 5.1.7 Webkit534.57.2, Krpano 1.0.8.15

    thanks in advance
    Serge

  • Try with:

    Code
    loadscene(%1, null, MERGE, BLEND(1));set(view.hlookat,%2); set(view.vlookat,%3); set(view.fov,%4);



    I think you mixed order of paramenters in loadscene call. To that first and than set view as you want.
    Should work.

  • Hi,

    the reason for this bug was a missing xml entity resolving in the html5 version.

    In the flash version, xml entities like '&amp;' were automatically converted to '&' for <action> elements, but in the html5 version this wasn't done not yet. And this leads to the parameter problem here, because the real '&' character was required.

    This will be fixed in the next release (1.16.2).

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!