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 Constantly Points Down and Jerks Up During Movement #459

Open
1 task done
arsovskii opened this issue Apr 10, 2024 · 2 comments
Open
1 task done

Camera Constantly Points Down and Jerks Up During Movement #459

arsovskii opened this issue Apr 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@arsovskii
Copy link

arsovskii commented Apr 10, 2024

SPECIFIC ISSUE ENCOUNTERED

The head location capturing in my Unity project using Google Cardboard SDK is problematic. The camera constantly looks towards the floor, and when I move the camera, it jerks up and then goes back down.

SMARTPHONE (please complete the following information):

  • Device: Poco X3 Pro
  • OS: Android
  • OS Version: 13

STEPS TO REPRODUCE THE ISSUE

  1. Start the Unity project on the Poco X3 Pro device.
  2. Enable the Google Cardboard SDK.
  3. Move the device around to observe the camera behavior.

EXPECTED BEHAVIOR

The camera should smoothly track the head movements, maintaining a stable view.

VERSIONS USED

  • Google Cardboard SDK: 1.24

  • Unity: 2022.3.22f1

  • Select in which graphics API you can reproduce the bug.

    • OpenGL ES3

SCREENSHOTS

2.mp4

ADDITIONAL CONTEXT

I have tried the same app without changing anything on another phone, on which it worked as intended. I have also tried the cardboard app from Play Store, which works as intended, so I have ruled out hardware problems

@arsovskii arsovskii added the bug Something isn't working label Apr 10, 2024
@lneumarkt
Copy link

Thank you @arsovskii for reaching out.

We’ve tried to replicate the problem using a Poco X3 Pro and a Pixel 8, but unfortunately we couldn’t reproduce the bug.

Could you please share your device's fingerprint?
You can get it by running the following command in the terminal with the device connected to your computer.

adb shell getprop ro.build.fingerprint

Could you also please verify if the same behavior occurs with the Hello Cardboard sample app? You can follow the instructions on the Quickstart for Unity to install the sample app.

If this is not reproducible with the sample scene, we would need you to share with us a simple repro project where this issue is depicted, either via a zip file containing the Unity project or a link to a git repo. It would be of great help so as to be able to reproduce and solve this issue.

Thanks!

@arsovskii
Copy link
Author

Thank you for your response @lneumarkt and for attempting to replicate the issue.

My device fingerprint is:
POCO/vayu_global/vayu:13/TKQ1.221013.002/V14.0.1.0.TJUMIXM:user/release-keys.

I can confirm that the same behavior occurs with the Hello Cardboard sample app. The rotation reporting issue persists in the demo scene as well.

I have checked the hardware sensors to ensure they are working correctly and can confirm they report the correct values. My hypothesis is that the app is taking the linear acceleration instead of the actual rotation of the device.

Thank you for your assistance in addressing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants