| Current Path : /home/azimutno/www/images/vtour/ |
| Current File : /home/azimutno/www/images/vtour/tour.xml |
<krpano version="1.19" title="Virtual Tour">
<!-- add VR support -->
<include url="%SWFPATH%/plugins/webvr.xml" />
<!-- enable the fake VR mode for testing -->
<plugin name="WebVR" mobilevr_fake_support="true" />
<!-- remove the webvr.xml SPACE key handling -->
<events name="webvr_events" onkeydown="" />
<hotspot name="vr_cursor" alpha="1.0" />
<plugin name="WebVR"
vr_cursor_onover="tween(hotspot[vr_cursor].alpha,1,0.05); if(handcursor, tween(hotspot[vr_cursor].scale,0.4,0.1); vr_auto_click(get(vr_timeout)); );"
vr_cursor_onout="tween(hotspot[vr_cursor].alpha,1.0,1.0); tween(hotspot[vr_cursor].scale,0.3,0.1);"
/>
<!-- stereo display mode button -->
<!-- switch stereo/mono hotspot -->
<hotspot name="switch" keep="true"
url="text.png"
distorted="true"
ath="0" atv="25"
depth="800"
scale="0.5"
zorder="99"
onclick="loadscene('scene_dsc_1200');"
/>
<!-- the hotspots follow the view -->
<events onviewchange="onviewchange_updates(); webvr_menu_following();" />
<action name="onviewchange_updates">
add(hotspot[mask].rotate, view.hlookat, view.camroll);
</action>
<action name="webvr_menu_following" type="Javascript" devices="html5"><![CDATA[
var hs = krpano.get("hotspot[switch]");
if(!hs.hovering)
{
var f = 0.01; // following speed factor
var h = krpano.view.hlookat;
var v = krpano.view.vlookat;
var hsh = hs.ath;
var hsv = hs.atv;
h = (h -(h|0)) + (((h|0) +360180)%360) - 180.0;
v = (v -(v|0)) + (((v|0) +360180)%360) - 180.0;
hsh = (hsh-(hsh|0)) + (((hsh|0)+360180)%360) - 180.0;
var dh = h - hsh;
dh += (dh > 180) ? -360 : (dh < -180) ? 360 : 0
hsh += dh*f;
var a = Math.abs(v - hsv) / 90.0;
a = 1.0 * Math.max(1.0 - 2.0*Math.sqrt(a), 0);
v = v + 55.0 - v*1.5;
hsv = hsv*(1.0 - f) + v*f;
hs.ath = hsh;
hs.atv = hsv;
hs.alpha = a;
}
]]></action>
<action name="add_blendmodes" autorun="onstart">
for(set(i,0), i LT blendmodes.count, inc(i),
set(ln, calc('bd_blend_'+i));
addlayer(get(ln));
copy(lr, layer[get(ln)]);
set(lr.parent, bd_scroller);
set(lr.keep, true);
lr.loadstyle(button);
copy(lr.html, blendmodes[get(i)].name);
copy(lr.blend, blendmodes[get(i)].blend);
set(lr.align, top);
set(lr.onclick, 'do_blending(get(blend))');
set(lr.y, calc(8+i*30));
);
set(layer[bg_scroller].height, calc((blendmodes.count)*30+8));
</action>
<action name="do_crop_animation">
<!-- add attributes to the hotspot -->
registerattribute(xframes, calc((imagewidth / %1) BOR 0));
registerattribute(yframes, calc((imageheight / %2) BOR 0));
registerattribute(frames, calc(xframes * yframes));
registerattribute(frame, 0);
set(crop, '0|0|%1|%2');
setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
if(loaded,
inc(frame);
if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); );
mod(xpos, frame, xframes);
div(ypos, frame, xframes);
Math.floor(ypos);
mul(xpos, %1);
mul(ypos, %2);
calc(crop, xpos + '|' + ypos + '|%1|%2');
,
clearinterval(calc('crop_anim_' + name));
);
);
</action>
<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
<skin_settings maps="false"
maps_type="google"
maps_bing_api_key=""
maps_zoombuttons="false"
gyro="true"
webvr="true"
littleplanetintro="false"
title="true"
thumbs="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"
thumbs_loop="false"
tooltips_buttons="false"
tooltips_thumbs="false"
tooltips_hotspots="false"
tooltips_mapspots="false"
deeplinking="false"
loadscene_flags="MERGE"
loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
loadingtext="loading..."
layout_width="100%"
layout_maxwidth="814"
controlbar_width="-24"
controlbar_height="40"
controlbar_offset="20"
controlbar_offset_closed="-40"
controlbar_overlap.no-fractionalscaling="10"
controlbar_overlap.fractionalscaling="0"
design_skin_images="vtourskin.png"
design_bgcolor="0x2D3E50"
design_bgalpha="0.8"
design_bgborder="0"
design_bgroundedge="1"
design_bgshadow="0 4 10 0x000000 0.3"
design_thumbborder_bgborder="3 0xFFFFFF 1.0"
design_thumbborder_padding="2"
design_thumbborder_bgroundedge="0"
design_text_css="color:#FFFFFF; font-family:Arial;"
design_text_shadow="1"
/>
<!--
For an alternative skin design either change the <skin_settings> values
from above or optionally include one of the predefined designs from below.
-->
<!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_glass.xml" /> -->
<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
<!-- <include url="skin/vtourskin_design_117.xml" /> -->
<!-- <include url="skin/vtourskin_design_117round.xml" /> -->
<!-- <include url="skin/vtourskin_design_black.xml" /> -->
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
</action>
<scene name="scene_DSC_1200" title="Façade_DSC_1200" onstart="" havevrimage="true" thumburl="panos/DSC_1200.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="-161.024" vlookat="4.990" fovtype="MFOV" fov="90.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1200.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1200.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1200.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1200.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1200.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="49.467" atv="7.145" onclick="loadscene('scene_dsc_1201',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1201" title="Entrée" onstart="" havevrimage="true" thumburl="panos/DSC_1201.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="-4.397" vlookat="-0.000" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1201.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1201.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1201.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1201.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1201.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="-113.147" atv="11.219" onclick="loadscene('scene_dsc_1203',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
<hotspot name="spot2" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="-16.010" atv="12.577" onclick="loadscene('scene_dsc_1205',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
<hotspot name="spot3" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="169.020" atv="2.429" onclick="loadscene('scene_dsc_1200',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1203" title="DSC_1203" onstart="" havevrimage="true" thumburl="panos/DSC_1203.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="15.878" vlookat="1.099" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1203.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1203.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1203.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1203.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1203.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="56.456" atv="17.876" onclick="loadscene('scene_dsc_1201',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
<hotspot name="spot2" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="5.541" atv="11.150" onclick="loadscene('scene_dsc_1205',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1205" title="DSC_1205" onstart="" havevrimage="true" thumburl="panos/DSC_1205.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="163.460" vlookat="3.402" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1205.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1205.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1205.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1205.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1205.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="49.575" atv="25.525" onclick="loadscene('scene_dsc_1207',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
<hotspot name="spot2" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="165.498" atv="8.169" onclick="loadscene('scene_dsc_1203',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
<hotspot name="spot3" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="-58.969" atv="22.364" onclick="loadscene('scene_dsc_1208',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1207" title="DSC_1207" onstart="" havevrimage="true" thumburl="panos/DSC_1207.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="-55.384" vlookat="1.892" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1207.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1207.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1207.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1207.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1207.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="-88.375" atv="15.496" onclick="loadscene('scene_dsc_1205',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1208" title="DSC_1208" onstart="" havevrimage="true" thumburl="panos/DSC_1208.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="127.156" vlookat="-0.480" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1208.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1208.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1208.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1208.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1208.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" url="animatedhotspot_white.png" onloaded="do_crop_animation(64,64, 10);" ath="134.408" atv="15.837" onclick="loadscene('scene_dsc_1205',null,MERGE,OPENBLEND(1.0, -0.5, 0.3, 0.8, linear));"
/>
</scene>
<scene name="scene_DSC_1209" title="DSC_1209" onstart="" havevrimage="true" thumburl="panos/DSC_1209.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/DSC_1209.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" if="!webvr.isenabled">
<level tiledimagewidth="3328" tiledimageheight="3328">
<cube url="panos/DSC_1209.tiles/%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1664" tiledimageheight="1664">
<cube url="panos/DSC_1209.tiles/%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/DSC_1209.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
</image>
<image if="webvr.isenabled">
<cube url="panos/DSC_1209.tiles/vr/pano_%s.jpg" />
</image>
<!-- place your scene hotspots here -->
</scene>
<!-- fin de mon code copier coller -->
<!-- SPECIAL CASE END -->
<!-- the VR menu - home button, prev/next scene buttons -->
<style name="vr_menu_style" depth="800" scale="0.2" distorted="true" ath="0" atv="45" alpha="0.25" visible="false" />
<hotspot name="vr_menu_bg" style="vr_menu_style" keep="true" zorder="5" url="black.png" width="600" height="120" onover="vr_menu_over();" onout="vr_menu_out();" handcursor="false" />
<hotspot name="vr_menu_home" style="vr_menu_style" keep="true" zorder="6" url="texts.png" crop="0|95|280|100" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" startupxml="" onloaded="copy(startupxml, xml.url);" vr_timeout="1000" onclick="vr_menu_loadhome();" />
<hotspot name="vr_menu_l" style="vr_menu_style" keep="true" zorder="6" url="texts.png" crop="302|92|100|100" ox="-48" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" vr_timeout="700" onclick="nextscene_loop(-1);" />
<hotspot name="vr_menu_r" style="vr_menu_style" keep="true" zorder="6" url="texts.png" crop="392|92|100|100" ox="+48" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" vr_timeout="700" onclick="nextscene_loop(+1);" />
<action name="vr_menu_over">
callwith(hotspot[vr_menu_bg], tween(alpha|depth,1.0|650); );
callwith(hotspot[vr_menu_home], tween(alpha|depth,0.5|650); );
callwith(hotspot[vr_menu_l], tween(alpha|depth,0.5|650); );
callwith(hotspot[vr_menu_r], tween(alpha|depth,0.5|650); );
</action>
<action name="vr_menu_out">
if(hotspot[vr_menu].hovering == false,
callwith(hotspot[vr_menu_bg], tween(alpha|depth,0.25|800); );
callwith(hotspot[vr_menu_home], tween(alpha|depth,0.25|800); );
callwith(hotspot[vr_menu_l], tween(alpha|depth,0.25|800); );
callwith(hotspot[vr_menu_r], tween(alpha|depth,0.25|800); );
);
</action>
<action name="vr_menu_loadhome">
set(basedir, '');
loadpano(get(startupxml), null, NOPREVIEW|MERGE|KEEPVIEW|KEEPMOVING, BLEND(1));
set(webvr.worldscale,1.0);
vr_menu_setvisibility(false);
</action>
<action name="vr_menu_setvisibility">
set(hotspot[vr_menu_bg].visible, %1);
set(hotspot[vr_menu_home].visible, %1);
if(scene.count GT 1,
set(hotspot[vr_menu_bg].width, 600);
set(hotspot[vr_menu_l].visible, %1);
set(hotspot[vr_menu_r].visible, %1);
,
set(hotspot[vr_menu_bg].width, 320);
set(hotspot[vr_menu_l].visible, false);
set(hotspot[vr_menu_r].visible, false);
);
</action>
<events name="vr_menu_events" keep="true" onviewchange="vr_menu_following();" />
<!-- new krpano 1.19 feature: Javascript actions (can be faster than xml actions, HTML5 only) -->
<action name="vr_menu_following" type="Javascript" devices="html5"><![CDATA[
var hs1 = krpano.get("hotspot[vr_menu_bg]");
var hs2 = krpano.get("hotspot[vr_menu_home]");
var hs3 = krpano.get("hotspot[vr_menu_l]");
var hs4 = krpano.get("hotspot[vr_menu_r]");
if(!hs1.hovering && !hs2.hovering && !hs3.hovering && !hs4.hovering)
{
var f = 0.01; // follow speed factor
var h = krpano.view.hlookat;
var v = krpano.view.vlookat;
var hsh = hs1.ath;
var hsv = hs1.atv;
// map to -180 to +180
h = (h -(h|0)) + (((h|0) +360180)%360) - 180.0;
hsh = (hsh-(hsh|0)) + (((hsh|0)+360180)%360) - 180.0;
// get the shortest horizontal distance
dh = h - hsh;
dh += (dh>180) ? -360 : (dh<-180) ? 360 : 0
// follow slowing horizontally
hsh += dh*f;
// fade out when farther away
var a = Math.abs(v - hs1.atv) / 90.0;
a = 0.5 * Math.max(1.0 - 2.0*Math.sqrt(a), 0);
// move up the more looking down
v = v + 55.0 - v*1.5;
hsv = hsv*(1-f) + v*f;
// set everything
hs2.alpha = hs1.alpha = a;
if(!hs3.hovering) hs3.alpha = a;
if(!hs4.hovering) hs4.alpha = a;
hs4.ath = hs3.ath = hs2.ath = hs1.ath = hsh;
hs4.atv = hs3.atv = hs2.atv = hs1.atv = hsv;
}
]]></action>
<!-- a simpler non-VR fallback version for Flash -->
<action name="vr_menu_following" devices="flash">
copy(h,view.hlookat);
copy(v,view.vlookat);
mul(dv,v,1.5);
add(v,55);
sub(v,dv);
getlooktodistance(a,h,v);
div(a,90);
sub(a,0.5,a);
Math.min(a,0.5);
copy(hs,hotspot[vr_menu_bg]);
copy(hs.ath,h);
copy(hs.atv,v);
copy(hs.alpha,a);
copy(hs,hotspot[vr_menu_home]);
copy(hs.ath,h);
copy(hs.atv,v);
copy(hs.alpha,a);
copy(hs,hotspot[vr_menu_l]);
copy(hs.ath,h);
copy(hs.atv,v);
copy(hs.alpha,a);
copy(hs,hotspot[vr_menu_r]);
copy(hs.ath,h);
copy(hs.atv,v);
copy(hs.alpha,a);
</action>
<!-- troisième copier coller -->
</krpano>