Log in or register to post comments

Xperia arc camera artifacts

August 8, 2011 - 1:31am #1

Hi, I'm running my app on a sony xperia arc. It runs fine, except for artifacts around the corners of the screen. The outer say 5 pixels on every edge show mixed up and blurry pixels. I'm running the application through unity with the camera on high quality setting.

Re: Xperia arc camera artifacts

August 30, 2011 - 7:27am #8

The distortion is coming from a mismatch between the camera resolution and screen resolution with the quality setting on that device. Here's a temporary fix, future versions of the SDK will resolve this issue.

Open the Qualcomm Augmented Reality/Scripts/TrackerBehaviour.cs file and find the ConfigureVideoBackground method. Replace this code:

        if (Screen.width > Screen.height)
        {
            float height = videoMode.height * (Screen.width / (float)
                            videoMode.width);
            config.size = new Vec2I(Screen.width, (int) height);
        }
        else
        {
            float width = videoMode.height * (Screen.height / (float)
                            videoMode.width);
            config.size = new Vec2I((int) width, Screen.height);
        }

with this:

        if (Screen.width > Screen.height)
        {
            float height = videoMode.height * (Screen.width / (float)
                            videoMode.width);
            config.size = new Vec2I(Screen.width, (int) height);

            if (config.size.y < Screen.height)
            {
                config.size.x = (int) (Screen.height
                                    * (videoMode.width / (float) videoMode.height));
                config.size.y = Screen.height;
            }
        }
        else
        {
            float width = videoMode.height * (Screen.height / (float)
                            videoMode.width);
            config.size = new Vec2I((int) width, Screen.height);

            if (config.size.x < Screen.width)
            {
                config.size.x = Screen.width;
                config.size.y = (int) (Screen.width * 
                                  (videoMode.width / (float) videoMode.height));
            }
        }

Let us know if that helps.

- Kim

Re: Xperia arc camera artifacts

August 30, 2011 - 12:57am #7

Yes, i'm continuing to see the same distortion, but only on high quality mode. I'm seeing the distortion in the sample frame marker application too when i compile it on high quality (in the unity extension).

I haven't tried building a sample application with eclipse.

The focus doesn't work like it does on our other devices either. I have to push the focus button to release the auto focus, and the activate the auto focus again to get the proper focus distance. (both on normal mode and quality mode).

Re: Xperia arc camera artifacts

August 19, 2011 - 1:03pm #6

Hello,

Are you continuing to see the distortion? Are you seeing the distortion in the sample applications?

Thank you,

-Peter

Re: Xperia arc camera artifacts

August 18, 2011 - 2:07am #5

I hate to disappoint you, but the artifacts are still there. I uninstalled the application before i reinstalled it.

Re: Xperia arc camera artifacts

August 17, 2011 - 2:24pm #4

Hello,

Please try uninstalling and re-installing your app on your Sony Ericsson Arc device. You should not see the artifacts in the Quality setting anymore.

Thank you,

-Peter

Re: Xperia arc camera artifacts

August 17, 2011 - 1:35am #3

First of all, sorry for my late response. I've been ill for a while.

But i did some more research and discovered that it doesnt happen with the quality on default. Further the device is an xperia arc lt15i to be precise. I'm not sure if this is the device number you requested, but otherwise please contact me for further information.

I attached two screenshots of what happens at device_mode quality. I haven't tested with 1.0.6 /unity 3.4 yet.

Re: Xperia arc camera artifacts

August 8, 2011 - 3:00pm #2

Hello,

What is the model number of your device? Can you post a screen shot of the distortion you are seeing?

Thank you,

-Peter

Log in or register to post comments