vr.js icon indicating copy to clipboard operation
vr.js copied to clipboard

file './experimental/usb-driver/demo/demo.html' is missing

Open jjsmclaughlin opened this issue 10 years ago • 2 comments

Hi,

The file '/home/jamie/Downloads/vr.js-master/experimental/usb-driver/background.js' attempts to launch 'demo/demo.html' when the experimental usb driver plugin is launched. Unfortunately, the file doesn't exist.

Maybe it got missed out somewhere or not committed. But it means at present you can't use the experimental usb driver.

jjsmclaughlin avatar May 26 '14 18:05 jjsmclaughlin

Get the experimental usb driver working by copying the following files to the 'experimental/usb-driver/demo' directory (in addition to the files already copied there by 'experimental/usb-driver/setup.sh'):

examples/rift_cube_demo.html experimental/usb-driver/driver.js experimental/usb-driver/device-info.js

Change line 54 of 'experimental/usb-driver/background.js' to:

chrome.app.window.create('demo/rift_cube_demo.html', {

Replace lines 5 and 6 of 'experimental/usb-driver/demo/rift_cube_demo.html' with:

<script src="driver.js"></script>
<script src="device-info.js"></script>
<script src="vr.js"></script>
<script src="gl-matrix.js"></script>

Comment out lines 518, 521 and 523 of 'experimental/usb-driver/demo/vr.js'.

There is probably a more elegant way to do this, but it worked as a temporary fix for me.

jjsmclaughlin avatar Jun 02 '14 09:06 jjsmclaughlin

Good catch - the script should probably also copy these.

benvanik avatar Jun 02 '14 15:06 benvanik