|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<!-- startup view settings for little planet view -->
<view stereographic="true"
fisheye="1.0"
fov="155"
fovtype="VFOV"
fovmax="150"
hlookat="-60"
vlookat="77"
/>
<!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
<events onloadcomplete="delayedcall(2.0, normalview());" />
<action name="normalview">
tween(view.hlookat, -40, 2.5, easeInOutQuad);
tween(view.vlookat, -35, 2.5, easeInOutQuad);
tween(view.fov, 85, 2.5, easeInOutQuad);
tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
</action>
|
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
|
|
Quellcode |
1 |
<events onloadcomplete="delayedcall(2.0, littleplanetview());" /> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<scene name="scene_Garage" title="Garage" onstart="" thumburl="panos/Garage.tiles/thumb.jpg" lat="" lng="" heading=""> <view fisheye="1.0" hlookat="-152" vlookat="90" fovtype="VFOV" fov="179.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> <events onloadcomplete="delayedcall(2.0, garageview());" /> <action name="garageview"> tween(view.hlookat, -75, 2.5, easeInOutQuad); tween(view.vlookat, 0, 2.5, easeInOutQuad); tween(view.fov, 85, 2.5, easeInOutQuad); tween(view.fisheye, 0.0, 2.5, easeInOutQuad); </action> <preview url="panos/Garage.tiles/preview.jpg" /> <image> <cube url="panos/Garage.tiles/pano_%s.jpg" /> <mobile> <cube url="panos/Garage.tiles/mobile_%s.jpg" /> </mobile> </image> <!-- place your scene hotspots here --> <hotspot name="spot1" style="skin_hotspotstyle" ath="-77.116" atv="-0.044" linkedscene="scene_wohnzimmer" /> |
Es könnte daran liegen, dass dein Event global ist. Du solltest einen Namen vergeben, dann wird es lokal :
Zitat
<events onloadcomplete="delayedcall(2.0, garageview());" />
Referenz: http://krpano.com/docu/xml/#events
Zitat
<events name="myEvent" onloadcomplete="delayedcall(2.0, garageview());" />