Log in or register to post comments

Problem with simple AR app with Unity and Vuforia

September 28, 2015 - 1:55am #1

Hi,

I am trying to make a simple AR app with Unity and Vuforia like here : http://www.dannygoodayle.com/2013/03/01/making-your-first-project-with-unity-and-augmented-reality/
I have downloaded and installed Unity 5.0.3f2 32 bits and Vuforia unity 5-0-5 package on my PC with Windows 8.1 64 bits (6.3, version 9600) .
When I present my target to my camera there is no rendering on my target.
I have checked "Load Data Set myProjectName" and "Activate" in my ARCamera and i added the package of my target in the "Data Set" and in the "ImageTarget" in my ImageTarget.
After saw many topics on the same subject i can't solve my problem.

Someone have an idea for my problem please?

A completely beginner in Unity and Vuforia.

 

Problem with simple AR app with Unity and Vuforia

October 22, 2015 - 11:20am #13

I created a new project with the image target tarmac_scaled.jpg and a 3D Object: sphere on the top of it.

I checked "Load Data Set NameOfMyProject" and "Activate" in my ARCamera and I chose this Data Set in my ImageTarget.

I put the 3D Object sphere under ImageTarget in my hierarchy.

And to finish i put the Vuforia App Licence Key in my ARCamera.

This configuration works.

However, the 3D Object is not at the center of my Image Target, but in the Camera Preview it is (I solved that but I don't really how... I changed 3D Object's position: X = 0.0005 Y = 0 Z = 0.0027 like in the sample instead of X = 0 Y = 0 Z = 0 and it works but when i changed again to (0,0,0) it works too...).

 

Finally I think the problem was the image target and the Vuforia App Licence Key because I chose mobile key instead of digital eyewear.

But I tried with Android and my webcam with my first project that's why I think the problem was the image target I chose. 

Am I right?

Problem with simple AR app with Unity and Vuforia

October 22, 2015 - 8:26am #12

Ok, great to hear.

So, probably a good idea is to compare your setup with the one in the sample, to see if there are any notable differences;

See also some additional information here:

https://developer.vuforia.com/forum/faq/unity-player-settings

and:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/vuforia-50-and-unity-5

 

Problem with simple AR app with Unity and Vuforia

October 22, 2015 - 8:11am #11

Ok, so with these samples the AR works perfectly!

I just had to check "Activate" for the Tarmac.

 

I will test tonight with a new project again with the same image target but a different object and let you know if it works.

 

Thank you again.

 

Problem with simple AR app with Unity and Vuforia

October 22, 2015 - 1:17am #10

Yes, correct.  ImageTargets-5-0-5.unitypackage is the one I'm referring to.

 

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 11:36am #9

Thank you again for your reply.

 

I have only tried on my device (Sony Xperia M2) the Unity's samples games.

But there is not AR within so it's not enough to testing.

 

I looked Vuforia's samples and I saw this file: ImageTargets-5-0-5.unitypackage.

I created a new Unity project and I clicked on Scnes\Vuforia-ImageTarget.unity then a full hierarchy was created with in particular "ImageTargetChips"

Are you talking about these samples?  

 

I can't print these targets now, but I will tomorrow and let you know if these samples work on my device.

 

 

 

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 7:41am #8

Have you verified that the samples do work on your device, i.e.:

  • creating a new Unity project,
  • importing the Vuforia image-targets-5-0-5.unitypackage,
  • setting your License Key in the ARCamera
  • build and run ?

 

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 6:53am #7

Hi,

Thank you very much for your reply.

 

I tried with Unity 32 bits and the version 5.2.1p3 and I still have the same problem.

I also looked player settings and i saw no difference with your advice and my configuration.

With my android device it doesn't work too.

So i don't know why it doesn't work because it seems to be very simple but i can't resolve this issue since one month...

 

Have you another ideas to solve this issue please?

Do you need some pictures of my project's hierarchy to understand what i'm doing wrong?

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 6:50am #6

Thanks , I used the lastest version of unity , and everything is ok

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 1:05am #5

Problem with simple AR app with Unity and Vuforia

October 21, 2015 - 1:03am #4

Vuforia 5.0 curently supports Unity 5.0.3 / 5.0.4 / 5.1.1 and higher;

for optimal performance however, it is recommended to use Unity 5.1.4 (for Unity 5.1.x)  or  5.2.1 (for Unity 5.2.x) or newer version.

See also:

https://developer.vuforia.com/library/articles/Solution/Vuforia-Supported-Versions

 

Problem with simple AR app with Unity and Vuforia

October 19, 2015 - 5:18am #3

I use Mac Unity 5.0.0b1, and vuforia 5. When I ran the  image target example, I got the error:

MissingMethodException: Method not found: 'UnityEngine.Behaviour.get_isActiveAndEnabled'.Vuforia.VuforiaAbstractBehaviour.UpdateStatePrivate (Boolean forceUpdate, Boolean reapplyOldState)Vuforia.VuforiaAbstractBehaviour.Update ()

 

 

Problem with simple AR app with Unity and Vuforia

September 28, 2015 - 4:06am #2

Hi,

I am trying to make a simple AR app with Unity and Vuforia like here :
http://www.dannygoodayle.com/2013/03/01/making-your-first-project-with-unity-and-augmented-reality/
I have downloaded and installed Unity 5.0.3f2 32 bits and Vuforia unity 5-0-5 package on my PC with Windows 8.1 64 bits (6.3, version 9600) .
When I present my target to my camera there is no rendering on my target.
I have checked "Load Data Set myProjectName" and "Activate" in my ARCamera and i added the package of my target in the "Data Set" and in the "ImageTarget" in my ImageTarget.
After saw many topics on the same subject i can't solve my problem.

Someone have an idea for my problem please ?

A completely beginner in Unity and Vuforia.

 

Log in or register to post comments