Log in or register to post comments

iOS QR AR auto rotation broken

February 14, 2012 - 6:25am #1

I am working on Unity 3.4.2 on a Mac Lion with XCode 4.2.1 and using the AR ios plugin from qualcomm. When I deploy my app on an iPad with the Player settings Default Orientation set to "Auto Rotation" something really strange happens: on portrait the GUI looks fine but the camera sends a landscape image and when moving to landscape the camera is squashed with black borders on the right and left (so actually portrait width)...anyone else with this problem and is there a possible solution? It might have something to do with 2 warnings I am getting after build in Xcode in AppController.mm in ConvertToIosScreenOrientation and didRotateFromInterfaceOrientation:

Enumeration values kScreenOrientationUnknown', 'autorotation', and 'kScreenOrientationCount' not handled in switch and Incompatible pointer types passing 'UIView ' to parameter of type EAGLView '

Before I start messing around with these code issues, can anyone confirm this problem?

iOS QR AR auto rotation broken

February 21, 2015 - 5:13am #5

I have same problem too. Let me explain more;

For case 1:

- Default Orientation: Auto Rotation ( etc. except potrait)

When my application starts and if my device is physically standing horizontal, then AR camera does not show on right positions and it gets some black borders.

When my application starts and if my device is physically standing vertical, then AR camera show on right positions and auto rotation works perfectly.

For case 2:

- Default Orientation: Potrait

When my application starts and if my device is physically standing horizontal or vertical, then it works but I don't want to use orientation of my application as portrait.

Anyone can help me please ?

 
 
Here are my configurations:
-Vuforia vuforia-unity-android-ios-3-0-9. 
-Unity pro 4.3.4
-Mac OS
-Tested on ipad 2
 
AttachmentSize
Image icon for_case_1.png606.61 KB
Image icon for_case_2.png1.05 MB

Re: iOS QR AR auto rotation broken

March 13, 2012 - 7:35am #4

Hi dsanta,

Can you be more specific? Which of the errors do you see?

Re: iOS QR AR auto rotation broken

March 13, 2012 - 7:16am #3

I have the same problem, the autorotation item its not selected, is portrait, however in Xcode i have the same error.

Re: iOS QR AR auto rotation broken

February 14, 2012 - 6:37am #2

Please see the release notes for SDK 1.0

Known issues:
* Unity’s Auto Rotation screen orientation setting is not supported

There are problems with AutoRotation in Unity that have been improved for Unity version 3.5 - when QCAR iOS SDK 1.5 is available it will support that.

Log in or register to post comments