Log in or register to post comments

About "tracker"

February 11, 2012 - 1:58am #1

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?

Re: About "tracker"

February 17, 2012 - 4:08am #5

Thank you Kim!
it's extremely helpful

Re: About "tracker"

February 14, 2012 - 6:54pm #4

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

Re: About "tracker"

February 14, 2012 - 4:25am #3

Thank you very much!!

If I change the renderFrame method, should I change any other file? or it depends on the change I did?
sorry, I don't fully understand those files

Re: About "tracker"

February 13, 2012 - 5:26pm #2

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

Log in or register to post comments