By lovebean
on Mon, 07/23/2012 - 18:41
Greeting all,
Currently doing my Final Year Project. In my project, I need to show up some interaction between marker.
For example, MarkerA show apple, MarkerB show Orange and when MarkerA and MarkerB close to each other, it will show banana.
Anyone can enlight me how to do it?Thanks a lot.
Interaction between markers(FrameMarkers)
Here are instructions for drawing a line between two targets that show how to obtain an offset matrix, which can be used for accomplishing what you're trying to do..
Interaction between markers(FrameMarkers)
Hi David,
Thanks again for the help.
I had followed the steps. I also have compiled the .cpp file successfully.
But when I run the app, it turn black after the splash screen.
Am I miss up anything?
Interaction between markers(FrameMarkers)
Did you add that to ImageTargets? What are you seeing in your log?
Interaction between markers(FrameMarkers)
Yup, I have add them to my Imagetarget sample project and ndk-build.
07-24 03:34:28.662: D/dalvikvm(688): GC_CONCURRENT freed 774K, 12% free 8991K/10183K, paused 2ms+2ms
Interaction between markers(FrameMarkers)
This is the edited ImageTargets.cpp file
/*==============================================================================
Copyright (c) 2012 QUALCOMM Austria Research Center GmbH.
Interaction between markers(FrameMarkers)
Hi david,
Any solution for this?
Interaction between markers(FrameMarkers)
Did you run ndk-build on that? If you PM your email address, I'll send you a tested example of ImageTargets.cpp to get you going.
Interaction between markers(FrameMarkers)
yap, I had built it.
Interaction between markers(FrameMarkers)
I got an error while trying to ndk-build the file u send to me
jni/ImageTargets.cpp:46:20: error: fastcv.h: No such file or directory
Interaction between markers(FrameMarkers)
You can remove the #include of fastcv.h - you won't need it.
Interaction between markers(FrameMarkers)
Hi,
Interaction between markers(FrameMarkers)
Hi, have you checked this article:
https://developer.vuforia.com/resources/dev-guide/unified-target-coordinates
Interaction between markers(FrameMarkers)
Hi Alessandro,
Interaction between markers(FrameMarkers)
Hi, as a general note, some basic understanding of 3D maths (and in particular how transformations are handled with matrices in 3D computer graphics) is generally needed to tackle these kind of issues (as I cannot teach the foundation of 3D maths via the Forum, as you can understand)
Interaction between markers(FrameMarkers)
Hi Alessandro,
Interaction between markers(FrameMarkers)
Hi, if you are using FrameMarkers, each Frame Marker has a unique ID which is called "MarkerID";
Interaction between markers(FrameMarkers)
Alessandro,
Thanks a lot! It was so obvious. I forgot to call the updated array.
Mike
Interaction between markers(FrameMarkers)
glad to help!
Interaction between markers(FrameMarkers)
Still, it doesn't seem to work as expected..here's the bit of code I use for logic:
Interaction between markers(FrameMarkers)
You can easily verify that the markerIds are unique to each marker, by doing this test:
pointing your camera at each of the marker (only one at a time) and checking the logs to see that the reported MarkerId is actually unique for each printed marker.
Interaction between markers(FrameMarkers)
Hi, i had tried the code u give.. But it shown black screen when i install to my phone after i press start button.
besides that, i do not see any code is refering to the marker that will render the object.
Sorry for my bad English and hope u understand my question.
Thanks