phoboslab / TwoPointFive

3D View Plugin for the Impact HTML5 Game Engine
MIT License
141 stars 20 forks source link

WebVR support doesn't work #2

Open lunarcloud opened 8 years ago

lunarcloud commented 8 years ago

Testing with the Cardboard APK build of chromium webvr

ig.system.setStereoMode(true);
Uncaught TypeError: Cannot read property 'projection' of null
Uncaught (in promise) TypeError: this.hmdDevice.getEyeTranslation is not a function
at Class.tpf.StereoRenderer.tpf.Renderer.extend.enumerateVRDevices
Uncaught TypeError: Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided. 

I'll retry this later with a proper development environment (not baked) - so that you can get line numbers and files (all in StereoRenderer). I will be working to get WebVR support into my game before it releases, and intend to fork, fix, and pull request if you don't get around to it. I tried to get it to work as-is with chrome and firefox webvr builds and a DK2 during a game jam, so it was more of a "if it works, great" situation.

lunarcloud commented 7 years ago

https://twitter.com/phoboslab/status/744508131410120704 Hopefully this means you're working on this?

phoboslab commented 7 years ago

I was, yes. I stopped short, because of the sound issue mentioned in the tweet.

I'll try to push my changes so far to this repo sometime this week!

lunarcloud commented 7 years ago

Poke? @phoboslab ?