New to krpano and the Forum...hello everyone!
After reading over the WebVR Plugin page I was under the impression that it would also act as a gyro plugin on mobile, or did I get that wrong?
Earlier today I had the panorama respond to my iPhone gyro using just the Gyro2 plugin, but then I wanted to take it another step forward by using the WebVR plugin to see whether it could also work in VR (cardboard) mode...the first pano I am working on is this one:
http://avpmatrix.com/kruegervp/_res…ng_Pano-01.html
but after pasting the following code into my "Werfenweng_Pano-01.xml" file, replacing the Gyro plugin code, it is not responding to my iPhone's gyro anymore...here is the content of my "Werfenweng_Pano-01.xml" file":
<krpano>
<!-- the skin -->
<include url="skin/defaultskin.xml" />
<!-- view settings -->
<view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmax="150" limitview="auto" />
<preview url="Werfenweng_Pano-01.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512">
<level tiledimagewidth="3840" tiledimageheight="3840">
<cube url="Werfenweng_Pano-01.tiles/mres_%s/l3/%v/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1792" tiledimageheight="1792">
<cube url="Werfenweng_Pano-01.tiles/mres_%s/l2/%v/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1024" tiledimageheight="1024">
<cube url="Werfenweng_Pano-01.tiles/mres_%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="Werfenweng_Pano-01.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- WebVR -->
<plugin name="WebVR" devices="html5" keep="true"
url="webvr.js"
worldscale="1.0"
mousespeed="0.00125"
oversampling="1.0"
headtracking="true"
fullscreen_mirroring="true"
mobilevr_support="true"
mobilevr_ipd="63.5"
mobilevr_screensize="auto"
mobilevr_lens_overlap="1.0"
mobilevr_lens_fov="96"
mobilevr_lens_dist="0.6"
mobilevr_lens_dist2="1|0|0|0"
mobilevr_lens_ca="0.0"
mobilevr_lens_vign="100"
mobilevr_webvr_dist=""
mobilevr_webvr_firefox="false"
mobilevr_orientationlock="true"
mobilevr_wakelock="true"
mobilevr_sensor_mode="3"
mobilevr_autocalibration="false"
mobilevr_touch_support="false"
mobilevr_fake_support="false"
vr_cursor=""
vr_cursor_enabled="true"
vr_cursor_onover=""
vr_cursor_onout=""
onavailable=""
onunavailable=""
onunknowndevice=""
onentervr=""
onexitvr=""
/>
</krpano>
I have the files "webvr.js", "webvr.xml", and "webvr_cursor_80x80_17f.png" in the root of the pano's folder, on the same level as the "Werfenweng_Pano-01.xml" file itself. The "webvr.xml" file is unmodified.
does any of this raise any red flags that would explain why the pano isn't responding to the gyro? do I *also* have to use the gyro2 plugin to make it work?
another question: once this works, is there a way to force split-view on a regular panorama to make it work with a cardboard compatible headset, and if so, how?
sorry for all these nooby questions...hope they haven't been asked before a dozen times.