Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<krpano>
<image>
<left url="pano_l.jpg" />
<front url="pano_f.jpg" />
<right url="pano_r.jpg" />
<back url="pano_b.jpg" />
<up url="pano_u.jpg" />
<down url="pano_d.jpg" />
</image>
<hotspot name="car"
url="hotspot.jpg"
distorted="true"
ath="0"
atv="0"
width="306.842105"
height="174.736842"
edge="lefttop"
ox="-172.631578"
oy="-4.736842"
alpha="0.0"
onover="tween(alpha,1.0);"
onout="tween(alpha,0.0);"
/>
</krpano>
|



Zitat
<hotspot ...
width="306.842105"
height="174.736842"
edge="lefttop"
ox="-172.631578"
oy="-4.736842"
...


Perhaps here is the reason why:
Zitat
if I use hotspot in another image (<left url="pano_l.jpg"/>), the calculation is not correct
Salut.
Zitat
"Quoted from KlausExample/Tutorial above"
- finally the ath/atv position of the hotspot must be set to move the hotspot to the correct cube face:
here are the positions for the cube sides:
- front: ath="0" atv="0"
- right: ath="90" atv="0"
- left: ath="-90" atv="0"
- back: ath="180" atv="0"
- up: ath="0" atv="-90"
- down: ath="0" atv="+90"

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nelk« (21. Oktober 2009, 13:10)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
<krpano version="1.0.8" onstart="action(start);">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmax="120" />
<image>
<cubestrip url="%SWFPATH%/aufraeumpano_preview.jpg" />
</image>
<!-- Hotspots -->
<hotspot name="left"
url="%SWFPATH%/A/aufraeumpano_A_l.jpg"
distorted="true"
handcursor="false"
ath="-90"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="front"
url="%SWFPATH%/A/aufraeumpano_A_f.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="right"
url="%SWFPATH%/A/aufraeumpano_A_r.jpg"
distorted="true"
handcursor="false"
ath="90"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="back"
url="%SWFPATH%/A/aufraeumpano_A_b.jpg"
distorted="true"
handcursor="false"
ath="180"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="up"
url="%SWFPATH%/A/aufraeumpano_A_u.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="-90"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="down"
url="%SWFPATH%/A/aufraeumpano_A_d.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="90"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<!-- Actions -->
<action name="start">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/A/aufraeumpano_A_l.jpg");
set(hotspot[front].url,"%SWFPATH%/A/aufraeumpano_A_f.jpg");
set(hotspot[right].url,"%SWFPATH%/A/aufraeumpano_A_r.jpg");
set(hotspot[back].url,"%SWFPATH%/A/aufraeumpano_A_b.jpg");
set(hotspot[up].url,"%SWFPATH%/A/aufraeumpano_A_u.jpg");
set(hotspot[down].url,"%SWFPATH%/A/aufraeumpano_A_d.jpg");
);
action(left);
action(front);
action(right);
action(back);
action(up);
action(down);
</action>
<action name="left">
delayedcall(2, set(hotspot[left].url,"%SWFPATH%/B/aufraeumpano_B_l.jpg"); );
delayedcall(2, set(hotspot[left].url,"%SWFPATH%/C/aufraeumpano_C_l.jpg"); );
delayedcall(2, set(hotspot[left].url,"%SWFPATH%/D/aufraeumpano_D_l.jpg"); );
delayedcall(2, set(hotspot[left].url,"%SWFPATH%/E/aufraeumpano_E_l.jpg"); );
delayedcall(2, set(hotspot[left].url,"%SWFPATH%/F/aufraeumpano_F_l.jpg"); );
action(start);
</action>
<action name="front">
delayedcall(2, set(hotspot[front].url,"%SWFPATH%/B/aufraeumpano_B_f.jpg"); );
delayedcall(2, set(hotspot[front].url,"%SWFPATH%/C/aufraeumpano_C_f.jpg"); );
delayedcall(2, set(hotspot[front].url,"%SWFPATH%/D/aufraeumpano_D_f.jpg"); );
delayedcall(2, set(hotspot[front].url,"%SWFPATH%/E/aufraeumpano_E_f.jpg"); );
delayedcall(2, set(hotspot[front].url,"%SWFPATH%/F/aufraeumpano_F_f.jpg"); );
action(start);
</action>
<action name="right">
delayedcall(2, set(hotspot[right].url,"%SWFPATH%/B/aufraeumpano_B_r.jpg"); );
delayedcall(2, set(hotspot[right].url,"%SWFPATH%/C/aufraeumpano_C_r.jpg"); );
delayedcall(2, set(hotspot[right].url,"%SWFPATH%/D/aufraeumpano_D_r.jpg"); );
delayedcall(2, set(hotspot[right].url,"%SWFPATH%/E/aufraeumpano_E_r.jpg"); );
delayedcall(2, set(hotspot[right].url,"%SWFPATH%/F/aufraeumpano_F_r.jpg"); );
action(start);
</action>
<action name="back">
delayedcall(2, set(hotspot[back].url,"%SWFPATH%/B/aufraeumpano_B_b.jpg"); );
delayedcall(2, set(hotspot[back].url,"%SWFPATH%/C/aufraeumpano_C_b.jpg"); );
delayedcall(2, set(hotspot[back].url,"%SWFPATH%/D/aufraeumpano_D_b.jpg"); );
delayedcall(2, set(hotspot[back].url,"%SWFPATH%/E/aufraeumpano_E_b.jpg"); );
delayedcall(2, set(hotspot[back].url,"%SWFPATH%/F/aufraeumpano_F_b.jpg"); );
action(start);
</action>
<action name="up">
delayedcall(2, set(hotspot[up].url,"%SWFPATH%/B/aufraeumpano_B_u.jpg"); );
delayedcall(2, set(hotspot[up].url,"%SWFPATH%/C/aufraeumpano_C_u.jpg"); );
delayedcall(2, set(hotspot[up].url,"%SWFPATH%/D/aufraeumpano_D_u.jpg"); );
delayedcall(2, set(hotspot[up].url,"%SWFPATH%/E/aufraeumpano_E_u.jpg"); );
delayedcall(2, set(hotspot[up].url,"%SWFPATH%/F/aufraeumpano_F_u.jpg"); );
action(start);
</action>
<action name="down">
delayedcall(2, set(hotspot[down].url,"%SWFPATH%/B/aufraeumpano_B_d.jpg"); );
delayedcall(2, set(hotspot[down].url,"%SWFPATH%/C/aufraeumpano_C_d.jpg"); );
delayedcall(2, set(hotspot[down].url,"%SWFPATH%/D/aufraeumpano_D_d.jpg"); );
delayedcall(2, set(hotspot[down].url,"%SWFPATH%/E/aufraeumpano_E_d.jpg"); );
delayedcall(2, set(hotspot[down].url,"%SWFPATH%/F/aufraeumpano_F_d.jpg"); );
action(start);
</action>
</krpano>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
<krpano version="1.0.8" onstart="action(start);">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmax="120" />
<image>
<cubestrip url="%SWFPATH%/aufraeumpano_preview.jpg" />
</image>
<!-- Hotspots -->
<hotspot name="left"
url="%SWFPATH%/A/aufraeumpano_A_l.jpg"
distorted="true"
handcursor="false"
ath="-90"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="front"
url="%SWFPATH%/A/aufraeumpano_A_f.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="right"
url="%SWFPATH%/A/aufraeumpano_A_r.jpg"
distorted="true"
handcursor="false"
ath="90"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="back"
url="%SWFPATH%/A/aufraeumpano_A_b.jpg"
distorted="true"
handcursor="false"
ath="180"
atv="0"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="up"
url="%SWFPATH%/A/aufraeumpano_A_u.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="-90"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<hotspot name="down"
url="%SWFPATH%/A/aufraeumpano_A_d.jpg"
distorted="true"
handcursor="false"
ath="0"
atv="90"
width="1000"
height="1000"
edge="center"
ox="0"
oy="0"
alpha="1.0"
capture="false"
/>
<!-- Actions -->
<action name="start">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/A/aufraeumpano_A_l.jpg");
set(hotspot[front].url,"%SWFPATH%/A/aufraeumpano_A_f.jpg");
set(hotspot[right].url,"%SWFPATH%/A/aufraeumpano_A_r.jpg");
set(hotspot[back].url,"%SWFPATH%/A/aufraeumpano_A_b.jpg");
set(hotspot[up].url,"%SWFPATH%/A/aufraeumpano_A_u.jpg");
set(hotspot[down].url,"%SWFPATH%/A/aufraeumpano_A_d.jpg");
);
action(B);
action(C);
action(D);
action(E);
action(F);
</action>
<action name="B">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/B/aufraeumpano_B_l.jpg");
set(hotspot[front].url,"%SWFPATH%/B/aufraeumpano_B_f.jpg");
set(hotspot[right].url,"%SWFPATH%/B/aufraeumpano_B_r.jpg");
set(hotspot[back].url,"%SWFPATH%/B/aufraeumpano_B_b.jpg");
set(hotspot[up].url,"%SWFPATH%/B/aufraeumpano_B_u.jpg");
set(hotspot[down].url,"%SWFPATH%/B/aufraeumpano_B_d.jpg");
);
action(C);
</action>
<action name="C">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/C/aufraeumpano_C_l.jpg");
set(hotspot[front].url,"%SWFPATH%/C/aufraeumpano_C_f.jpg");
set(hotspot[right].url,"%SWFPATH%/C/aufraeumpano_C_r.jpg");
set(hotspot[back].url,"%SWFPATH%/C/aufraeumpano_C_b.jpg");
set(hotspot[up].url,"%SWFPATH%/C/aufraeumpano_C_u.jpg");
set(hotspot[down].url,"%SWFPATH%/C/aufraeumpano_C_d.jpg");
);
action(D);
</action>
<action name="D">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/D/aufraeumpano_D_l.jpg");
set(hotspot[front].url,"%SWFPATH%/D/aufraeumpano_D_f.jpg");
set(hotspot[right].url,"%SWFPATH%/D/aufraeumpano_D_r.jpg");
set(hotspot[back].url,"%SWFPATH%/D/aufraeumpano_D_b.jpg");
set(hotspot[up].url,"%SWFPATH%/D/aufraeumpano_D_u.jpg");
set(hotspot[down].url,"%SWFPATH%/D/aufraeumpano_D_d.jpg");
);
action(E);
</action>
<action name="E">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/E/aufraeumpano_E_l.jpg");
set(hotspot[front].url,"%SWFPATH%/E/aufraeumpano_E_f.jpg");
set(hotspot[right].url,"%SWFPATH%/E/aufraeumpano_E_r.jpg");
set(hotspot[back].url,"%SWFPATH%/E/aufraeumpano_E_b.jpg");
set(hotspot[up].url,"%SWFPATH%/E/aufraeumpano_E_u.jpg");
set(hotspot[down].url,"%SWFPATH%/E/aufraeumpano_E_d.jpg");
);
action(F);
</action>
<action name="F">
delayedcall(2,
set(hotspot[left].url,"%SWFPATH%/F/aufraeumpano_F_l.jpg");
set(hotspot[front].url,"%SWFPATH%/F/aufraeumpano_F_f.jpg");
set(hotspot[right].url,"%SWFPATH%/F/aufraeumpano_F_r.jpg");
set(hotspot[back].url,"%SWFPATH%/F/aufraeumpano_F_b.jpg");
set(hotspot[up].url,"%SWFPATH%/F/aufraeumpano_F_u.jpg");
set(hotspot[down].url,"%SWFPATH%/F/aufraeumpano_F_d.jpg");
);
action(start);
</action>
</krpano>
|
Zitat
the changing area should be in one cube face
|
|
Quellcode |
1 2 3 |
<hotspot name="door1" url="door1.jpg" enabled="false" zorder="1" distorted="true" ath="-90" atv="0" width="470.526316" height="971.578947" edge="lefttop" ox="-13.6842105" oy="-471.578947" alpha="0.0" /> <hotspot name="door2" url="door2.jpg" enabled="false" zorder="1" distorted="true" ath="0" atv="+90" width="304.736842" height="461.052632" edge="lefttop" ox="-500" oy="-453.157894" alpha="0.0" /> ...onover="tween(hotspot[door1].alpha,1.0); tween(hotspot[door2].alpha,1.0)" onout="tween(hotspot[door1].alpha,0.0); tween(hotspot[door2].alpha,0.0);"... |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »weddy« (14. März 2010, 17:30)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<krpano version="1.0.8" onstart="action(onstart);" >
<action name="onstart">
loadscene(scene1,null, MERGE);
</action>
<scene name="scene1" onstart="
animate('a', 'set1_', 9, 2, 0.3, -178.18671, -75.85278, 258.07899, 325.40394);
">
<image>
<left url="pano_l.jpg" />
<front url="pano_f.jpg" />
<right url="pano_r.jpg" />
<back url="pano_b.jpg" />
<up url="pano_u.jpg" />
<down url="pano_d.jpg" />
</image>
<action name="animate">
addhs("%1f", %6, %7, %8, %9, 0, 0, 2);
addhs("%1b", %6, %7, %8, %9, 0, 0, 1);
delayedcall(%4, loop("%1f","%1b",%2,%3,%4,%5,0));
</action>
<action name="addhs">
addhotspot(%1);
set(hotspot[%1].ox, %2);
set(hotspot[%1].oy, %3);
set(hotspot[%1].width, %4);
set(hotspot[%1].height, %5);
set(hotspot[%1].ath, %6);
set(hotspot[%1].atv, %7);
set(hotspot[%1].zorder, %8);
set(hotspot[%1].enabled, false);
set(hotspot[%1].distorted, true);
set(hotspot[%1].edge, "lefttop");
</action>
<action name="loop">
set(hotspot[%1].alpha, 0);
set(hotspot[%1].url, "%3%7.jpg");
tween(hotspot[%1].alpha, 1.0, %6, , set(hotspot[%2].url, "%3%7.jpg") );
set(hotspot[%1].i, %7);
inc(hotspot[%1].i);
if(hotspot[%1].i EQ %4, set(hotspot[%1].i, 0););
delayedcall(%5, loop(%1,%2,%3,%4,%5,%6,get(hotspot[%1].i)));
</action>
</scene>
</krpano>
|