By MrNobody
on Wed, 11/28/2012 - 04:45
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?
Remove 3D object when the camera is not on tracking
Hi,
are you referring to the ImageTargets sample on Android ?
Remove 3D object when the camera is not on tracking
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
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
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
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;
Remove 3D object when the camera is not on tracking
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
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
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
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
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!!!
Remove 3D object when the camera is not on tracking
Great! You're welcome.