erixon Posted June 29, 2016 Share Posted June 29, 2016 Hello, I tried the VRDeviceOrientationCamera and looks good on mobile, but how do you interact/move in the world, like check if the magnet button is pressed? kind regards Tomas Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 29, 2016 Share Posted June 29, 2016 Hello If you are using the VRDeviceOrientationFreeCamera then it will move using mouse and keyboard. Camera are pretty flexible as well and you can also add your own control method: http://doc.babylonjs.com/tutorials/Customizing_Camera_Inputs dbawel 1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted June 29, 2016 Share Posted June 29, 2016 Using the touch interface on a phone which I think on the Samsung VR would work as input. It has a USB mouse like thing on the side. Maybe you can use the LEAP controller on some phones. They are a coming of age and offer interaction. Quote Link to comment Share on other sites More sharing options...
erixon Posted June 30, 2016 Author Share Posted June 30, 2016 Ok I thought I missed something here, but of course it's not babylonjs fault with the lack of controls and js support of the magnet button. Was just happy that I could do mobile VR stuff and release on the web, til I understood that I can't click with cardboard/plastic VR stuff.. can just wait for the standards.. Quote Link to comment Share on other sites More sharing options...
dsman Posted June 30, 2016 Share Posted June 30, 2016 Actually for user interaction inside app targeted for VR headset, people use orientation as pointer. So there would be one pointer at center (a dot ) which would move in all direction as you move your head. You can have 2D or 3D UI controls on screen. Wherever user keep pointer steady for x seconds, it can be considered as click or tap. So if user has to press button, user has to keep the pointer steady over the button for x seconds. This is how normally VR apps does. You can check many media app for watching movies( For ex "Vu Cinema" on android) . I am assuming this is what you were asking. Quote Link to comment Share on other sites More sharing options...
erixon Posted June 30, 2016 Author Share Posted June 30, 2016 That is a solution of course. Actually I have not been into VR at all before and just tested out some apps with Google cardboard. Maybe my expectations were too high of doing some kind of public 3D game where you moving around, shoot or pick stuff with some action button (or double click). Thanks for all answers. Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 2, 2016 Share Posted July 2, 2016 On 30/06/2016 at 9:54 PM, erixon said: Ok I thought I missed something here, but of course it's not babylonjs fault with the lack of controls and js support of the magnet button. Was just happy that I could do mobile VR stuff and release on the web, til I understood that I can't click with cardboard/plastic VR stuff.. can just wait for the standards.. Most of the new headsets, including Cardboard, have a button which will trigger a touch right in the area in-between the 2 view ports. With that you can detect touch, long-touch, double-touch. Unfortunately its just a general touch with no position information. You just have to be clever how you combine those events with orientation. Quote Link to comment Share on other sites More sharing options...
erixon Posted July 4, 2016 Author Share Posted July 4, 2016 On 2016-07-02 at 5:59 PM, ozRocker said: Most of the new headsets, including Cardboard, have a button which will trigger a touch right in the area in-between the 2 view ports. With that you can detect touch, long-touch, double-touch. Unfortunately its just a general touch with no position information. You just have to be clever how you combine those events with orientation. Thanks that looks very promising, was hard to find information about that. 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.