Sie sind nicht angemeldet.

mikeekid

Anfänger

  • »mikeekid« ist der Autor dieses Themas

Beiträge: 11

Wohnort: Durban, South Africa

Beruf: Virtual Tour Photographer, Swimming Instructor

  • Nachricht senden

1

Freitag, 18. Oktober 2013, 17:46

Autotour

Hi,

I am new to using Krpano and XML coding. I'm trying to get autotour to function and it's driving me crazy *cursing* *cursing* . Below is the code I am using which I found in forum. The first scene loads and auto rotates, the 2nd scene loads and is stationary for the 5 secs (wait(5)), the 3rd scene loads does the same as the 2nd scene, then this repeats.

Any advice/assistance will be greatly appreciated.

Thanks
Mike

<krpano version="1.16" title="Virtual Tour" onstart="startup();">

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

<!-- set skin settings: bingmaps? gyro? thumbnail controlling? tooltips? -->
<skin_settings bingmaps="false"
bingmaps_key=""
bingmaps_zoombuttons="false"
gyro="true"
thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
thumbs_opened="false"
thumbs_text="false"
thumbs_dragging="true"
thumbs_onhoverscrolling="false"
thumbs_scrollbuttons="false"
thumbs_scrollindicator="false"
tooltips_thumbs="false"
tooltips_hotspots="false"
tooltips_mapspots="false"
controlbar_offset="20"
/>

<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />


<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);

setuptour()
</action>


<scene name="scene_SurfHQ-Back" title="SurfHQ-Back" onstart="" thumburl="panos/SurfHQ-Back.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/SurfHQ-Back.tiles/preview.jpg" />

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

<!-- place your scene hotspots here -->

</scene>

<scene name="scene_SurfHQ-Middle" title="SurfHQ-Middle" onstart="" thumburl="panos/SurfHQ-Middle.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/SurfHQ-Middle.tiles/preview.jpg" />

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

<!-- place your scene hotspots here -->

</scene>


<scene name="scene_SurfHQ-Front" title="SurfHQ-Front" onstart="" thumburl="panos/SurfHQ-Front.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/SurfHQ-Front.tiles/preview.jpg" />

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

<!-- place your scene hotspots here -->

</scene>


<action name="setuptour">
set(step,1);
set(idletime,60);
set(events.onidle, autotour() );
</action>

<action name="autotour">
oninterrupt(break);
if(step == 1, wait(0); inc(step); );
if(step == 2, loadscene(scene_SurfHQ-Middle,NULL,BLEND(1)); wait(5); inc(step); );
if(step == 3, loadscene(scene_SurfHQ-Front,NULL,BLEND(1)); wait(5); inc(step); );
if(step == 4, loadpano(tour.xml,NULL,BLEND(1)); wait(); inc(step); );

</action>

<autorotate enabled="true" waittime="3" speed="5"/>

</krpano>

mikeekid

Anfänger

  • »mikeekid« ist der Autor dieses Themas

Beiträge: 11

Wohnort: Durban, South Africa

Beruf: Virtual Tour Photographer, Swimming Instructor

  • Nachricht senden

2

Sonntag, 20. Oktober 2013, 21:27

Problem solved

ramirox3

Fortgeschrittener

Beiträge: 354

Wohnort: La Ceja, Colombia

Beruf: photographer

  • Nachricht senden

3

Samstag, 26. Oktober 2013, 16:15

COULD YOU SHOW HOW YOU SOLVED IT?

virtual pete

Fortgeschrittener

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

4

Dienstag, 3. Dezember 2013, 12:26

Hi Mikeekid, I have the same problem, how did you get round it?

mikeekid

Anfänger

  • »mikeekid« ist der Autor dieses Themas

Beiträge: 11

Wohnort: Durban, South Africa

Beruf: Virtual Tour Photographer, Swimming Instructor

  • Nachricht senden

5

Mittwoch, 4. Dezember 2013, 09:36

Here's the code which I am now using:

<krpano version="1.16" title="Virtual Tour" onstart="loadscene(scene_YOURSCENENAME, null, MERGE, ZOOMBLEND(1,2)); wait(load); startup();">





<action name="startup">

set(step,1); set(idletime,4); set(events.onidle, autotour(););

</action>





<action name="load_new_scene">

skin_showloading(true); loadscene(%1, null, MERGE,
ZOOMBLEND(1,2));wait(0.1);wait(BLEND);skin_showloading(false);
skin_update_scene_infos();

</action>



<action name="autotour">

oninterrupt(break);

if(step == 1, oninterrupt(set(step,1)); lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););

if(step == 2, load_new_scene(scene_YOURSCENENAME); inc(step););

if(step == 3, oninterrupt(set(step,3)); lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););

if(step == 4, load_new_scene(scene_YOURSCENENAME); inc(step););

if(step == 5, oninterrupt(set(step,5)); lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););

if(step == 6, load_new_scene(scene_YOURSCENENAME); inc(step););

if(step == 7, oninterrupt(set(step,7)); lookto(360, get(view.vlookat),get(view.fov), smooth(200,200,15), false); inc(step););

if(step == 8, load_new_scene(scene_YOURSCENENAME); inc(step););

if(step == 9, set(step,1); autotour(););

</action>

Ähnliche Themen