Log in or register to post comments

Camera Device Mode question

February 6, 2012 - 10:33am #1

Hi,
I have recently been trying around with the camera device modes and I don't know if this is the intended behavior but I think it's kind of weird. When in default or optimize_speed mode almost the whole available camera image is used as video background (well, except that it is cropped to fit the display format). In optimize_quality mode however there is a by far smaller part of the camera image used, which in my opinion looks really strange when using the app.
The behavior is the same in 1.0.6 and 1.5.4 and I attached screenshots of the two modes and the native camera app. Is there any way to have the same field of view of the default mode also in the optimize_quality mode?
In case this is a problem just I'm experiencing, I'm on a Galaxy Tab 10.1 running Android 3.2 and the app was built using Unity.
Best,
Stefan

Re: Camera Device Mode question

February 10, 2012 - 3:03pm #4

No, this is a hardware issue, not something we can control.

Ah, in Unity it's a little less straightforward. You would have to edit the TrackerBehaviour (1.0.6) or QCARBehaviour (1.5) script, located in the Qualcomm Augmented Reality/Scripts folder. See the ConfigureVideoBackground method in that script.

Note that you'll have to be careful to save your changes to these files and apply them again when updating the SDK.

- Kim

Re: Camera Device Mode question

February 10, 2012 - 4:57am #3

hi kim,
thanks for your answer. isn't there any way to get the same camera image for the different quality settings?
anyway, i'm working on unity and i can't figure out where the configureVideoBackground method can be found. could you give me a hint on where i can do this?
thanks a lot.
best,
stefan

Re: Camera Device Mode question

February 9, 2012 - 8:01pm #2

Sorry for the late response, had to get some insight on this one. The issue is that on some devices the camera delivers images with different aspect ratios for different quality settings. We fit the camera image to the screen by scaling it so that it just fits. Depending on the ratio, that means that the camera image may extend beyond the top and bottom of the screen, or alternatively beyond the left and right. You can probably see how this changes the perceived field-of-view.

You have control over the way the camera is fit to the screen, see the native configureVideoBackground method.

- Kim

Log in or register to post comments