Closed bewegende-Architektur closed 1 year ago
Hi,
From the documentation, it should indeed touch-controls: Touch screen (or Cardboard button) to move forward.
This may have worked several years ago with WebVR. With WebXR now we may need to fix the code to also listen on selectstart/selectend from the comment of @kylebakerio here https://github.com/aframevr/aframe/issues/3969#issuecomment-884385659
I don't have a cardboard to test it. You can try making the changes in touch-controls, happy to review any PR and merge if you got it working.
Thank you very much for your answer! I will try to solve it and answer again when its working. Greetings, Chris
Did you manage to add the listener to test it? It may not be straightforward because it's on the xrSession.
I did the change in a branch https://github.com/vincentfretin/aframe-extras/commits/cardboard
but I didn't test that. You can try
https://cdn.jsdelivr.net/gh/vincentfretin/aframe-extras@380375b/dist/aframe-extras.min.js
and let me know.
@bewegende-Architektur did you manage to test an example with my build? Let me know.
I'm not sure how it works with cardboard, do you click on the VR button yourself before inserting the phone in the cardboard?
If yes, be aware if you use your own aframe master build and later with aframe 1.4.0 you will need
<a-scene vr-mode-ui="cardboardModeEnabled:true">
, see https://github.com/aframevr/aframe/commit/042a3d6b7087a632c5165227b14bc37573375cde
Dear Vincent,
thanks again for your answer. Sorry for my late response. I have created a simple scene here: https://sandbox.bewegende-architektur.com/
`
Hey there :)
I would like to create vr in aframe and desktec v5. The idea is to use the button of the glasses to move forward.
I was starting out with the minimal example:
<a-entity id="rig" movement-controls position="25 0 25"> <a-entity camera position="0 1.6 0" look-controls="pointerLockEnabled: true"></a-entity> </a-entity>
This is working on PC with WASD and with ouch on iphone aswell. When using vr-mode, i am able to move by touching the screen of the iphone. But when butting the camera into the holder, the button of the desktec is not recognized. (it is working in the minimal example of google cardboard)
My question is: What is the difference between Touch screen and Cardboard button? I tought this is the same. How could i use the cradboard-button to move forward?
Greetings, Chris