vr.js | NPAPI plugin to expose fun VR devices to Javascript | Augmented Reality library

 by   benvanik JavaScript Version: Current License: Apache-2.0

kandi X-RAY | vr.js Summary

kandi X-RAY | vr.js Summary

vr.js is a JavaScript library typically used in Virtual Reality, Augmented Reality, WebGL applications. vr.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

An experimental NPAPI plugin for Chrome and Firefox that exposes fun VR devices. vr.js, in conjunction with a required native browser plugin, exposes the Oculus Rift and Razer Hydra to Javascript in a performant, easy-to-use way. The library makes it simple to query the device values in just a few lines of code but also handles more advanced things like computing all the math required for rendering lens distorted scenes. If you want, it even has a slick API for easily rendering the distored scene that should be easy to drop into any WebGL application. There's also an example three.js wrapper under examples/js/effects/ that works pretty well. Oh, and though it's possible to use node and WebSockets to get the sensor data I don't recommend it - the latency is simply too high (~10ms). This plugin allows for a latency similar to if you were developing a native application against the Oculus SDK and, when running on a correctly configured computer, will be pretty darn good. NOTE: the Oculus SDK doesn't like sharing devices - you must close other Oculus apps before using this in your browser and must close your browser if you want to run another Oculus app. Lame :(.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              vr.js has a low active ecosystem.
              It has 498 star(s) with 103 fork(s). There are 68 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 27 open issues and 4 have been closed. On average issues are closed in 4 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of vr.js is current.

            kandi-Quality Quality

              vr.js has 0 bugs and 0 code smells.

            kandi-Security Security

              vr.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              vr.js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              vr.js is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              vr.js releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              vr.js saves you 254 person hours of effort in developing the same functionality from scratch.
              It has 618 lines of code, 0 functions and 16 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vr.js
            Get all kandi verified functions for this library.

            vr.js Key Features

            No Key Features are available at this moment for vr.js.

            vr.js Examples and Code Snippets

            No Code Snippets are available at this moment for vr.js.

            Community Discussions

            QUESTION

            SyntaxError: The requested module 'sqlite' does not provide an export named 'default'
            Asked 2021-May-04 at 15:07

            i am having trouble when trying to import sqlite, I add the following line:

            ...

            ANSWER

            Answered 2021-May-04 at 15:07

            With ESM modules, there are two ways to export functionnalities: either as default exports, or as named exports. The way you import these functionnalities depends on how they are actually exported in the first place.

            Source https://stackoverflow.com/questions/67386024

            QUESTION

            Static Routing in Express.js returning 404 Error
            Asked 2020-Mar-08 at 08:01

            I'm trying to create routing for different pages of my website, using express.js. When going to 127.0.0.1:8080, it loads the index.html page fine, however, when I go to 127.0.0.1:8080/questionaire, it comes back with a 404 error and doesn't load questionaire.html. I thought that using the line:

            ...

            ANSWER

            Answered 2020-Mar-08 at 08:01

            I just tried your setup and loading questionare.html worked fine for me. Did you receive any other errors from the Express server when you tried to load the page? I'm asking because I'm not sure what the contents are inside viewapi.js so when I tested it, I didn't have that file.

            However, to answer this:

            If there is a better way to do this then fixing the solution, inform me please.

            it's good practice to separate the assets that you serve (html, css, js, images, etc.). For example, you could create sub-folders inside your client folder and put your static files in the appropriate folder.

            You can also find examples and better documentation here: https://expressjs.com/en/starter/static-files.html

            Source https://stackoverflow.com/questions/60567047

            QUESTION

            how to get useful data from xhr responses in facebook page?
            Asked 2019-Oct-29 at 13:09

            I am trying to web scrape my facebook page to get the birthdays of all my friends. Since facebook uses ajax calls to load the friends names in the "birthday events" page, i looked in the network activity in chrome dev tools to figure out where and how its doing the xhr calls and how the response data is .

            The response from these calls , don't mean anything to me . They're looking like they're obfuscated or something... How to extract the data that I see on the site using the response data I get when the xhr calls are made ?

            here is the response data :

            ...

            ANSWER

            Answered 2018-Mar-10 at 20:24

            This looks like some sort of a json-like response with the actual html contained in the __html field.

            Since the actual data is returned in this way, you'll have to do this in a few steps:

            1. Load the json data
            2. Create a Selector
            3. Extract the data you need from the selector

            For example, one way to get the names might be:

            Source https://stackoverflow.com/questions/48827311

            QUESTION

            three.js equirectangular video shaking in vive headset
            Asked 2017-Mar-22 at 19:00

            I render an equirectangular video on the three.js sphere and test the performance of Chromium WebVR on VIVE.

            I notice that the video vibrates and shakes when I look around in VIVE. That makes me feel dizzy.

            If I replace video to image, the vibration stop. I test different videos, every video vibrate. So maybe the problem happens when three.js tries to render these videos on the sphere.

            I also check the fps. It's around 85~90 fps. Looks pretty good.

            ( Before that, I've test the same script on mobile using WebVR Boilerplate and watch video in Cardboard, it works fine. No shaking and vibration. The fps is around 50. )

            While I'm testing, I accidentally figure out if I put an sphere in three.js example webvr_vive_sculp.html, the vibration reduce. Also the fps reduce to 50~60. If I limited the fps in my original script, nothing change.

            Did anyone face this problem?

            Here's my script:

            ...

            ANSWER

            Answered 2017-Mar-22 at 19:00

            WebVr does not handle video textures well right now, if you pause the video the flickering stops right ?

            You can try Firefox nightly, it handles video textures a little bit better, and has lower latency in general.

            You can test it by opening the vive menu during the experience and shaking your head, in Chrome you'll notice much more latency between Vive's native menu performance and your experience in the dimmed background.

            Try to usevideoTexture.minFilter = THREE.NearestFilter; and videoTexture.maxFilter = THREE.NearestFilter;

            For the sphere use new THREE.SphereGeometry(500, 720, 4); I know it looks weird, but this way you'll get much smoother stitches on top/bottom of the sphere.

            Source https://stackoverflow.com/questions/42524193

            QUESTION

            Text animation not occurring on event emission (or event not emitting)
            Asked 2017-Feb-23 at 22:32

            I have a text element and a skybox in my scene. When the scene initialises, I want the text to animate its position once.

            ...

            ANSWER

            Answered 2017-Feb-23 at 22:32

            Okay, it looks like begin only works with numerical values; delay works with both numerical values and event names. To be fair, this is described in the attribute table for animations, but the block below it on the begin attribute shows an example of it being used with an event name. Maybe a depreciated attribute?

            EDIT: okay, maybe this isn't the answer. I'm not entirely sure why delay and begin both exist—is it so there can be a delay following an event trigger, or is delay just depreciated?

            Source https://stackoverflow.com/questions/42334162

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install vr.js

            You can download it from GitHub.

            Support

            Razer HydraOculus Rift Development Kit
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/benvanik/vr.js.git

          • CLI

            gh repo clone benvanik/vr.js

          • sshUrl

            git@github.com:benvanik/vr.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Augmented Reality Libraries

            AR.js

            by jeromeetienne

            ar-cutpaste

            by cyrildiagne

            aframe

            by aframevr

            engine

            by playcanvas

            Awesome-ARKit

            by olucurious

            Try Top Libraries by benvanik

            WebGL-Inspector

            by benvanikJavaScript

            node-airplay

            by benvanikJavaScript

            WebAL

            by benvanikJavaScript

            node-transcoding

            by benvanikC++

            node-livestreaming

            by benvanikJavaScript