Log in or register to post comments

Odd behavior with ARCamera in landscape orientation, camera stuck in portrait mode?

July 18, 2012 - 7:00am #1

I've searched around on google and on the forums here a bit, and saw that some people had this problem but couldn't really find a solution. Just links to old forum posts that didn't really explain how to fix it or a fix for a version of unity that I don't have. I'm currently using Unity 3.5.3f3 and the iOS QCAR that you can download from the asset store (1.5.8). My first problem is that if I set Unity to be landscape right, xcode thinks it should be in landscape left. That sounds more like a Unity/XCode bug to me though, not something that has to do with the QCAR plugin. My big problem is that if I pick something other than portrait or auto rotation, the camera behaves very, very strangely. For example, if I lock the orientation to landscape left (in Unity, making it landscape right in XCode and on the app) the app will launch and the camera appears to be at a 90 degree angle to what it should be. If I tilt my head to the right, it would look correct if it were portrait. However, when I do manage to get a marker in front of the twisted camera, my interface (I use EZGui for Unity) is correctly orientated as I would expect and as I have laid it out. 

Anyone know a fix for this? Seems like the ARCamera does not like landscape orientation, and will only work in auto rotation and portrait. Anyone else have this specific problem? I saw a fix for 3.5.2 of Unity, but I'm running 3.5.3f3. Thanks in advance for any help. 

Odd behavior with ARCamera in landscape orientation, camera stuc

August 31, 2012 - 1:57am #17

This is good.

Stay tuned.

N

Odd behavior with ARCamera in landscape orientation, camera stuc

August 30, 2012 - 10:22am #16

The color is still out of sync on the camera feed. But this fixed the orientation issue!

 

Thanks

Joe

Odd behavior with ARCamera in landscape orientation - workaround

August 28, 2012 - 8:37am #15

Hi adDispatchARTeam

For the orientation issue could you please try this to see if it fixes the issue:

In AppController.mm around line 697 you will see this line:

UnitySetScreenOrientation(requestedOrient);

...so above it try adding this line:

        QCARUnityPlayer::getInstance().QCARSetOrientation(requestedOrient);

and let me know whether it fixes this issue or not.

thanks

N

Odd behavior with ARCamera in landscape orientation

August 26, 2012 - 11:20am #14

I'd recommend filing a bug w/ Unity, obtaining the ticket number, and following-up with Unity Support.

Odd behavior with ARCamera in landscape orientation

August 17, 2012 - 8:48am #13

After doing a bit of research and testing it appears that this is the same as the previous "Unity fixed orientation" issue - but this time on iOS6 whereas it ran fine in previous iOSs following the Unity fix from 3.5.3f3 onwards.

At present I am not sure why this happens, but it seems there is an underlying change in iOS6 which Unity has not caught up with, and Vuforia is just one of the applications that is affected under the circumstances, as would any other applications.

This thread points to another example:

http://forum.unity3d.com/threads/147201-Orientation-and-rotation-issues-when-Building-Unity-App-to-iOS-6-beta-4

Not sure what to suggest here...

Odd behavior with ARCamera in landscape iOS6 problem ?

August 16, 2012 - 8:00am #12

The intention is to support iOS6 in due course, but there is no date for this.

EDIT

I have just started to look at iOS6 to identify what the problem is, and currently this is not clear to me - Image Targets is running fine on iPad2 on iOS6 beta 4

What devices are people having problems with?

N

camera stuck in portrait mode?

August 16, 2012 - 2:20am #11

Odd behavior with ARCamera in landscape orientation

August 15, 2012 - 11:48am #10

I'm running iOS 6 as well. I'm running Unity 3.5.5f2. I have the same issues in Landscape. 

Is Qualcomm working on a fix for this issue?

 

found the problem

July 19, 2012 - 9:59am #9

just as an update for anyone else who was following this thread or may come across it in the future, the problem was that my device was running the new iOS 6 which has some problems. I grabbed a device with iOS 5 on it and everything worked fine. So if you're experiencing this problem, make sure your devices OS is a supported version. 

Odd behavior with ARCamera - Xcode Developer Preview 4.5 iOS6

