Description
Hello, I'm currently following krpano oculus rift tutorial. Everything about the krpano is working, except for the fact I am unable to get it to run in VR mode.
What I've tried
To get the html running in VR mode with the Oculus Rift I need to:
- Download and install one of the experimental web browers. I chose FirefoxNightly ( which does work with the krpanos online demos ).
- Add a "Enter VR" button and add an onclick to run
enterVR
I've also checked and the webvr plugin is installed and active on my firefox nightly.
Errors
In my console I am getting this error when I click my button.
ReferenceError: enterVR is not defined
Questions
What am I am I doing wrong/missing for it to work?
There is this one part of the tutorial that I didn't quite understand.
Stereoscopic rendering support (output side): The stereoscopic rendering will be either enabled automatically when using the WebVR Plugin and calling the enterVR() action ...
The WeBVR Plugin is a clickable elment that links to this page. They start talking about webvr.js and possible attributes for an xml page.
<plugin name="WebVR" devices="html5" keep="true"
url="webvr.js"
worldscale="1.0"
mousespeed="0.00125"
mobilevr_support="true"
mobilevr_ipd="63.5"
mobilevr_screensize="auto"
mobilevr_lens_fov="96"
mobilevr_lens_dist="0.6"
mobilevr_lens_vign="100"
mobilevr_webvr_dist="false"
mobilevr_sensor_mode="3"
mobilevr_fake_support="false"
vr_cursor=""
vr_cursor_onover=""
vr_cursor_onout=""
onavailable=""
onunavailable=""
onunknowndevice=""
onentervr=""
onexitvr=""
/>
Does the webvr plugin ( the one that comes with firefoxnightly ) include all the above or not? If it doesn't how do I find this webvr.js and how do I include it in my project ( or firefoxnightly ) with the xml file?
These may be very simple questions, but I have been spending many hours trying to figure it out with no success. I appreciate any help. Thanks.


