By maximelegros
on Wed, 06/20/2012 - 17:06
hello,
I am currently trying to make the A.R. view to adapt the interface orientation for the purpose I am using
[CODE]arView onPause[/CODE]
then I reinit the view using the following code
[CODE]QCAR::deinit();
switch (interfaceOrientation) {
case UIInterfaceOrientationLandscapeLeft:
NSLog(@"%d",ARData.QCARFlags|QCAR::ROTATE_IOS_180);
QCAR::onSurfaceChanged(ARData.screenRect.size.height, ARData.screenRect.size.width);
QCAR::setInitParameters(QCAR::ROTATE_IOS_180);
break;
case UIInterfaceOrientationLandscapeRight:
NSLog(@"%d",ARData.QCARFlags);
QCAR::onSurfaceChanged(ARData.screenRect.size.height, ARData.screenRect.size.width);
if (QCAR::setInitParameters(ARData.QCARFlags)==0)
NSLog(@"hi");
break;
case UIInterfaceOrientationPortrait:
NSLog(@"down");
QCAR::onSurfaceChanged(ARData.screenRect.size.width , ARData.screenRect.size.height);
QCAR::setInitParameters(QCAR::ROTATE_IOS_90);
break;
case UIInterfaceOrientationPortraitUpsideDown:
NSLog(@"left");
QCAR::onSurfaceChanged(ARData.screenRect.size.width, ARData.screenRect.size.height);
QCAR::setInitParameters(QCAR::ROTATE_IOS_270);
break;
default:
break;
}
int nPercentComplete;
do {
nPercentComplete = QCAR::init();
} while (0 <= nPercentComplete && 100 > nPercentComplete);
[/CODE]
and finally I use [CODE]arView onResume[/CODE]
this code adapt the camera image in the Background the first time but then I can't go back to the initial orientation (UIInterfaceOrientationLandscapeRight).
here are my spec:
using the native version of QCAR
Mac OS 10.6.8
xcode4
ios 4.3.5
Ipad 2
ps : sorry if my english is bad
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
Re: interface orientation issue
interface orientation issue
I can't seem to follow this discussion. I have the same problem with a stretched camera view. I want my iOS/Android app to have landscape left/right orientation. Is this possible in any way using the Unity extension? Any workaround?
interface orientation issue
Yes it's possible to build apps with either LL or LR orientation. Are you running Unity 3.5.2? If so, please see - https://ar.qualcomm.at/content/unity-352f2-and-ios-fixed-orientation-causes-distorted-output
interface orientation issue
HI Guys
interface orientation issue
Are you running on iOS 8 ?
If so, please check this:
https://developer.vuforia.com/forum/ios/ios-8-xcode-6-and-vuforia-30-compatibility
interface orientation issue
I am having the same issue of the ar camera being in landscape even though the app is in portrait with apps created with Unity. I'm seeing this though with devices running both ios 7 and 8. The same app runs correctly on Android.