guten morgen,
ich habe 2 panoramen mit blendcubes720 laufen - kein problem. jetzt wollte ich das um die image galerie aus den examples erweitern.
jetzt sehe ich aber die panos nicht mehr! galerie klappt, andere plugins auch, nur wo die panos laufen sollten ist es schwarz.
woran kann das denn liegen? hier mal der quellcode.
sascha
edit: hatte bei galerie un blendcubes je ein action mit dem namen start. habe das bei der galerie geändert, trotzdem noch alles schwarz.
<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(pano1);
addcube(pano2);
</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(pano1, get(blend));
setcubealpha(pano2, get(blend2));
</action>
<events onviewchange="blendcubes720();" />
<include url="thumbs.xml" />
<action name="startgalerie">
create_thumbbar(5, right, v, 10,10, 90,60, 6);
thumbbar_addimage('fotos/image1.jpg');
thumbbar_addimage('fotos/image2.jpg');
thumbbar_addimage('fotos/image3.jpg');
thumbbar_addimage('fotos/image4.jpg');
thumbbar_addimage('fotos/image5.jpg');
</action>