Log in or register to post comments

Issue with Nexus

December 10, 2013 - 12:51am #1

Hello,

I had a problem with two smartphones :

- Nexus 5 with Android 4.4

- Nexus 4 with Android 4.3

When I use the augmented reality the camera is such as divided, very strange!

I'm using Vuforia 2.5.7 and Unity 4.1.5.

The application is working well on other smarphones or tablets, the issue is just on these one, I don't know why, maybe you could help me!

I join some screenshots in order you see the issue ...

 

Thank you for your answers!

Issue with Nexus

December 17, 2013 - 7:05am #24

That's great, all work on Nexus 5 now with this update!

Thank to vuforia developers!

Issue with Nexus

December 17, 2013 - 6:48am #23

Thank you, that will help me next time! =)

Issue with Nexus

December 17, 2013 - 6:41am #22

That's because the unity-package file (inside the ZIP) is also a compressed archive; 

it's a bit like having a Zip which contains another ZIP; if you double-click the ZIP file on Mac, the extractor will identify the  unitypackage file (inside the ZIP) as another archive, and will directty dig down inside the unitypackage and will extract the content of the unity-package.

However you can extract the ZIP file without double-click and you should be able to get the actual unitypackage file.

 

Issue with Nexus

December 17, 2013 - 6:34am #21

I've juste tested on Windows, that's working, I was on a mac, quite strange ...

Thank you for your answers!

Issue with Nexus

December 17, 2013 - 6:28am #20

Oh ok, but how do you integrate it in Unity? Because when I extract it there is just a lot of folders which contain assets, but no package ...

I'm sorry for the trouble.

Issue with Nexus

December 17, 2013 - 6:22am #19

Yes, it is normal. the unitypackage is inside the zip file.

Issue with Nexus

December 17, 2013 - 5:37am #18

Is it normal that the new version is a zip file and not a Unity package?

Issue with Nexus

December 17, 2013 - 1:45am #17

Thank you for this information! =)

Issue with Nexus

December 17, 2013 - 1:23am #16

Update: Vuforia 2.8 is now available, and this includes the fix below.

If you plan to upgrade to 2.8, please be sure to consult the migration guide:

https://developer.vuforia.com/resources/dev-guide/migrating-your-unity-project

 

Issue with Nexus

December 13, 2013 - 3:09am #15

You're welcome

Issue with Nexus

December 13, 2013 - 2:42am #14

Thank you very much for your help, it works now! =)

Issue with Nexus

December 12, 2013 - 7:47am #13

Actually I just found out that the fix is at sample app level, so you can do it by yourself without waiting for the next release:

 

The following changes are necessary in the file NegativeGrayscaleEffect.cs in the BTA sample (or OcclusionManagementInitialization.cs in OCM):

 

private const string CHECK_STRING = "OpenGL ES"; // instead of “OpenGL ES 2.0”

 

The method IsOpenGLES2() has to be changed to the following code:

 

    private bool IsOpenGLES2()

    {

        // in play mode on a desktop machine, always return true

        if (QCARRuntimeUtilities.IsPlayMode()) return true;

 

        string graphicsDeviceVersion = SystemInfo.graphicsDeviceVersion;

 

        Debug.Log("Sample using " + graphicsDeviceVersion);

 

        int oglStringIdx = graphicsDeviceVersion.IndexOf(CHECK_STRING, StringComparison.Ordinal);

        if (oglStringIdx >= 0)

        {

            // it's open gl es, parse the version number

            float esVersion;

            if (float.TryParse(graphicsDeviceVersion.Substring(oglStringIdx + CHECK_STRING.Length + 1, 3), out esVersion))

            {

                return esVersion >= 2.0f;

            }

        }

        return false;

    }

Issue with Nexus

December 12, 2013 - 7:10am #12

Thank you very much!

You're right, the problem is solved on Nexus 4 but not on Nexus 5.

So I will wait the next release, tahnk you again!

Issue with Nexus

December 12, 2013 - 6:59am #11

Ok, I have tested Nexus 4 and Nexus 5 with Vuforia SDK 2.6.7 and here is what I get:

  • Nexus 4 (with Android 4.2):
    • Unity 4.1.5:   Occlusion Management and Background Texture Access samples => both running OK
    • Unity 4.2.2:   Occlusion Management and Background Texture Access samples => both running OK
  • Nexus 5 (with Android 4.4):
    • Unity 4.1.5:   Occlusion Management and Background Texture Access samples => both samples failing with message "This sample requires OpenGL ES 2.0" (despite OpenGL ES 2.0 is selected in the build settings)
    • Unity 4.2.2:   Occlusion Management and Background Texture Access samples => both samples failing with message "This sample requires OpenGL ES 2.0" (despite OpenGL ES 2.0 is selected in the build settings)

So, basically, I see the issue you describe, yes, ... but only on the Nexus 5.

If you see the same issue also on the Nexus 4, you might need to upgrade the OS version to Android 4.2 or latest (potentially also a factory reset).

 

Concerning the Nexus 5:    the issue appears to be fixed in the next coming release of Vuforia, so I would suggest to wait for such release, which hopefully should arrive soon.

 

 

Issue with Nexus

December 12, 2013 - 5:43am #10

I've just tried with Unity 4.2.2, and that doesn't change the problem, it's still "The Occlusion sample requires OpenGL ES 2.0".

That's quite strange ...

I've seen I can't try with the last version of Unity because the current version of Vuforia doesn't support it.

I don't know what I can do, maybe waiting for new updates ...

Issue with Nexus

December 12, 2013 - 4:42am #9

Okay, thank you very much!

I will try this! =)

Issue with Nexus

December 12, 2013 - 3:41am #8

This is probably something related to the Nexus 4 or 5 devices; 

look at this thread, which discusses a similar issue:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/backgroundtextureaccess-sample-does-not-work-nexus-4-an

This seems to suggest to upgrade to Unity 4.2.2 (if you are on 4.2.1).

Issue with Nexus

December 12, 2013 - 3:30am #7

Thank you for your answer!

The problem is that OpenGL ES 2.0 is already selected, and the phone supports this technology, that's why I don't understand ... =/

Issue with Nexus

December 12, 2013 - 3:22am #6

That sample requires OpenGL ES 2.0, as it uses a special shader to perform the occlusion effect. This is simply not supported on OpenGL ES 1.x.

Check your Android Player Settings and select OpenGL ES 2.0 instead of 1.x, if you want to use this sample.

 

Issue with Nexus

December 12, 2013 - 12:46am #5

Thank you for your help!

I have tried the sample "Occlusion Management" with Vuforia 2.6.7 and Unity 4.2.1, but I have a new issue! =/

"The Occlusion sample requires OpenGL ES 2.0"

Do you know what can cause this error?

Issue with Nexus

December 10, 2013 - 6:44am #4

Also, worth upgrading to Vuforia 2.6.7 (as you are still using v 2.5, which is not the latest version).

 

Issue with Nexus

December 10, 2013 - 5:08am #3

Good idea, i will test that. 

I will try to update my Unity version too, I've found on the forum that could be the issue ...

Thank you!

Issue with Nexus

December 10, 2013 - 3:14am #2

Hi, first thing, we need to know if you observe the same issue in any of our samples (e.g. the ImageTargets sample)

?

 

Log in or register to post comments