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

Jerky tracking in Unity 2021, and 2022 #430

Open
Mandelbrow opened this issue Sep 3, 2023 · 6 comments
Open

Jerky tracking in Unity 2021, and 2022 #430

Mandelbrow opened this issue Sep 3, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Mandelbrow
Copy link

Mandelbrow commented Sep 3, 2023

The VR tracking is pretty useless when building the project for Android with Unity 2021.3.30, or 2022.3.7.
The tracking was much smoother when the app was built with Unity 2020.3.46.

In Unity 2021, and 2022 everything vibrates when the head is moved. It looks like some "smoothing algorithm" constantly overshoots, and then compensates back in every second frame. It looks horrible, and this type of error is scaled up by a huge factor when shown in a vr headset.

Is it a bug in Unity, or isn't the SDK tested with Unity versions later than 2020?

Video Clips to see the problem (choose highest quality in Youtube):
SDK_1.21.0_Unity2022.3.7-jerky-tracking.mp4
SDK_1.21.0_Unity2020.3.46-smoother.mp4

@julien-tamade
Copy link

maybe it's related to this PR?
#212

@Mandelbrow
Copy link
Author

Mandelbrow commented Sep 6, 2023

@julien-tamade The horrible vibration is still there when the camera is rotated with the Tracked Pose Driver disabled. So I believe it's not from wrong gyro timing. There are something else going on from when the vr view is rendered, to when it is visible on the display.

The view still vibrates when rotating the camera, after ExitVR () is called from the back button, if watched through a headset.

@arilow
Copy link

arilow commented Sep 11, 2023

Thank Mandelbrow for reporting this!

Unfortunately we haven’t been able to repro this issue on Unity2022.3.7-. From your last comment, I understand that you are able to repro the jerky tracking also after ExitVR is called. It is worth mentioning that ExitVR disable the Cardboard XR Plugin as you can see here. Is this accurate?

On the other hand, in order to help us reproducing this, please provide the information below:

  • What device are you using?
  • Are you able to repro this same issue with another device?
  • Could you please provide us with apks for the videos shared above?

Thanks!

@arilow arilow added the bug Something isn't working label Sep 11, 2023
@Mandelbrow
Copy link
Author

It's a Sony Xperia 5 from 2020 running Android 11.
Haven't tested other devices.

HelloCardboard_SDK_1.21.0_Unity_2022.3.7-vibrates.apk.zip
HelloCardboard_SDK_1.21.0_Unity_2020.3.46-OK.apk.zip

@petervanapeldoorn
Copy link

Hi, Did you manage to solve this problem? As we seem to have the same issue..

@Mandelbrow
Copy link
Author

@petervanapeldoorn So far haven't found any solution other than staying in Unity 2020.

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

4 participants