[SOLVED] Vuforia 3.0.9, Unity 4.5.5f: 3D objects added to Image Target don't show up in AR

Hello,

I’m starting with Vuforia AR and I have a problem using Unity 4.5.5f, Xcode 6 and iOS 8:

I followed this very easy newbie tutorial exactly:
https://developer.vuforia.com/resources/dev-guide/step-2-compiling-simple-project

I build the app and installed it on my iPad Air, pointed the camera at the target but the cube object didn’t show up (I placed it as a child to the ImageTarget etc. exactly as told in the tutorial).

After this I compiled the ImageTargets sample, and it worked fine on my iPad Air (only the third teapot on the asphalt target image never showed, but the other two teapots appeared).

Then again I tried to add simple Unity 3D objects like spheres and cubes and placed them on top of the image targets and dragged them into the image targets in the hierarchy (making them child objects).

But again, the teapots still showed up, but the additional 3D objects never showed.

Any ideas?

Thanks & best,
Andreas

Hi,

I solved the problems. In fact as I now relized there were two different problems:

a) Problem when creating a simple AR project

I followed this tutorial:

https://developer.vuforia.com/resources/dev-guide/step-2-compiling-simple-project

I directly created my own image target using the target manager and included it.

But I did NOT go into the ARCamera settings and check the “Load Data Set [my own image target]” and “Activate” checkboxes.

This is a bit hard in the tutorial, when you look closely at the Inspector view of the ARCamera you can see that these boxes are checked for StonesAndChips.

b) Problem with adding simple 3D objects like cubes to the ImageTarget sample

After I activated the tarmac the 3rd teapot did show up (was the same problem I had above).

But still my cubes were missing.

I then looked into the “DefaultTrackableEventHandler” script and added the cubes there to enable them, and all was fine:

privatevoidOnTrackingFound()
{
   isBeingTracked = true;
   Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
   Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);

   //Enablerendering:
   foreach (RenderercomponentinrendererComponents)
   {
      if(ImageTargetUIEventHandler.ExtendedTrackingIsEnabled)
      {
         if(component.gameObject.name == "tower")
         {
            component.enabled = true;
         }
      }
      elseif(component.gameObject.name == "teapot")
      {
         component.enabled = true;
      }
      elseif(component.gameObject.name == "Cube")
      {
         component.enabled = true;
      }
   }

   //Enablecolliders:
   foreach (CollidercomponentincolliderComponents)
   {
      if(ImageTargetUIEventHandler.ExtendedTrackingIsEnabled)
      {
         if(component.gameObject.name == "tower")
         {
            component.enabled = true;
         }
      }
      elseif(component.gameObject.name == "teapot")
      {
         component.enabled = true;
      }
      elseif(component.gameObject.name == "Cube")
      {
         component.enabled = true;
      }
   }

   Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
}

Best,
Andreas

Thanks for posting the solution to your problem, this will make is easier for people in the future with the same issue :slight_smile:

Thanks FrozenGun that did the trick! :smile: