By ryo020288
on Wed, 11/14/2012 - 08:33
my app using imagetarget can be show button and textview...but if move to another marker or camera pointed to empty, the button and textview show previous marker or trackable...and if multiply target or marker, only can be show one information or textview..anyone can help
problem with button and text view
About the first part of your question, wasn't it already replied in this post:
https://ar.qualcomm.at/content/error-close-application-or-press-back-button
?
problem with button and text view
about first part... i try it but not change.the text show previous target and if i shoot in empty area, the text show not hide. this is my code :
problem with button and text view
in same apllication, i try to show 2 markers in same camera or AR view. i want the text show different information (2 information in same view) but one button to show and hide the text. i'm using this code :
problem with button and text view
problem with button and text view
OK, let's arrange one problem at a time:
So, about the reason why "when the AR view is empty (no markers), you still see the text overlay":
problem with button and text view
i try it but, nothing happen...
i add to my code in java is
problem with button and text view
Have you added the additional call to "displayMessage" in ImageTarget.cpp BEFORE entering the "for" loop (i.e. before this line of code:
the for (int idx = 0; idx < state.getNumActiveTrackables(); tIdx++) {...} ) ?
i.e. something like:
problem with button and text view
error, the application show blank screen and stop worked. I add like u say
problem with button and text view
Hi, can you try to adjust your code as follows:
- add a global variable:
int numTrackablesInLastFrame = 0;
then in _renderFrame, adjust the code as follows:
problem with button and text view
yes, thank u. it's work but if i want to track again to marker, the information can't show....
this is my code like ur suggestion :
problem with button and text view
The reason why it does not show the text info any more when you detect a marker, is because you have this code in Java:
problem with button and text view
thanks, it's work. now, my second problem about multiple marker with multiple text/object like i talking before.can u help to solve it?
problem with button and text view
Hi, I'm glad to hear that your problem was solved.
About your second question:
how to show multiple text objects for multiple markers is really an application specific issue;
problem with button and text view
problem with button and text view
Here are some guidelines that I can suggest (providing the full application code is beyond what I can realistically do):
problem with button and text view
problem with button and text view
Hi Losanti,
the displayMessage() is a function that is implemented in the Java side (and which is called from C++ through JNI);
so, this function receives an argument (or a set of arguments) from C++ via JNI, and it creates Message object and send it out to a Handler;
problem with button and text view
Thanks a lot!
That was all i needed and now my program is doind exatcly what i want it to! Have a good weekend and thanks again for the quick answer!
problem with button and text view
You're welcome.
problem with button and text view
i don't understand what u point, can u give me some example with code...
problem with button and text view
Hi ryo,
I pointed Losanti to the same Thread to which I also pointed you at the beginning of this thread (how to modify UI in response to tracking events); I presume Losanti use case was not involving displaying multiple target information in the same view at the same time.