July 19, 2012 - 9:08am #8

Ok just to confirm after running tests that this is an issue with XCode 4.5 Developer Preview / iOS6 Beta

as after downloading and running the project with the current version of XCode the orientation was correct.

N

still screwed up

July 19, 2012 - 6:41am #7

I ran the stock image test with the teapots and I had the same problem. I've included a picture and I'll PM you this teapot project and you can take a look and make sure I'm not screwing anything up.

 

Odd behavior with ARCamera in landscape orientation,

July 19, 2012 - 6:10am #6

Hi Banister,

Can you PM me with a link to the project so I can download and test it this end?

Cheers,

N

EDIT 

BTW What happens with the ready-made Image Targets scene?  i.e. the one that comes as part of the package?

Basically this is in the Project Hierarchy in Unity and if you double click there is a ready made scene which you can just build and run using chips and stones.  Does the problem exist here?

 

 

still seeing odd behavior

July 19, 2012 - 5:59am #5

NalinS wrote:

Hi Banister,

Yes this was acknowledged as a Unity Problem on 3.5.2 and I provided a workaround here:

https://ar.qualcomm.at/content/unity-352f2-and-ios-fixed-orientation-causes-distorted-output

When 3.5.3f3 came out I tested it and it worked fine.

I took a basic ImageTargets app and set it to a fixed orientation and the problem went away without needing the work around.

I just retested this after seeing your post and tried fixed orientations Landscape Left and Right, and both worked fine on 3.5.3f3.  The only difference is between these were the orientations of the buttons.  Apart from this the camera initialised correctly.

Please could you check you installation and maybe try with a new sample from scratch to see if there is a problem, plus it's also worth checking the device for any old copies of code, because definitely this problem should not be there.

HTH

N

I created a brand new unity project, imported the vuforia 1.5.9 package (I tried this exact process with both the one from the asset store and the one from your website just to make sure there wasn't some discrepancy with one or the other), imported a packed that holds some markers that I made on your website, dragged in an ARCamera prefab, dragged in an ImageMarker prefab, set the dataset up on the two drop menus on the ImageTargetBehaviour script, made a cube - changing its size and location to be right in the middle of the image marker, threw a light in there for good measure. I then went into the build settings and set the orientation for LandscapeLeft, it built and I opened it in xcode (saw the the orientation was set for landscape right now) changed my target device, set up my provisioning profiles, and hit run

I'm still experiencing some odd behavior with the camera, it still appears turned unless i tilt my head. Any suggestions? I'm using everything as stock from the project, no custom scripts or anything. Thanks

I set in inspector, I'll test the sample again

July 19, 2012 - 5:37am #4

vincekilian wrote:

I've had this issue before.  How are you setting your orientation?  Are you setting the supported orientations via Inspector or setting them via script?

 

EDIT: I've used the ARCamera in landscape mode successfully many times.

I'm setting them in Unity, in the player settings for the iOS device. I never set them in code, do I have to? I'll run the sample again to see if it is working on there and post the results.

Odd behavior with ARCamera in landscape orientation

July 19, 2012 - 4:52am #3

Hi Banister,

Yes this was acknowledged as a Unity Problem on 3.5.2 and I provided a workaround here:

https://ar.qualcomm.at/content/unity-352f2-and-ios-fixed-orientation-causes-distorted-output

When 3.5.3f3 came out I tested it and it worked fine.

I took a basic ImageTargets app and set it to a fixed orientation and the problem went away without needing the work around.

I just retested this after seeing your post and tried fixed orientations Landscape Left and Right, and both worked fine on 3.5.3f3.  The only difference is between these were the orientations of the buttons.  Apart from this the camera initialised correctly.

Please could you check you installation and maybe try with a new sample from scratch to see if there is a problem, plus it's also worth checking the device for any old copies of code, because definitely this problem should not be there.

HTH

N

Setting orientation via Inspector or script?

July 18, 2012 - 2:18pm #2

I've had this issue before.  How are you setting your orientation?  Are you setting the supported orientations via Inspector or setting them via script?

 

EDIT: I've used the ARCamera in landscape mode successfully many times.

Log in or register to post comments