Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
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 |
<krpano version="1.0.8" onstart="action(onstart);" > <action name="onstart"> loadscene(scene1,null, MERGE); </action> <scene name="scene1" onstart="animate(3,0.3);"> <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="hs1" url="frame1.jpg" style="set1" width="258.07899" height="325.40394" ox="-178.18671" oy="-75.85278" ath="0" atv="0" /> <hotspot name="hs2" url="frame2.jpg" style="set1" width="258.07899" height="325.40394" ox="-178.18671" oy="-75.85278" ath="0" atv="0" /> <hotspot name="hs3" url="frame3.jpg" style="set1" width="258.07899" height="325.40394" ox="-178.18671" oy="-75.85278" ath="0" atv="0" /> <hotspot name="hs4" url="frame4.jpg" style="set1" width="258.07899" height="325.40394" ox="-178.18671" oy="-75.85278" ath="0" atv="0" /> <hotspot name="hs5" url="frame5.jpg" style="set1" width="258.07899" height="325.40394" ox="-178.18671" oy="-75.85278" ath="0" atv="0" /> <style name="set1" enabled="false" distorted="true" edge="lefttop" alpha="0.0" /> <action name="animate"> set(i, -1); delayedcall(%1, loop(%1,%2);); </action> <action name="loop"> inc(i); if (i EQ hotspot.count, dec(i); set(hotspot[%i].alpha, 0); dec(i); set(hotspot[%i].alpha, 0); set(i, 0); ); hotspot_on(get(i),%2); if(i GT 1, set(j, get(i)); dec(j, 2); set(hotspot[%j].alpha, 0); ); delayedcall(%1, loop(%1,%2);); </action> <action name="hotspot_on"> tween(hotspot[%1].alpha, 1.0 , %2); </action> </scene> </krpano> |
This post has been edited 1 times, last edit by "fedaro" (Feb 28th 2011, 3:42pm)
Hello guys,
I have read the tutorial and made a panorama with this kind of hotspot. My question is does this work on Iphone and Ipad? It's urgent!
![]() |
Source code |
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 |
<action name="start_actions"> set(i,1); set(j,2); </action> <action name="action_hotspot_mannetje"> addhotspot(hs_mannetje_%1); set(hotspot[hs_mannetje_%1].width,141.3824057); set(hotspot[hs_mannetje_%1].height,208.7073609); set(hotspot[hs_mannetje_%1].edge,lefttop); set(hotspot[hs_mannetje_%1].ox,0.448833034); set(hotspot[hs_mannetje_%1].oy,222.6211849); set(hotspot[hs_mannetje_%1].ath,180); set(hotspot[hs_mannetje_%1].atv,0); set(hotspot[hs_mannetje_%1].enabled,false); set(hotspot[hs_mannetje_%1].visible,true); set(hotspot[hs_mannetje_%1].alpha,1.0); set(hotspot[hs_mannetje_%1].url,"images/mannetje%1_l.jpg"); set(hotspot[hs_mannetje_%1].distorted,true); addhotspot(hs_mannetje_%2); set(hotspot[hs_mannetje_%2].enabled,false); set(hotspot[hs_mannetje_%2].visible,false); set(hotspot[hs_mannetje_%2].alpha,0.0); </action> <action name="action_mannetje"> inc(i); inc(j); delayedcall(0.5, action_hotspot_mannetje(get(i),get(j));); delayedcall(1.0, if (mannetje_teller GT 6, set(i,1);set(j2,2));action_mannetje();); </action> <hotspot name="hs_me" style="style_hit" onclick="action(cv_text,head_me,me);" onover="action_mannetje();" onout="action_hidemannetje(get(i));" > <point ath="-178.7163" atv=" 31.3816" /> <point ath="-178.4519" atv=" 31.4542" /> etc </hotspot> |
![]() |
Source code |
1 2 3 |
<action name="action_hidemannetje"> set(hotspot[hs_mannetje_%1].visible,false); </action> |
You could easily duplicate the polygonal hotspot behavior by making the shape in photoshop and then use the distorted hotspot tutorial to place it.
Edit: maybe this shouldn't be classified as easy..reclassifying: doable
please don't mix up plugin.visible with plugin[name].visible !plugin/hotspot.visible
plugin/hotspot.enabled
plugin/hotspot.alpha
![]() |
Source code |
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 |
<!-- name, url, ath, atv, width, height, ox, oy --> <action name="make_hotspots"> addhotspot(%1); set(hotspot[%1].url,%2); set(hotspot[%1].ath,%3); set(hotspot[%1].atv,%4); set(hotspot[%1].width,%5); set(hotspot[%1].height,%6); set(hotspot[%1].ox,%7); set(hotspot[%1].oy,%8); set(hotspot[%1].enabled,false); set(hotspot[%1].capture,false); set(hotspot[%1].zorder,1); set(hotspot[%1].distorted,true); set(hotspot[%1].alpha,0.0); set(hotspot[%1].edge,lefttop); </action> <action name="hotspot_data"> make_hotspots(deur_l,images/deur_l.jpg, -90,0, 287.3846153846, 797.5384615385, -500, -297.5384615385); make_hotspots(deur_d,images/deur_d.jpg, 0,90, 1000, 360, -500, 140); make_hotspots(deur_b,images/deur_b.jpg, 180,0, 904, 832.6153846, -404, -332.6153846); </action> <hotspot name="deur_hit" style="style_hit" capture="false" onover="tween(hotspot[deur_l].alpha,1.0);tween(hotspot[deur_d].alpha,1.0);tween(hotspot[deur_b].alpha,1.0);" onout="tween(hotspot[deur_l].alpha,0.0);tween(hotspot[deur_d].alpha,0.0);tween(hotspot[deur_b].alpha,0.0);" > <point ath="148.9349" atv="-23.2262" /> <point ath="-152.2219" atv="-23.7786" /> <point ath="-119.2797" atv="-13.2651" /> <point ath="-119.0840" atv=" 27.2732" /> <point ath="-141.6596" atv=" 40.5337" /> <point ath="-144.8709" atv=" 39.1428" /> <point ath="-162.6694" atv=" 43.9696" /> <point ath="-162.6710" atv=" 46.7441" /> <point ath="149.1927" atv=" 44.5628" /> <point ath="149.3135" atv=" 44.6091" /> </hotspot> <style name="style_hit" capture="false" zorder="2" alpha="0" /> |