Giter Site home page Giter Site logo

imclab / webvr-polyfill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from immersive-web/webvr-polyfill

0.0 1.0 0.0 282 KB

A polyfill for WebVR which uses web APIs to provide similar functionality. Mostly for Cardboard and desktop/mobile fallbacks.

Home Page: http://smus.com/responsive-vr/

License: Apache License 2.0

Makefile 0.17% JavaScript 99.83%

webvr-polyfill's Introduction

WebVR Polyfill

This project provides a JavaScript implementation of the WebVR spec.

The goal of this project is two fold:

  1. Use WebVR today, without requiring a special browser build.
  2. View (mono) content without a virtual reality headset.

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.

Experimental WebcamPositionSensorVRDevice uses your laptop's webcam in order to introduce translational degrees of freedom.

webvr-polyfill's People

Contributors

autonome avatar borismus avatar deathcap avatar

Watchers

 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.