You are not logged in.

vasin

Trainee

  • "vasin" started this thread

Posts: 93

Location: bangkok

Occupation: photographer

  • Send private message

1

Tuesday, February 22nd 2011, 5:02am

auto slide show feature

Hello

I'm trying to do an auto slide show feature for panoramas.
I have a set of panoramas like this one http://dp-studio.com/virtualtours/. When it loads the first panorama, I want it to rotate for a while than load the second panorama, on and on.
I did see some example but did not get the code.
I ask the same question before and did get answers but due to my limit knowledge in coding and xml, I didn't get it to work.

Any tips would be very appreciated.
Thanks.

Vasin

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Tuesday, February 22nd 2011, 1:14pm

krpano onstart="bombtimer(0); "

<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();, );
</action>

<action name="nextscene">
set(ns, get(scene[get(xml.scene)].index) );
set(maxs, get(scene.count) );
add(ns,1);
if(ns == maxs, set(ns,0);, );
loadscene( get(scene[get(ns)].name ), null, MERGE, BLEND(1.5) );
</action>
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

vasin

Trainee

  • "vasin" started this thread

Posts: 93

Location: bangkok

Occupation: photographer

  • Send private message

3

Thursday, March 3rd 2011, 8:33am

Thank you Mindlessboss

I'm sorry for the late reply.

I tried putting the code in the xml, but nothing happen. I don't know any coding, so I don't know what value to put. Please take a look at it again and tell me what I've done wrong.

Thank you
Vasin

here is the link to the VR
and link to xml


<scene name="scene_yamaha motor show2" title="yamaha motor show2" onstart="" thumburl="yamaha motor show2.tiles/thumb.jpg">

<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" />

<preview url="yamaha motor show2.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="955" progressive="false">
<level tiledimagewidth="1910" tiledimageheight="1910">
<left url="yamaha motor show2.tiles/l2_l_%0v%0h.jpg" />
<front url="yamaha motor show2.tiles/l2_f_%0v%0h.jpg" />
<right url="yamaha motor show2.tiles/l2_r_%0v%0h.jpg" />
<back url="yamaha motor show2.tiles/l2_b_%0v%0h.jpg" />
<up url="yamaha motor show2.tiles/l2_u_%0v%0h.jpg" />
<down url="yamaha motor show2.tiles/l2_d_%0v%0h.jpg" />
</level>
<level tiledimagewidth="955" tiledimageheight="955">
<left url="yamaha motor show2.tiles/l1_l_%0v%0h.jpg" />
<front url="yamaha motor show2.tiles/l1_f_%0v%0h.jpg" />
<right url="yamaha motor show2.tiles/l1_r_%0v%0h.jpg" />
<back url="yamaha motor show2.tiles/l1_b_%0v%0h.jpg" />
<up url="yamaha motor show2.tiles/l1_u_%0v%0h.jpg" />
<down url="yamaha motor show2.tiles/l1_d_%0v%0h.jpg" />
</level>
<mobile>
<left url="yamaha motor show2.tiles/mobile_l.jpg" />
<front url="yamaha motor show2.tiles/mobile_f.jpg" />
<right url="yamaha motor show2.tiles/mobile_r.jpg" />
<back url="yamaha motor show2.tiles/mobile_b.jpg" />
<up url="yamaha motor show2.tiles/mobile_u.jpg" />
<down url="yamaha motor show2.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="yamaha motor show2.tiles/tablet_l.jpg" />
<front url="yamaha motor show2.tiles/tablet_f.jpg" />
<right url="yamaha motor show2.tiles/tablet_r.jpg" />
<back url="yamaha motor show2.tiles/tablet_b.jpg" />
<up url="yamaha motor show2.tiles/tablet_u.jpg" />
<down url="yamaha motor show2.tiles/tablet_d.jpg" />
</tablet>
</image>


<plugin name="logo"
url="dp.png"
align="topright"
x="10"
y="10"
onclick="openurl('http://dp-studio.com');"
/>

<plugin name="text"
url="img/yamaha-motor-show2.png"
align="topleft"
x="10"
y="10"
onclick="openurl('http://dp-studio.com');"
/>

<!-- place hotspots here -->

<!-- example hotspot:
<hotspot name="spot1" style="hotspot_ani_black"
ath="0"
atv="0"
zoom="false"
onclick="looktohotspot(get(name)); loadscene('insert-scene-name',null,MERGE,BLEND(1));"
/>
-->

</scene>



krpano onstart="bombtimer(0); "

<action name="bombtimer">
set(bt,%1);
add(bt,1);
delayedcall(1, bombtimer(get(bt)));
if(bt == 80, startmanualcontrol(); stopall(); set(bt,0); nextscene();, );
</action>

<action name="nextscene">
set(ns, get(scene[get(xml.scene)].index) );
set(maxs, get(scene.count) );
add(ns,1);
if(ns == maxs, set(ns,0);, );
loadscene( get(scene[get(ns)].name ), null, MERGE, BLEND(1.5) );
</action>

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Thursday, March 3rd 2011, 9:04am

try this
download xml

And one more thing - rename your scenes without space
"scene_5 December" to "scene_5_December"
end files to (spaces is not very good)

Regards and good luck
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

This post has been edited 1 times, last edit by "mindlessboss" (Mar 3rd 2011, 9:26am)


vasin

Trainee

  • "vasin" started this thread

Posts: 93

Location: bangkok

Occupation: photographer

  • Send private message

5

Thursday, March 3rd 2011, 1:40pm

Mindlessboss

It worked! Thank you so much!

If you ever have a chance to come to Bangkok, let me know.
I will treat you a couple of drinks. :)

mindlessboss

Professional

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

6

Thursday, March 3rd 2011, 3:14pm

Hello!
If you ever have a chance to come to Bangkok, let me know.
I will treat you a couple of drinks. :)
I remeber that.... ;-)
glad to help *thumbup*


Soon i want to go to samui, and maybe come to you in Bangkok! *thumbsup* see you

Regards!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

vasin

Trainee

  • "vasin" started this thread

Posts: 93

Location: bangkok

Occupation: photographer

  • Send private message

7

Friday, March 4th 2011, 10:49am

Great !

Look forward to meet you.