Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jjsmclaughlin opened this issue May 26, 2014 · 2 comments
Open

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

jjsmclaughlin opened this issue May 26, 2014 · 2 comments

Comments

@jjsmclaughlin
Copy link

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
Copy link
Author

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.

@benvanik
Copy link
Owner

benvanik commented Jun 2, 2014

Good catch - the script should probably also copy these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants