Hi,i am new in AR development
I want to know that can I only use the tracker ?
I mean what I want to do is that I don't want to use openGL to render things,
after the camera catch the image I want to do other things by the code I wrote.
How to segmant tracker and rendering ? is it possible?
- Sort Posts
- 4 replies
- Last post
About "tracker"
February 11, 2012 - 1:58am #5
Re: About "tracker"
February 14, 2012 - 4:25am #3
Re: About "tracker"
February 14, 2012 - 6:54pm #2
You can accomplish some things by just changing the renderFrame method (e.g. render a different model), but it depends on what you want to do. Here's a post that shows you how to call a Java method when a trackable is first found:
http://ar.qualcomm.at/node/2000032
Note that whenever you change the native code (.cpp files) you must run "ndk-build" again. You also must refresh the Eclipse project, or clean and rebuild.
- Kim
Sure, you don't have to use OpenGL to render virtual objects. You have full control of the code that reacts to the trackables. You could launch another activity, go to a website, or change the 2D UI. It's up to you.
If you are using the Android QCAR SDK, start with the ImageTargets.cpp file and look at the renderFrame method. You can handle the tracking events in C++, or pass the information up to Java using JNI calls.
- Kim