123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <krpano maxwidth="2048" maxheight="1024" logkey="false" showerrors="false" debugmode="false">
- <renderer devicescale="auto" gpu="true" />
- <plugin name="webvr" devices="vr_headset" html5="prefer-webgl" />
- <include url="skin/vtourskin.xml"/>
- <include url="skin/loadingpercenttext.xml"/>
-
- <skin_settings maps="false"
- maps_type="google"
- maps_bing_api_key=""
- maps_google_api_key=""
- maps_zoombuttons="false"
- maps_loadonfirstuse="true"
- gyro="true"
- gyro_keeplookingdirection="false"
- webvr="true"
- webvr_keeplookingdirection="false"
- webvr_prev_next_hotspots="false"
- autotour="false"
- littleplanetintro="false"
- followmousecontrol="false"
- title="false"
- thumbs="false"
- thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
- thumbs_opened="false"
- thumbs_text="false"
- thumbs_dragging="false"
- 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|KEEPVIEW"
- 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=""
- layout_width="100%"
- layout_maxwidth="814"
- controlbar_width="-24"
- controlbar_height="0"
- controlbar_offset="20"
- controlbar_offset_closed="-1555540"
- 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"
- />
- <!-- <style name="roomspot" alpha="0.0" capture="false" /> -->
- <!-- <control bouncinglimits="true"/> -->
-
- <scene name="test1">
- <image>
- <cube url="" />
- </image>
-
- <!-- 初始化场景的方向以及角度 -->
- <!-- <view hlookat="0.0" vlookat="0.0" fovtype="HFOV" fov="150" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> -->
- <!-- 0,0 在中心 -->
- <!-- <hotspot name="hot152" keep="false" url="/static/img/vtourskin_hotspot.png" ath="0.0" atv="0.0"
- distorted="true"
- scale="1.0"
- rotate="0.0" onclick="goto(tr);jscall(document.getElementsByClassName('everyscenebox')[1].classList.add('nowscene'));jscall(document.getElementsByClassName('everyscenebox')[0].classList.remove('nowscene'););">
- </hotspot> -->
- </scene>
- <!-- <events name="nadirlogo" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);" /> -->
- <!-- <contextmenu fullscreen="false" versioninfo="false" /> -->
- <!-- 自动旋转 -->
- <autorotate enabled="true" waittime="3" speed="5" horizon="0.0" tofov="off" zoomslowdown="true" interruptionevents="userviewchange|layers|keyboard"/>
- <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>
- <action name="add_all_the_time_tooltip_for_VR"> txtadd(tooltipname, 'vrtooltip_', get(name)); addhotspot(get(tooltipname)); set(hotspot[get(tooltipname)], type=text, edge=get(hotspot[get(name)].edge), distorted=get(hotspot[get(name)].distorted), ath=get(hotspot[get(name)].ath), atv=get(hotspot[get(name)].atv), oy=-36, ox=0, vcenter=true, padding='3 8', mipmapping=true, oversampling=2, bg=true, bgcolor=rgba(18, 18, 18, 0.8), bgroundedge=2, bgalpha=0.8, bgborder=0, bgshadow='0 0 0 0x000000 0', css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;'), txtshadow='0 0 0 0x000000 0'; enabled=true, ); txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)'); if(text == '' OR text === null, copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title), copy(hotspot[get(tooltipname)].html,text); ); if(lp_running == false, set(hotspot[get(tooltipname)].visible,true); , if(!webvr.isenabled, if(lp_running == true, set(hotspot[get(tooltipname)].visible,false); set(hotspot[get(tooltipname)].mark2,true); ); ); ); if(hotspot[get(name)].normal == false, set(hotspot[get(tooltipname)].normal,false); set(hotspot[get(tooltipname)].onloaded, if(webvr.isenabled, set(visible,false); , if(lp_running == false OR lp_running == null OR lp_running === null, set(visible,true); ); ); ); ); </action>
- <action name="draghotspot">
- spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r')); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv);
- <!-- print_hotspot_pos(); -->
- <!-- js(getHotspotPoint(name,ath,atv);); -->
- );
- </action>
- <action name="makescreenshot_init" type="Javascript" autorun="onstart">
- <![CDATA[ // count the screenshots (for the filenames) krpano.makescreenshot_count = 1; // create an empty Object as makeScreenshot cache var makeScreenshotCache = {}; // add a 'makescreenshot' action to krpano krpano.makescreenshot = function(screenshotwidth,screenshotheight) { // if there is already a screenshot layer, remove it now krpano.call("removelayer(screenshot,true)"); // make a screenshot as canvas var sizeinfo = {w:0, h:0}; var screenshotcanvas = krpano.webGL.makeScreenshot(screenshotwidth, screenshotheight, true, "jpeg", 1.0, null, sizeinfo, makeScreenshotCache); // var shotUrl = screenshotcanvas.toDataURL(); window.shotUrl = screenshotcanvas; } ]]>
- </action>
- <action name="skin_view_normal"> skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5)); </action>
- <action name="skin_view_fisheye"> skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.35, distance(1.0,0.5)); </action>
- <action name="skin_view_architectural"> skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 1.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5)); </action>
- <action name="skin_view_stereographic"> skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8)); </action>
- <action name="skin_view_pannini"> skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 1.0, distance(1.0,0.8)); if(view.distortion LT 0.1, tween(view.distortion, 1.0, distance(1.0,0.8)); ); </action>
- <action name="skin_view_littleplanet"> set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8)); tween(view.fov, 150, distance(150,0.8)); tween(view.vlookat, 90, distance(100,0.8)); add(new_hlookat, view.hlookat, 123.0); tween(view.hlookat, get(new_hlookat), distance(100,0.8)); </action>
- <action name="skin_view_ball">
- set(view.stereographic, false);
- set(view.fovmax, 180);
- tween(view.architectural, 0.0, distance(1.0,0.5));
- tween(view.fisheye, 1.5, distance(1.0,0.5));
- tween(view.pannini, 0.0, distance(1.0,0.5));
- tween(view.distortionfovlink, 1.0, distance(1.0,0.5));
- tween(view.distortion, 1.5, distance(1.0,0.8));
- tween(view.fov, 180, distance(150,0.8));
- tween(view.vlookat, 0, distance(100,0.8));
- </action>
- <!-- <events name="nadirlogorotation" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate,view.hlookat);"/> -->
- <memory maxmem="100" devices="Desktop" />
- <memory maxmem="80" devices="Tablet" />
- <memory maxmem="40" devices="iOS" />
- <memory maxmem="40" devices="iOS7.1" />
- </krpano>
|