Log in or register to post comments

Problems with OcclusionManagement sample scene and device orientation

May 29, 2012 - 7:23pm #1

Im tearing my hair out over this. Whenever I try running the example "QCAR-OcclusionManagement" scene on the iPhone, the app says "The Occlusion sample must have a landscape left orientation". It prevents me from doing anything other than closing the app.

Now I could modify the code to remove this, but I wonder why its a problem. I have the orientation set to landscape-left in Unity and also in Xcode (plist and project settings) It currently does not support any other orientations. I tried messing around with orientations in Xcode and did get it to sorta work (half the screen was black) without supporting landscape left.

Had anyone had this issue? Im stumped.

Re: Problems with OcclusionManagement sample scene and device or

May 31, 2012 - 12:50am #5

Thank you. I managed to find a solution in that topic.

Re: Problems with OcclusionManagement sample scene and device or

May 30, 2012 - 7:09am #4

I think this is another example of the Unity Orientation issue that has happened in the latest version of Unity. Basically it's to do with the splash screen code in AppController.mm

See this thread for more details and a workaround
http://ar.qualcomm.at/node/2002210

Basically if you comment out several lines in shouldAutorotateToInterfaceOrientation it should work as expected.

HTH

N

Re: Problems with OcclusionManagement sample scene and device or

May 29, 2012 - 9:54pm #3

Thanks for the reply. Right now Im using Unity 3.5.2f2 with the vuforia extensions 1-5-9. Perhaps one of them is out of synch? In my player settings I have specified Landscape left and also in the Xcode project settings/plist. It doesnt seem to make a difference though. Even the base scene without modifications does not run.

Re: Problems with OcclusionManagement sample scene and device or

May 29, 2012 - 9:12pm #2

Which version of the iOS Unity Extension are you using, and which version of Unity are you using?

To confirm, when you run the sample, and it is set-up for Landscape Left as the 'Default Orientation' under Player Settings, you're still seeing "The Occlusion sample must have a landscape left orientation"?

Log in or register to post comments