Problems autotour on iPad

  • I am conducting an exhibition autotour: http://www.imaginartejuegos.com/clientes/ejemp…ur/autotour.htm

    It works fine in the desktop computer, but not on the iPad / iPhone.
    These devices work well autotour, however when I press the arrow to display the bottom buttons, they do not work (can not go to the next picture or any other action).
    Neither step buttons work between rooms. It's like the scene lost control manual, at least in part, and only works on automatic.

    My purpose is to work around, as in the desktop computer.
    Can anyone help me know where the mistake of not working on the iPad?

    The code used can be seen in http://www.imaginartejuegos.com/clientes/thyss…er/autotour.xml

    A summary of the code is:


    <krpano version="1.0.8.15" title=" " onstart="startup();">


    <include url="skin/vtourskin_autotour.xml" />

    <!-- <plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" view="true" display="true" control="false" image="true" onloaded="open();" />-->


    <!-- set skin settings: bingmaps? gyro? -->
    <skin_settings bingmaps="false" bingmaps_key=""
    gyro="true"
    />


    ...


    <!--ESCENAS-->


    <!--=======================================================================================-->


    <scene name="scene_00" title="Hall" onstart="setuptour();" thumburl="panos/hall.tiles/thumb.jpg" lat="" lng="" heading="">

    <!--Autotour. Añadir setuptour(); al onstart-->
    <action name="setuptour">
    set(step,1);
    set(idletime,1);
    set(events.onidle, autotour() );
    </action>
    <action name="autotour">
    oninterrupt(dec(step););
    if(step == 1, wait(2); inc(step); );
    if(step == 2, action(skin_hideskin); inc(step); );
    if(step == 3, wait(2); inc(step); );
    if(step == 4, lookto(-12,2,90,smooth(100,50,50)); inc(step); );
    if(step == 5, looktohotspot(spot0, 70, smooth(100,50,10)); inc(step); );
    if(step == 6, loadscene(scene_01,%20null,%20MERGE,BLEND(2)); );
    </action>
    <!--Fin Autotour-->

    <panoview h="0" v="5" fov="76"/>


    <view hlookat="-104" vlookat="-22" fovtype="MFOV" fov="70" maxpixelzoom="1.0" fovmin="70" fovmax="120" limitview="auto" />


    <events name="panoevents" onloadcomplete="setuptour(); set(events[panoevents].onloadcomplete,null);"/>


    <preview url="panos/hall.tiles/preview.jpg" />


    <image>
    <cube url="panos/hall.tiles/pano_%s.jpg" />
    <mobile>
    <cube url="panos/hall.tiles/mobile_%s.jpg" />
    </mobile>
    </image>


    <hotspot name="spot0" hview="0" vview="0" fovview="90" hcenter="122.63" vcenter="0.000661222" onclick="looktohotspot(get(name),get(view.fovmin),smooth(400,20,100));loadscene(scene_01,%20null,%20MERGE,BLEND(1));lookat(get(panoview.h),get(panoview.v),get(panoview.fov));" bordercolorhover="0xffffff" borderalphahover="0" fillcolorhover="0xffffff" fillalphahover="0" alturl="imag/hotspot3_ij.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot0,0.1);" ath="122.63" atv="0.000661222" width="64" height="64" onhover="showtext(Cronología);">
    <point ath="101.561" atv="20.3462"/>
    <point ath="101.317" atv="-20.4684"/>
    <point ath="143.942" atv="-20.4684"/>
    <point ath="143.584" atv="20.4698"/>
    </hotspot>
    <action name="hidepanospotsaction">
    set(hotspot[spot0].visible, false);
    </action>
    <action name="showpanospotsaction">
    set(hotspot[spot0].visible, true);
    </action>
    </scene>

    <!--=======================================================================================-->


    <scene name="scene_01" title="Cronología" onstart="setuptour();" thumburl="panos/8020.tiles/thumb.jpg" lat="" lng="" heading="">


    <!--Autotour-->
    <action name="setuptour">
    set(step,1);
    set(idletime,1);
    set(events.onidle, autotour() );
    </action>
    <action name="autotour">
    oninterrupt(dec(step););
    if(step == 1, lookto(-72,3,80,smooth(100,50,5)); inc(step); );
    if(step == 2, looktohotspot(spot3, 70, smooth(100,50,10)); inc(step); );
    if(step == 3, loadscene(scene_02,%20null,%20MERGE,BLEND(1)););
    </action>
    <!--Fin Autotour-->


    <view hlookat="64.671" vlookat="2.195" fovtype="MFOV" fov="84.539" maxpixelzoom="1.0" fovmin="70" fovmax="120" limitview="auto" />


    <events name="panoevents" onloadcomplete="setuptour(); set(events[panoevents].onloadcomplete,null);"/>


    <preview url="panos/8020.tiles/preview.jpg" />


    <image>
    <cube url="panos/8020.tiles/pano_%s.jpg" />
    <mobile>
    <cube url="panos/8020.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    <hotspot name="spot3" hview="0" vview="0" fovview="90" hcenter="-125.399" vcenter="-0.542169" onclick="looktohotspot(get(name),get(view.fovmin),smooth(400,20,100));loadscene(scene_02,%20null,%20MERGE,BLEND(1));lookat(get(panoview.h),get(panoview.v),get(panoview.fov));" bordercolorhover="0xffffff" borderalphahover="0" fillcolorhover="0xffffff" fillalphahover="0" alturl="imag/hotspot3_ij.png" altscale="1.0" frame="0" lastframe="19" frameheight="64" framewidth="64" altonloaded="set(crop,0|0|64|64);set(stopSequence,false);animate(spot3,0.1);" ath="-125.399" atv="-0.542169" width="64" height="64" onhover="showtext(Sala 1);">
    <point ath="-116.179" atv="6.72289"/>
    <point ath="-134.818" atv="7.37349"/>
    <point ath="-135.035" atv="-8.45783"/>
    <point ath="-115.764" atv="-8.24613"/>
    </hotspot>
    <action name="hidepanospotsaction">
    set(hotspot[spot1].visible, false);
    set(hotspot[spot2].visible, false);
    set(hotspot[spot3].visible, false);
    </action>
    <action name="showpanospotsaction">
    set(hotspot[spot1].visible, true);
    set(hotspot[spot2].visible, true);
    set(hotspot[spot3].visible, true);
    </action>
    </scene>

    <!--=======================================================================================-->


    <scene name="scene_02" title="De aprendiz de joyero a la Rue de la Paix" onstart="" thumburl="panos/8034.tiles/thumb.jpg" lat="" lng="" heading="">

    <!--Autotour. Añadir setuptour(); al onstart-->
    <action name="setuptour">
    set(step,1);
    set(idletime,1);
    set(events.onidle, autotour() );
    </action>
    <action name="autotour">
    oninterrupt(dec(step););
    if(step == 1, lookto(-65,0, 70, smooth(100,50,5)); inc(step); );
    if(step == 2, loadscene(scene_03,%20null,%20MERGE,BLEND(1)););
    </action>
    <!--Fin Autotour-->


    <view hlookat="-11.816" vlookat="32.702" fovtype="MFOV" fov="76.411" maxpixelzoom="1.0" fovmin="70" fovmax="120" limitview="auto" />


    <events name="panoevents" onloadcomplete="setuptour(); set(events[panoevents].onloadcomplete,null);"/>


    <preview url="panos/8034.tiles/preview.jpg" />


    <image>
    <cube url="panos/8034.tiles/pano_%s.jpg" />
    <mobile>
    <cube url="panos/8034.tiles/mobile_%s.jpg" />
    </mobile>
    </image>

    ...
    </scene>

    <!--=======================================================================================-->


    <scene name="scene_03" title="Tiaras (I)" onstart="" thumburl="panos/8044.tiles/thumb.jpg" lat="" lng="" heading="">

    <!--Autotour-->
    <action name="setuptour">
    set(step,1);
    set(idletime,1);
    set(events.onidle, autotour() );
    </action>
    <action name="autotour">
    oninterrupt(dec(step););
    if(step == 1, lookto(-45,0, 70, smooth(100,50,5)); inc(step); );
    if(step == 2, loadscene(scene_04,%20null,%20MERGE,BLEND(1)););
    </action>
    <!--Fin Autotour-->


    <view hlookat="-316.993" vlookat="1.503" fovtype="MFOV" fov="76.411" maxpixelzoom="1.0" fovmin="70" fovmax="120" limitview="auto" />


    <events name="panoevents" onloadcomplete="setuptour(); set(events[panoevents].onloadcomplete,null);"/>


    <preview url="panos/8044.tiles/preview.jpg" />


    <image>
    <cube url="panos/8044.tiles/pano_%s.jpg" />
    <mobile>
    <cube url="panos/8044.tiles/mobile_%s.jpg" />
    </mobile>
    </image>
    ...
    </scene>

    <!--=======================================================================================-->


    <scene name="scene_04" title="Tiaras (II)" onstart="" thumburl="panos/8052.tiles/thumb.jpg" lat="" lng="" heading="">

    <!--Autotour-->
    <action name="setuptour">
    set(step,1);
    set(idletime,5);
    set(events.onidle, autotour() );
    </action>
    <action name="autotour">
    oninterrupt(dec(step););
    if(step == 1, lookto(-20,0, 70, smooth(100,50,5)); inc(step); );
    if(step == 2, loadscene(scene_00,%20null,%20MERGE,BLEND(1)););
    </action>
    <!--Fin Autotour-->


    <view hlookat="56.719" vlookat="0.546" fovtype="MFOV" fov="76.411" maxpixelzoom="1.0" fovmin="70" fovmax="120" limitview="auto" />


    <events name="panoevents" onloadcomplete="setuptour(); set(events[panoevents].onloadcomplete,null);"/>


    <preview url="panos/8052.tiles/preview.jpg" />


    <image>
    <cube url="panos/8052.tiles/pano_%s.jpg" />
    <mobile>
    <cube url="panos/8052.tiles/mobile_%s.jpg" />
    </mobile>
    </image>
    ...
    </scene>


    </krpano>

    Edited once, last by agufon: I fixed a few things, and now it seems that only the problem of the buttons (November 21, 2012 at 1:58 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!