Log in or register to post comments

Remove 3D object when the camera is not on tracking

November 27, 2012 - 8:45pm #1

Hello, 

I'm new Vufuria Developper an di want to know how to remove an 3D object on the screen.

So, my problem is when my Object appear on my trackable target on the screen. I'm able to remove it when i'm not filmed the trackable, or something else that I filmed with my phone.??

Any issue?Cry

Remove 3D object when the camera is not on tracking

November 29, 2012 - 12:43am #12

Great! You're welcome.

Remove 3D object when the camera is not on tracking

November 28, 2012 - 10:59am #11

Yes!!! It's work!!!

You're right i'm not using the version 1.5.0 but a diffrent version QCAR_1.6.0.

So, I changed the API and my app work well!!!

ThanksWink

Remove 3D object when the camera is not on tracking

November 28, 2012 - 10:17am #10

There should be one in "Qualcomm Augmented Reality -> Scripts"; yes please update the SDK and/or double-check.

The latest version of the Unity extension is 1.5.10.

 

Remove 3D object when the camera is not on tracking

November 28, 2012 - 9:43am #9

Sorry but there's not DefaultTrackableEventHandler in the folder, you said.

So I try to get the last version of the API, to be sure.

Remove 3D object when the camera is not on tracking

November 28, 2012 - 8:13am #8

That is good, but it is not sufficient; beside the ImageTargetBehaviour,

you also need to attach the DefaultTrackableEventHandler script (you can find it in the Qualcomm Augmented Reality folder), which ensures that objects are not rendered when the targte is not detected.

Remove 3D object when the camera is not on tracking

November 28, 2012 - 8:03am #7

So I've check on UNITY 3D and the script attached to my ImageTarget is ImageTargetBehaviour.

That's the good one?

Remove 3D object when the camera is not on tracking

November 28, 2012 - 5:27am #6

Ok, I see (note, you should post Unity-related questions in the Unity section of this Forum, ...for next time).

Can you check what scripts are attached to your Image Target (or Frame Marker) game object ?

Normally you should have a script called DefaultTrackableEventHandler;

this is a very simple but also very important one, as it is responsible for enabling/disabling the rendering of objects when their trakcable are not detected/tracked.

Can you confirm that you have that script attached ?

 

Remove 3D object when the camera is not on tracking

November 28, 2012 - 4:17am #5

I'm not sure there's code because I realize my application with Unity 3D.

I imported an object. Fbx. I add as a child and my trackable.

And I generated the executable for android.

Remove 3D object when the camera is not on tracking

November 28, 2012 - 4:09am #4

Does this occur with the ImageTargets sample or is it your own app code ?

If it is your code, can you post (or PM me) the relevant code snippet (just the relevant part for the rendering) ?

Remove 3D object when the camera is not on tracking

November 28, 2012 - 3:54am #3

when the camera detects the image. there has to render the 3D object.

But when I'm not in front of the tag, my object stay on the screen.

In fact, it does not disappear once more it was displayed on the screen.

Remove 3D object when the camera is not on tracking

November 28, 2012 - 2:53am #2

Hi,

are you referring to the ImageTargets sample on Android ?

the 3D models are only rendered on top of the Image Target when this is detected, otherwise they just won't be rendered, as the OpenGL code that renders the model is only executed when the QCAR state reports an active trackable with Pose.

Or maybe I did not get your exact question.

Log in or register to post comments