Hi,
please provide more information about your case - e.g. system, browser, headset and so on.
Best regards,
Klaus
Hi again
I did play with my case and now it does not behave strangle, it simply does not zoom in. What I did wrong,I used your your code in webvr.xm not inthe tour.xml.
Also the vebvr icon is disabled when I load the tour, after going to any panorama, vr button appeals.
Can you please have a look at my code?
Code
<krpano version="1.19" title="Virtual Tour"> <include url="skin/vtourskin.xml" /> <include url="plugins/Links.xml"/>
<plugin name="logo6" url="logo6.jpg" keep="true" align="leftbottom" x="15" y="15" width="15%" height="12%" handcursor="false" capture="false"/>
<skin_settings maps="false"
maps_type="google"
maps_bing_api_key=""
maps_google_api_key=""
maps_zoombuttons="false"
gyro="true"
webvr="true"
webvr_gyro_keeplookingdirection="true"
webvr_prev_next_hotspots="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="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="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" /> -->
<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> <include url="plugins/webvr.xml" /> <plugin name="WebVR"
multireslock="false"
mobilevr_fake_support="true"
onavailable="skin_webvr_onavailable();"
/> <action name="skin_webvr_onavailable" scope="local">
if(webvr.isgearvr,
<!-- show a special enter VR screen for Gear VR browsers (Oculus Browser or Samsung Internet VR) -->
set(layer[webvr_enterbutton],
align=center, y=0, padding='10 20',
css='color:#FFFFFF;font-size:40px;text-align:center;',
);
);
webvr_onavailable();
</action>
<!-- WebVR zooming - after 2 seconds staring start zooming, stop and zoom back when looking around -->
<action name="webvr_zooming" scope="local" autorun="onstart">
set(movement_tolerance, 0.01);
set(zoom_speed, 1.0);
<!--set(max_zoom, 75);-->
copy(last_tick, timertick);
copy(last_movement_tick, last_tick);
copy(last_view_hlookat, view.hlookat);
copy(last_view_vlookat, view.vlookat);
setinterval(webvr_zooming, 0.1,
copy(cur_tick, timertick);
if(webvr.isenabled,
getlooktodistance(move_distance, last_view_hlookat, last_view_vlookat);
calc(movespeed, move_distance / (cur_tick-last_tick));
calc(movement_tolerance, 0.01 / (webvr.zoom^0.5));
if(movespeed GT movement_tolerance,
copy(last_movement_tick, cur_tick);
tween(zoom_speed, 1.0, 0);
Math.pow(movespeed, 0.5);
);
if((cur_tick - last_movement_tick) GT 2000,
tween(zoom_speed, 1.04);
);
calc(new_zoom, webvr.zoom * (zoom_speed * (1.0 - movespeed)) );
clamp(new_zoom, 1, get(max_zoom));
tween(webvr.zoom, get(new_zoom), 0.1, linear);
calc(webvr.friction, new_zoom GT 2.0 ? (new_zoom - 2.0) / 100.0 : 0);
,
copy(last_movement_tick, cur_tick);
);
copy(last_tick, cur_tick);
copy(last_view_hlookat, view.hlookat);
copy(last_view_vlookat, view.vlookat);
);
</action>
<!-- load a pano image -->
<memory maxmem.mobile.or.tablet="200" />
<action autorun="onstart">
loadscene(get(startscene), null, MERGE);
</action>
<plugin name="draggablelayer" preload="" keep="true"
url="plugins/draggablelayer.swf"
alturl="plugins/draggablelayer.js"
/> <plugin name="getabsxy" preload="" keep="true"
url="plugins/getabsxy.swf"
alturl="plugins/getabsxy.js"
/>
<include url="plugins/automap/automap.xml"/>
<layer name="mapbg" bgcapture="true" type="container" keep="true" maskchildren="true"
align="lefttop" x="0" y="0" width="50%" height="70%" visible="true"
bgcolor="0x000000" bgalpha="0.5" scalechildren="true" scale="1"
/> <layer name="automap" editmode="false" showradar="true" krpanoradar="true"> >
<map name="m1" url="maps/map.jpg"/> </layer> <layer name="automap" parent="mapbg" x="8" y="8" width="-16" height="-16" onclick="automapswitch()"/>
<action name="automapswitch">
if(layer[mapbg].scale GT 0.6, tween(layer[mapbg].scale,0.2), tween(layer[mapbg].scale,1));
</action> <action name="automapscale">
tween(layer[mapbg].scale,%1);
</action> <style name="textfield" url="%SWFPATH%/plugins/textfield.swf" keep="true"
selectable="false" vcenter="true" border="false" roundedge="8"
background="true" backgroundcolor="0x000000" backgroundalpha="0.5"
textshadow="1" textshadowrange="5" textshadowcolor="0x000000"
css="color:#FFFFFF; font-family:Arial; font-size:14px; text-align:center"
/>
<scene name="scene_VBA_L0_2017_000" title="VBA_L0_2017_000" group="g1" thumburl="%CURRENTXML%/panos/VBA_L0_2017_000.tiles/thumb.jpg"
map="m1" mapx="823" mapy="632" heading="210"
/>
<scene name="scene_VBA_L0_2017_001" title="VBA_L0_2017_001" group="g1" thumburl="%CURRENTXML%/panos/VBA_L0_2017_001.tiles/thumb.jpg"
map="m1" mapx="1207" mapy="700" heading="210"
/>
<scene name="scene_VBA_L0_2017_002" title="VBA_L0_2017_002" group="g1" thumburl="%CURRENTXML%/panos/VBA_L0_2017_002.tiles/thumb.jpg"
map="m1" mapx="1467" mapy="874" heading="210"
/>
<scene name="scene_VBA_L0_2017_003" title="VBA_L0_2017_003" group="g1" thumburl="%CURRENTXML%/panos/VBA_L0_2017_003.tiles/thumb.jpg"
map="m1" mapx="1659" mapy="873" heading="210"
/>
<scene name="scene_VBA_L0_2017_004" title="VBA_L0_2017_004" group="g1" thumburl="%CURRENTXML%/panos/VBA_L0_2017_004.tiles/thumb.jpg"
map="m1" mapx="1683" mapy="633" heading="210"
/>
<scene name="scene_VBA_L0_2017_000" title="VBA_L0_2017_000" onstart="" thumburl="panos/VBA_L0_2017_000.tiles/thumb.jpg" lat="" lng="" heading="45"> <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" /> <preview url="panos/VBA_L0_2017_000.tiles/preview.jpg" /> <image type="CUBE" multires="true" tilesize="512">
<level tiledimagewidth="5888" tiledimageheight="5888">
<cube url="panos/VBA_L0_2017_000.tiles/%s/l4/%0v/l4_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="3072" tiledimageheight="3072">
<cube url="panos/VBA_L0_2017_000.tiles/%s/l3/%0v/l3_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1536" tiledimageheight="1536">
<cube url="panos/VBA_L0_2017_000.tiles/%s/l2/%0v/l2_%s_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="768" tiledimageheight="768">
<cube url="panos/VBA_L0_2017_000.tiles/%s/l1/%0v/l1_%s_%0v_%0h.jpg" />
</level>
</image>
<hotspot name="spot1" style="skin_hotspotstyle" ath="63.722" atv="18.432" linkedscene="scene_vba_l0_2017_001" /> </scene>
Display More
Thank you
Marcin