Hallo ihr Lieben,
ich hoffe, jemand kann mir helfen.
Ich habe mir ein 720° Panorama gemacht, mit dem ich eine Szene von Tag zu Nacht drehen kann.
Soweit so gut.
Darauf ein "little Planet" erstellt - hat auch funktioniert.
Hier das Beispiel: http://danielraab.de/blendtest/
Nun möchte ich, dass sich dieses little Planet dreht und auf das Haus zeigt, das ihr am Anfang oben sehen könnt (das schwarze).
Leider weiß ich nicht, warum es nicht rotiert und sich nicht öffnet.
Anbei mal der komplette Code:
<krpano version="1.0.8.14" onstart="start();">
<!-- <plugin name="editor" url="./plugins/editor.swf" keep="true"/>
<plugin name="options" url="./plugins/options.swf" keep="true"/>
<plugin name="marker" url="./hotspots/button_blue_rec.png" align="center" alpha="0.5" keep="true"/>
-->
<plugin name="gyro" url="./plugins/gyro.js" devices="ipad|iphone" keep="true" enabled="true"/>
<!-- includes -->
<include url="skin/androidskin.xml" devices="android+flash" />
<include url="./plugins/text.xml" keep="true"/>
<!-- view startup settings for little planets -->
<view stereographic="true"
fisheye="3.0"
fov="150"
fovmax="150"
hlookat="-17.33"
vlookat="90"
/>
<!-- fisheye and little planets projections needs much rendering performance
to get more performance switch to flash9 rendering while in fisheye
or littleplanet/stereographic mode
-->
<display flash10="off" details="20" />
<events onloadcomplete="delayedcall(1.0, normalview());" />
<action name="normalview">
tween(view.hlookat, 180, 3.5, easeInOutQuad );
tween(view.vlookat, 0, 3.5, easeInOutQuad );
tween(view.fov, 100, 3.5, easeInOutQuad );
tween(view.fisheye, 0.0, 3.5, easeInOutQuad, WAIT);
set(display.flash10,on);
</action>
<plugin name="Tourstart"
url="./images/tourstart.png" keep="true"
align="centertop"
x="5"
y="5"
alpha="0.5"
onhover="set(alpha,1.0);showtext(Starten Sie die virtuelle Tour, tooltip);"
onout="set(alpha,0.5);"
onclick="openurl('***', _blank);"
/>
<action name="addface">
addhotspot(%1);
set(hotspot[%1].url, %2);
set(hotspot[%1].ath, %3);
set(hotspot[%1].atv, %4);
set(hotspot[%1].width, 1000);
set(hotspot[%1].height, 1000);
set(hotspot[%1].distorted, true);
set(hotspot[%1].enabled, false);
set(hotspot[%1].visible, false);
set(hotspot[%1].alpha, 0.0);
set(hotspot[%1].details, 16);
set(hotspot[%1].zorder, %1);
</action>
<action name="addcube">
addface(face_%1_F, %1_f.jpg, 0, 0);
addface(face_%1_L, %1_l.jpg, -90, 0);
addface(face_%1_R, %1_r.jpg, +90, 0);
addface(face_%1_B, %1_b.jpg, +180, 0);
addface(face_%1_Z, %1_u.jpg, 0, -90);
addface(face_%1_N, %1_d.jpg, 0, +90);
</action>
<action name="setalpha">
set(%1.alpha, %2);
if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true));
</action>
<action name="setcubealpha">
setalpha(hotspot[face_%1_F], %2);
setalpha(hotspot[face_%1_L], %2);
setalpha(hotspot[face_%1_R], %2);
setalpha(hotspot[face_%1_B], %2);
setalpha(hotspot[face_%1_Z], %2);
setalpha(hotspot[face_%1_N], %2);
</action>
<action name="start">
addcube(tag);
addcube(nacht);
</action>
<action name="blendcubes720">
set(overlap, 30); <!-- set overlapping/blending range in degrees -->
mul(edge1, overlap, 0.5);
sub(edge2, 360, edge1);
add(edge3, 360, edge1);
sub(edge4, 720, edge1);
mod(pan, view.hlookat, 720);
if(pan LT 0, add(pan,pan,1440);mod(pan,pan,720); );
if(pan GT edge2,
if(pan LT edge3,
sub(blend,pan,edge2);
div(blend,blend,overlap);
,
set(blend,1);
);
if(pan GT edge4,
sub(blend,pan,edge4);
div(blend,blend,overlap);
sub(blend,1,blend);
);
,
if(pan LT edge1,
add(blend,pan,edge1);
div(blend,blend,overlap);
sub(blend,1,blend);
,
set(blend,0);
);
);
sub(blend2, 1.0, blend);
setcubealpha(tag, get(blend));
setcubealpha(nacht, get(blend2));
</action>
<events onviewchange="blendcubes720();" />
</krpano>