Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera is super sensitive to motion on Chrome Beta 66 on Android #3476

Closed
andree-rehnberg opened this issue Mar 19, 2018 · 25 comments
Closed

Comments

@andree-rehnberg
Copy link

andree-rehnberg commented Mar 19, 2018

Description:
This issue makes the camera jump around like crazy, being super sensitive to any motion whatsoever.
I assume this issue is related to issue #3458 but instead of the camera moving slowly it moves far too quickly.

Here is a video showing the issue, the video was recorded with the phone held with stable hands.
https://vimeo.com/260723899

  • A-Frame Version: 0.8.0
  • Platform / Device: Chrome Beta 66 / Oneplus 5 (Android 8.0.0)
@dmarcos
Copy link
Member

dmarcos commented Mar 22, 2018

This is because DeviceMotionEvent.rotationRate units have changed from degrees per second to radians on Chrome m66

@jsantell
Copy link
Contributor

Updating to the latest A-Frame contains an updated webvr-polyfill which fixes these issues -- not sure what A-Frame release contains these changes, though (but introduced after 0.8.0)

@raoelhulst
Copy link

Any idea when this will be solved? Thanks in advance.

@dmarcos
Copy link
Member

dmarcos commented Apr 17, 2018

@raoelhulst The fix that @jsantell has mentioned has shipped already. Update A-Frame to 0.8.2

@dmarcos
Copy link
Member

dmarcos commented Apr 17, 2018

@jsantell do you think we can close this issue?

@jsantell
Copy link
Contributor

yeah, m65 will be replaced with m66 soon and polyfill has been updated with all issues

@raoelhulst
Copy link

Thanks man! It works 👍 .

@a5507203
Copy link

a5507203 commented May 3, 2018

@dmarcos Is there any way to modify web-polyfill to newest version in Aframe 0.5.0? Since I have already built an large AFrame project with 0.5.0, a lot of thing need to change if i swap to new version of aframe. Thanks in advance.

@ngokevin
Copy link
Member

ngokevin commented May 3, 2018

You can try to build yourself. Clone the repo, checkout v0.5.0 tag, update package.json, npm run dist. YMMV

@revlity
Copy link

revlity commented May 12, 2018

I am using A-frame 0.6.1. How can I fix this without updating to 0.8.0.

@jsantell
Copy link
Contributor

What @ngokevin said is the only way, using the 0.6.1 tag:

You can try to build yourself. Clone the repo, checkout v0.5.0 tag, update package.json, npm run dist. YMMV

@jonwaterschoot
Copy link

I've been away for a while from A-Frame. Wanted to test some of my older experiments, but saw this issue. I went to the homepage of A-Frame and noticed the same issue with some of the examples there.
Using Chrome on a new ZTE Axon 7.

@dmarcos
Copy link
Member

dmarcos commented May 23, 2018

@jonwaterschoot With A-Frame 0.8.2 and Chrome m66?

@gabrieljbaker
Copy link

I noticed this on my Samsung s8 + last night. Aframe .8.2 and chrome m66.

@a5507203
Copy link

a5507203 commented May 24, 2018 via email

@jayson04
Copy link

Hi @ngokevin I am beginner in git. Do you have a video instruction on how to make my own build like what you commented on May 3. Thank you.

@dmarcos
Copy link
Member

dmarcos commented Jan 24, 2019

This is fixed on A-Frame master

@dmarcos dmarcos closed this as completed Jan 24, 2019
@ClosetGeek-Git
Copy link

ClosetGeek-Git commented May 8, 2019

Why is this issue still present on the A-frame demos at aframe.io? I'm still having this issue on the demos, and when I download and edit aframe version to 0.8.2+ (including 0.9.1) the only change is that gyroscope seems disabled and camera seems stuck in a diagonal view. What is the solid solution to these issues?

Pixel 3, tested using current versions of Chrome and Firefox Focus with the same results

@dmarcos
Copy link
Member

dmarcos commented May 8, 2019

What Chrome version? What demos? https://aframe.io/aframe/examples/ work fine for me in Chrome m74 and m76 (Canary),

@tinchoforever
Copy link

Samsung S8 & Chrome m74 here....
All examples.

@dmarcos
Copy link
Member

dmarcos commented May 21, 2019

Make sure you are on A-Frame 0.9.2. Examples work fine for me on Chrome m74 and Pixel 2 & 3: https://aframe.io/aframe/examples/

@dmarcos
Copy link
Member

dmarcos commented May 21, 2019

Also make sure you have the devicemotion APIs enabled. More info: #3976 (comment)

@marcusx2
Copy link

marcusx2 commented Jul 9, 2020

@dmarcos How do I fix this problem? Sorry, I don't even use aframe but when looking up on google about this problem this is the only lead I found. I tried downloading this project and searching for a fix, but coudln't figure it out. The Gyroscope api works fine but I can't use it because it only works on Android. So I am left with this DeviceMotionEvent.rotationRate, but the rotations are crazy, moving superfast everywhere. It's still broken.

@jsantell
Copy link
Contributor

jsantell commented Jul 9, 2020

@marcusx2 this chunk of code in cardboard-vr-display controls the device motion in aframe, maybe a good place to start

@dmarcos
Copy link
Member

dmarcos commented Jul 9, 2020

@marcusx2 What is the problem? Do the A-Frame examples work for you? Make sure you are using A-Frame 1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests