Maksims / webvr

WebVR support for PlayCanvas WebGL Game Engine

Home Page:https://playcanvas.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# Oculus Rift Support for PlayCanvas

This project contains the files you'll need to convert your PlayCanvas game to run using the Oculus VR.

Requirements

Currently this requires a special build of Chrome or Firefox

How to use

  1. On the root Entity of your PlayCanvas Pack add a script component and add the input_hmd.js script.
  2. On the Entity with your Camera Component add oculus_camera.js
  3. Run the game

Example

See the Halloween VR project

KNOWN ISSUES

  • Not sure separation and FOV is handled entirely correctly
  • We don't currently handle input from another device (e.g. mouse) and HMD

About

WebVR support for PlayCanvas WebGL Game Engine

https://playcanvas.com/

License:MIT License


Languages

Language:JavaScript 100.0%