loadpano with array

  • dear forum

    maybe anyone can see waths wrong.

    this loadpano code works well, exept setting the view, (at the end of the loadpano line...)


    <action name="next_tour_lat">
    set(plugin[loading].visible,true);
    delete(startscene);
    loadpano('../latrine/tour.xml',startscene=0&amp;
    layer[skin_title].html=Latrine&amp;layer[logo1].onloaded=null&amp;layer[logo1].visible=false&amp;
    layer[skin_title].parent=stage&amp;layer[skin_title].visible=true&amp;layer[skin_title].align=righttop&amp;layer[skin_title].y=55&amp;
    view.hlookat=90&amp;view.vlookat=-1&amp;view.fov=90, IGNOREKEEP, BLEND(0.5));

    delayedcall(5,set(layer[skin_title].visible,false));
    plugin[bingmap].activatespot(spot_latrine)
    </action>

  • Hi,

    when the tour.xml is a default one, then there a new scene will be loaded at the begin and so the <view> settings from the <scene> will get applied.

    But your 'view' settings are getting set before the scene loading.

    You could change the 'startup' action in the tour.xml and add KEEPVIEW to the loadscene() call there to kept your view settings.

    Best regards,
    Klaus

Jetzt mitmachen!

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