Giter VIP home page Giter VIP logo

node-webvr-alt-stack's Introduction

An insecure alternative WebVR stack for the HTC Vive on Linux. Intended for software development, not browsing.

See packages/electro-webvr/README.md for more information.

Installation

Obtain OS dependencies

Obtain the OS dependencies mentioned in

  1. packages/steamvr-lighthouse-driver-download/README.md
  2. packages/steamvr-lighthouse-driver/README.md

Give yourself permission to use the Vive

If you don't already use your Vive with linux, you will need to set up device permissions.

Download this code

git clone https://github.com/mncharity/node-webvr-alt-stack
cd node-webvr-alt-stack

Build

Prepare the mono repo,

npm install
npm run clean-bootstrap

Download the Vive device driver files,

npm run get-driver

This will download and run SteamCMD, which will need a Steam username and password, and likely a Steam Guard response. steamvr-lighthouse-driver-download has more information.

Now build and test,

npm run setup

It's ok if there's a longish pause.

If that wasn't red, installation worked, and is finished.

If it failed, try simply

cd packages/electro-webvr
npm install
npm test

Usage

cd packages/electro-webvr

./bin/electro-webvr-unsafe examples/welcome.html

Read packages/electro-webvr/README.md.

Notes

What about MacOS? Electron should work. And node-gyp. These modules would be easily patched. Three potential issues come to mind. (1) Getting Valve's MacOS drivers to sanely build. On linux, that required patchelf-ing the library. (2) Does the mac driver even work? While there were a few reports suggesting the linux driver would actually work, I know of none for the mac driver. (3) Getting device access permissions right was non-trivial on linux.

node-webvr-alt-stack's People

Contributors

mncharity avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.