Log in or register to post comments

Portrait mode

December 6, 2010 - 1:05pm #1

Hi,

I'm having trouble enabling portrait on application with QCAR. If I create a project with QCAR and set orientation to Portrait it looks like application ignores the setting completely. I checked that generated AndroidManifest.xml contains portrait setting. It looks like application overrides that flag internally or something like that.

See Project.png - this is how my project looks in Editor (I don't even have any QCAR objects in my scene).
Project-withQCAR.png - how it looks on the device (orientation of GUIText is landscape).

If I just remove all QARC files from the project and build again - it looks correct (orientation of GUIText is portrait). See Project-withoutQCAR.png

Could you tell me how to fix this issue?

Thanks,
Paulius

PS.: sorry for low quality screenshots - forums reduce the size/quality of my pictures.... If anyone needs proper quality images - I can send it directly to you.

Re: Portrait mode

December 18, 2010 - 5:26pm #9

Thanks Paulius. That worked perfectly.

kedar

Re: Portrait mode

December 18, 2010 - 3:56pm #8

There is a setting in Player Settings. See if that works.

Re: Portrait mode

December 18, 2010 - 12:54pm #7

Hey guys,

With the new Unity Extension, my application runs in portrait mode(like you guys mentioned)

I would like to change it back to Landscape(for the sake of the GUI).
Any ideas on how to do this?

Is this something to do programmatically or is there a toggle somewhere?

thanks,
Kedar

Re: Portrait mode

December 18, 2010 - 10:34am #6

The portrait mode (i.e. GUI) seems to work fine in latest beta. There is one minor issue: when holding camera upwards (in portrait mode) the camera UP vector is pointing in Z+ direction instead of Y+. Y+ is the default UP in Unity. Sure this can be worked around.

Re: Portrait mode

December 7, 2010 - 6:45am #5

You can certainly hold the phone in a portrait orientation while using the current extension, it should work just fine. This is a matter of Android's view orientation, we currently lock it to landscape so that the camera view is drawn correctly across all devices. Hopefully we'll be adding an option for portrait-mode soon, however.

- Kim

Re: Portrait mode

December 7, 2010 - 2:53am #4

Portrait can be set up when building programs without Unity.
You could give that a go.

Rob.

Re: Portrait mode

December 7, 2010 - 1:20am #3

Could you clarify this? If I understand correctly what you're saying is that you can't create portrait Android application with camera, right? what I mean is that it seems that AR itself works fine when I hold my phone portrait, it's just orientation of GUI in Unity that is screewed up. Or is there any limitations why I shouldn't hold my camera portrait?

Re: Portrait mode

December 6, 2010 - 2:42pm #2

This is a limitation of the current QCAR extension, only landscape mode is supported. We already have a feature request in for this, so hopefully portrait support will be added at some point during the beta. There is an issue with portrait camera support on 2.1 devices, however, so it may only be supported on devices with OS 2.2+ installed.

- Kim

Log in or register to post comments