Hi,
I want to create an AR-App with two Image targets and one object. When the camera recognizes Target A or B the object should appear with all the features I added (a button and when you hit the button you see what's inside the object). It is very simple.
When the camera recognizes target A the object appears and the features I added. Everything works. So far so good.
Now I want that as well for target B. If I just copy the ImageTarget and change in "Image Target Behaviour (Script)" the Image Target to B the object appears and the button as well. Now when i hit the Button the script is executing but nothing is happening with the object. With Target A everything still works.
A little Summary if it was too complicated:
If the camera is tracking Image Target A or B the same Object should appear. So two possible targets and it should work with both but I is only working with one...
Can you please help?
Cheers
You could:
You could:
Make a prefab of you object and parent to both your image targets.
or
No sorry this doesn't work.
No sorry this doesn't work. In the first solution the object appears but no buttons appear to see the inside of the object.
Maybe this is because of the scripts. So I put the scripts on the prefab objects as well but that didn't work.
Hello Trackerless,
Hello Trackerless,
Hi,
Hi,
This can happen with extended
This can happen with extended tracking if you haven't moved far from the original target. You'll need to write some app logic to stop rendering or disable extended tracking after certain conditions have been met (target has moved by X amount or other target detected?).
Thanks,
Okay thank you. But the
Okay thank you. But the object sticks unnatural to the camera and not like it is usual for extended tracking. It seems like the object is stuck in one corner and is not moving any more.
This problem only appears when I use more than one Image tracker
Would you be able to provide
Would you be able to provide a screenshot and then either steps to take to reproduce this in the sample app or a small sample project displaying this issue?
Thanks,
Hi, I don't know if it's too
Hi, I don't know if it's too late or not, but I'll show you my solution: you have two target images A and B and an object C that should be child of both target images, you make B child of A, and C child of B, so C is both child of A AND B. When either A or B is shown, the object C is renderized.