Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webvr-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webvr-polyfill

Polyfill for WebVR, enables Cardboard and fallbacks to mobile/desktop.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by6.16%
Maintainers
1
Weekly downloads
 
Created
Source

WebVR Polyfill

The goal of this project is two fold:

  1. Make it possible for developers to use WebVR today, without special browser builds.
  2. Provide good fallbacks for users that don't have VR hardware.

Implementation

CardboardHMDVRDevice provides default parameters for Cardboard's interpupillary distance and headset.

GyroPositionSensorVRDevice uses the DeviceMotionEvents (which map roughly to the gyroscope) to polyfill head-tracking on mobile devices. This is used both in Cardboard, and for Spotlight Stories-style experiences.

MouseKeyboardPositionSensorVRDevice uses mouse events to allow you to do the equivalent of mouselook. It also uses keyboard arrows and WASD keys to look around the scene with the keyboard.

Open issues

  • Provide a GUI to specify HMD parameters. Possibly a configuration UI for setting them for non-Cardboard devices.
  • Provide new types of tracking, perhaps using the web camera for 3 translational degrees of freedom, eg: http://topheman.github.io/parallax/

Keywords

FAQs

Package last updated on 30 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc