Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <krpano version="1.16" title="Virtual Tour" onstart="startup(); showlog(true); ">
- <include url="skin/vtourskin.xml" />
- <!-- set skin settings: bingmaps? gyro? thumbnail controlling? tooltips? -->
- <skin_settings bingmaps="false"
- bingmaps_key=""
- bingmaps_zoombuttons="false"
- gyro="true"
- thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
- thumbs_opened="false"
- thumbs_text="false"
- thumbs_dragging="true"
- thumbs_onhoverscrolling="false"
- thumbs_scrollbuttons="false"
- thumbs_scrollindicator="false"
- tooltips_thumbs="false"
- tooltips_hotspots="false"
- tooltips_mapspots="false"
- controlbar_offset="20"
- />
- <!-- set optional skin logo url -->
- <layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />
- <action name="startup">
- if(startscene === null, copy(startscene,scene[1].name));
- loadscene(get(startscene), null, MERGE);
- </action>
- <scene name="scene_401_ingresso" title="401_ingresso" onstart="" thumburl="panos/401_ingresso.tiles/thumb.jpg" lat="" lng="" heading="">
- <view hlookat="-212.676" vlookat="-1.391" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
- <preview url="panos/401_ingresso.tiles/preview.jpg" />
- <image type="CUBE" multires="true" tilesize="512" progressive="false">
- <level tiledimagewidth="3300" tiledimageheight="3300">
- <cube url="panos/401_ingresso.tiles/l3_%s_%v_%h.jpg" />
- </level>
- <level tiledimagewidth="1650" tiledimageheight="1650">
- <cube url="panos/401_ingresso.tiles/l2_%s_%v_%h.jpg" />
- </level>
- <level tiledimagewidth="825" tiledimageheight="825">
- <cube url="panos/401_ingresso.tiles/l1_%s_%v_%h.jpg" />
- </level>
- <mobile>
- <cube url="panos/401_ingresso.tiles/mobile_%s.jpg" />
- </mobile>
- </image>
- <!-- place your scene hotspots here -->
- <hotspot name="spot1" style="skin_hotspotstyle" ath="-1.902" atv="28.031" linkedscene="scene_hyperlapse_test" />
- </scene>
- <scene name="scene_hyperlapse_test" title="hyperlapse_test" onstart="" thumburl="panos/hyperlapse_test.tiles/thumb.jpg" lat="" lng="" heading="">
- <view hlookat="119.599" vlookat="1.855" camroll="0.0" fovtype="MFOV" fov="104.000" maxpixelzoom="3.0" fovmin="70" fovmax="140" limitview="auto" />
- <preview url="panos/hyperlapse_test.tiles/preview.jpg" />
- <image type="CUBE" multires="true" tilesize="512" progressive="false">
- <level tiledimagewidth="900" tiledimageheight="900">
- <cube url="panos/hyperlapse_test.tiles/l2_%s_%v_%h.jpg" />
- </level>
- <level tiledimagewidth="512" tiledimageheight="512">
- <cube url="panos/hyperlapse_test.tiles/l1_%s_%v_%h.jpg" />
- </level>
- <mobile>
- <cube url="panos/hyperlapse_test.tiles/mobile_%s.jpg" />
- </mobile>
- </image>
- <!-- place your scene hotspots here -->
- <hotspot name="spot2" style="skin_hotspotstyle" ath="117.114" atv="41.941" ondown="lookto(117.068, 11.541, 90); set(hotspot[video-hyperlapse_1].visible, true); hotspot[video-hyperlapse_1].play();" />
- <!-- hyperlapse video -->
- <hotspot name="video-hyperlapse_1"
- url="videoplayer.swf"
- alturl="videoplayer.js"
- videourl="video/hyperLapse_HotelSisto.m4v"
- posterurl=""
- onloaded="calc_pos_from_hfov_yaw_pitch_roll(104, -120.108, -2.9639, -0.3202);"
- visible="false"
- pausedonstart="false"
- distorted="true"
- loop="false"
- volume="1.0"
- zorder="10"
- directionalsound="true"
- range="90.0"
- rangefalloff="1.0"
- outofrangevolume="0.0"
- />
- <!--Ricalcolo: da parametri dell'estrazione PTGUI (hfov, yaw, pitch, rol)
- ai parametri del plutin/hotspot KRPANO (ath, atv, width, rotate) -->
- <action name="calc_pos_from_hfov_yaw_pitch_roll">
- div(hfov,%1,57.295779);
- div(yaw,%2,-57.295779);
- div(pitch,%3,57.295779);
- div(roll,%4,-57.295779);
- mul(hfov,0.5);Math.tan(hfov);mul(width,hfov,1000);set(height,'prop');
- Math.cos(ch,yaw);Math.sin(sh,yaw);
- Math.cos(ca,pitch);Math.sin(sa,pitch);
- Math.cos(cb,roll);Math.sin(sb,roll);
- mul(m0,ca,ch);
- mul(tmp,cb,sa);mul(tmp,ch);mul(tmp2,sb,sh);add(m3,tmp,tmp2);
- mul(m4,cb,ca);
- mul(tmp,cb,sa);mul(tmp,sh);mul(tmp2,sb,ch);sub(m5n,tmp,tmp2);mul(m5n,-1);
- mul(tmp,sb,sa);mul(tmp,ch);mul(tmp2,cb,sh);sub(m6n,tmp,tmp2);mul(m6n,-1);
- Math.atan2(yaw,m6n,m0);
- Math.atan2(roll,m5n,m4);
- Math.asin(pitch,m3);
- mul(ath,yaw,57.295779);
- mul(atv,pitch,57.295779);
- mul(rotate,roll,57.295779);
- </action>
- </scene>
- </krpano>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement