arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

[Bug] Camera feed is upside down

Open angecroft opened this issue 6 years ago • 3 comments

Unity bug report case number 1273490

Describe the bug The camera is upside down when switching orientation from landscape left to landscape right directly or from portrait to portrait upside down.

To Reproduce Steps to reproduce the behavior:

  1. Create an AR project or start from the ARFoundation sample project
  2. Set the default orientation to Portrait in Project Settings
  3. Add the following code in Awake() or Start() of any script
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortraitUpsideDown = true;
  1. Build and launch the app on the device
  2. Switch orientation from landscape left to landscape right directly or from portrait to portrait upside down quickly.
  3. See that the camera is upside down

Expected behavior The camera should update it's orientation like the rest of the app (the UI does)

Actual behavior The camera is upside down when switching orientation from landscape left to landscape right directly or from portrait to portrait upside down.

Smartphone (please complete the following information):

  • Device: Xiaomi Mi mix 2S, Samsung Galaxy Tab S4
  • OS: Android 10, Android 8.1.0
  • Unity version 2019.4.8f1
  • ARFoundation version 4.1.0 preview-6
  • ARCore XR Plugin version 4.1.0 preview-6

angecroft avatar Aug 27 '20 15:08 angecroft

This is a bug in non-AR code as we have reproduced this without AR Foundation and associated packages. We have opened a bug internally for the mobile team to investigate.

mdurand42 avatar Aug 27 '20 22:08 mdurand42

You can track the issue here.

tdmowrer avatar Aug 28 '20 17:08 tdmowrer

Thank you for the update

angecroft avatar Aug 31 '20 15:08 angecroft