hallo,
durch wilfrieds tolles 720° pano von köln bin ich auf den geschmack gekommen und habe mir mal das example runtergeladen.
funktioniert einwandfrei - bis auf eins.
statt sommer und winter heißen meine panos pano_vg1 und pano_vg2 und liegen nicht im selben verzeichnis, sondern im darunterliegenden verzeichnis p_vg.
sollte eigentlich nix schlimmes sein, doch egal was ich mache, angezeigt wirds mir nur, wenn die dateien sommer und winter heißen und im selben verzeichnis liegen.
so wie ich das sehe, muss doch nur im action die entsprechende änderung vorgenommen werden:
statt <action name="start"> addcube(sommer); addcube(winter); </action>
einfach <action name="start"> addcube(p_vg/pano_vg1); addcube(p_vg/pano_vg2); </action>
bin ich zu blöd???
hier die ganze xml:
<krpano onstart="start();">
<view hlookat="180" vlookat="0" fovtype="HFOV" fov="100" fovmin="70" fovmax="120" />
<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(sommer);
addcube(winter);
</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(sommer, get(blend));
setcubealpha(winter, get(blend2));
</action>
<events onviewchange="blendcubes720();" />
</krpano>