|
|
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 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 |
<scene name="scene_1" title="1" onstart="updateradar();start();" lat="" lng="" heading=""> <action name="updateradar"> set(layer[activespot].parent, mapspot1); set(layer[radar].parent, mapspot1); set(layer[radar].heading, -90); </action> <view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> <include url="xml_plugins/compass/compass.xml" /> <hotspot name="temp_spot" visible="true" url="skin/x.png" scale="0.5" ath="0" atv="0" ondown="draghotspot();" zorder="1"></hotspot> <hotspot name="hs1" visible="true" zorder="11" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="2.0" bordercolor="0xff0000" borderalpha="1.0" > <point ath="0" atv="0"/> <point ath="-49.919787" atv="-5.83232"/> <point ath="-49.919787" atv="-5.83232"/> </hotspot> <image> <cube url="panos/1.tiles/pano_colour_%s.jpg" /> </image> <action name="addface"> addhotspot(%1); set(hotspot[%1].url, %2); set(hotspot[%1].ath, %3); set(hotspot[%1].atv, %4); set(hotspot[%1].zorder, 0); set(hotspot[%1].width, 1000); set(hotspot[%1].height, 1000); if(device.html5, if(device.desktop, <!-- desktop html5 browsers need overlapping cube faces --> set(hotspot[%1].width, 1002); set(hotspot[%1].height, 1002); )); set(hotspot[%1].distorted, true); set(hotspot[%1].enabled, false); if(isflash, set(hotspot[%1].visible, false)); set(hotspot[%1].alpha, 0.0); set(hotspot[%1].details, 16); </action> <action name="addcube"> addface(face_%1_F, 'panos/1.tiles/%1_f.jpg', 0, 0); addface(face_%1_L, 'panos/1.tiles/%1_l.jpg', -90, 0); addface(face_%1_R, 'panos/1.tiles/%1_r.jpg', +90, 0); addface(face_%1_B, 'panos/1.tiles/%1_b.jpg', +180, 0); addface(face_%1_Z, 'panos/1.tiles/%1_u.jpg', 0, -90); addface(face_%1_N, 'panos/1.tiles/%1_d.jpg', 0, +90); </action> <action name="setalpha" devices="flash"> set(%1.alpha, %2); if(%1.alpha == 0.0, set(%1.visible,false), set(%1.visible,true)); </action> <action name="setalpha" devices="html5"> <!-- safari has some framerate stops/problems when toggling the visibility - so keep here the spots always visible --> set(%1.alpha, %2); </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(pano_mono); addcube(pano_colour); setblend(0); </action> <action name="setblend" devices="flash"> sub(blend2, 1.0, %1); setcubealpha(pano_mono, get(blend2)); setcubealpha(pano_colour, %1); </action> <action name="setblend" devices="html5"> set(blend1, %1); sub(blend2, 1.0, %1); copy(hotspot[face_pano_mono_F].alpha, blend1); copy(hotspot[face_pano_mono_L].alpha, blend1); copy(hotspot[face_pano_mono_R].alpha, blend1); copy(hotspot[face_pano_mono_B].alpha, blend1); copy(hotspot[face_pano_mono_Z].alpha, blend1); copy(hotspot[face_pano_mono_N].alpha, blend1); copy(hotspot[face_pano_colour_F].alpha, blend2); copy(hotspot[face_pano_colour_L].alpha, blend2); copy(hotspot[face_pano_colour_R].alpha, blend2); copy(hotspot[face_pano_colour_B].alpha, blend2); copy(hotspot[face_pano_colour_Z].alpha, blend2); copy(hotspot[face_pano_colour_N].alpha, blend2); </action> <action name="show_add_item"> if(layer[target_spot].visible == false, set(layer[target_spot].visible, true); , set(layer[target_spot].visible, %1); ); </action> </scene> |
|
|
Source code |
1 |
zorder2="1.0" |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 |
<hotspot name="line145" polyline="true" zorder="1" enabled="false" group="measurements" visible="true" keep="true" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="2.0" bordercolor="0xff0000" borderalpha="1.0" > <point ath="-23.112682330144196" atv="23.811584008357385" /> <point ath="-8.193024782834982" atv="28.757984957828022" /> </hotspot> |
: https://pame.virtualtuur.comThis post has been edited 1 times, last edit by "Tuur" (Jan 21st 2016, 4:18pm)