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?
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 ?