brianzinn Posted October 30, 2017 Share Posted October 30, 2017 I was looking through the VR input for device orientation to see if it worked with Cordova by default - looks like no. Was wondering if anybody has experience hooking up gyroscope to camera inputs. I see listeners added for only "window.orientationchange" and "window.deviceorientation". Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 30, 2017 Share Posted October 30, 2017 Hi, Shouldn't this work out of the box? The cordova orientation plugin is deprcated (as far as I know), since the devices expose the event scorrectly. See the last comment on this page - https://github.com/apache/cordova-plugin-device-orientation If it isn't, we need to check what events are actually being triggered so we can see what's missing. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted October 30, 2017 Share Posted October 30, 2017 3 hours ago, RaananW said: Hi, Shouldn't this work out of the box? The cordova orientation plugin is deprcated (as far as I know), since the devices expose the event scorrectly. See the last comment on this page - https://github.com/apache/cordova-plugin-device-orientation If it isn't, we need to check what events are actually being triggered so we can see what's missing. Yes, it works without any plug-in. I tested with the DeviceOrientationCamera, not the VR variant as I do not currently have the hardware. I used a simple computer generated scene, with the camera inside of a cube, each side colored differently, and the normals reversed. It worked fine on an actual Android device attached via USB. I also am planning a web audio soon. Have an Ipad, but need a Mac to test on that. Mine is too old & starting to fail. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted October 30, 2017 Author Share Posted October 30, 2017 I should have tried before asking. My target VR is device orientation (gearVR + Cardboard). I am in the research phase right now for android/ios deployment of BabylonJS. Thanks. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2017 Share Posted October 30, 2017 Please keep us posted about your game! brianzinn 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.