Log in or register to post comments

Not seeing 3D objects

January 16, 2016 - 12:13pm #1

Newbie to Unity + Vuforia

I have a very simple test Scene with ImageTarget and a couple cube objects.  As the console shows, Unity sees the Trackable object, but it doesn't show the green 3D objects.  (see attached)

The ARCamera DataSet is OK.  Clipping plane OK.

I must be missing something simple.  Any help?

Unity 5.3.1f1  Vuforia 5-0-10

Thanks!

AttachmentSize
Binary Data Screen Shot 2016-01-16 at 12.01.07 106.35 KB

Not seeing 3D objects

January 26, 2016 - 8:53pm #4

Hi, i found a trick

Try to create plane object inside Image Target,

Create material using, mobile/particles/multiply and apply to plane object.

Add you object inside Image Target as usual.

Hava a try :)

Not seeing 3D objects

January 19, 2016 - 10:10pm #3

Thanks.

Tried "teapot" - didn't work.

The ImageTarget is using the "DefaultTrackableEventHandler" :

private void OnTrackingFound()
        {
            Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true);
            Collider[] colliderComponents = GetComponentsInChildren<Collider>(true);

            // Enable rendering:
            foreach (Renderer component in rendererComponents)
            {
                component.enabled = true;
            }

            // Enable colliders:
            foreach (Collider component in colliderComponents)
            {
                component.enabled = true;
            }

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

I used the ImageTarget sample project from Vuforia(teapots), and replaced a Vuforia ImageTarget with mine.  I've added 3D objects to that scene and everything works fine.  It tracks my image and adds the 3D objects.  

I checked the 2 projects/Scenes against each other.  The only difference I found is that the Vuforia sample project has a "SceneManager" object with an "AppManager" child.  It still concerns me that my original(should be very simple) project does not work.  I need a solution before I can move beyond test examples. 

Could there be a versioning issue with the 2 new versions of Unity & Vuforia?   Any suggestions?

AttachmentSize
Binary Data Screen Shot 2016-01-19 at 9.52.12 93.1 KB

Not seeing 3D objects

January 19, 2016 - 8:02pm #2

Try naming one of the augmentation objects 'teapot' and see if it shows up. Display of augmentations is handled in the ImageTargetTrackableEventHandler.cs script. For ImageTargets sample app, it is looking for 'teapot' augmentation. You can also use more general DefaultTrackableEventHandler.cs.

Log in or register to post comments