Log in or register to post comments

Where does the pattern matching occur?

November 23, 2010 - 4:53am #1

I'd like to know where the camera data is fed in to allow the 3d objects to be rendered on top of and follow the image target.

I'd imagine it maybe in one of the various compiled java classes.

Re: Where does the pattern matching occur?

August 28, 2011 - 8:18am #6

You'll have to call into the Java layer to do this.

In the [..]_renderFrame method look for ..

for(int tIdx = 0; tIdx < state.getNumActiveTrackables(); tIdx++)

The body of this loop is executed if any trackables are detected, or being tracked.

But keep in mind that Android Activities are run on a stack, so a new one will replace the calling activity at the top. If you simply want to overlay a view on the QCAR context, you can do this using addContentView() rather than utilizing a new activity.

Re: Where does the pattern matching occur?

August 25, 2011 - 12:12pm #5

I would infact like to open another activity rather than overlaying some 3D object. Let me know which line of code is responsible for this

Re: Where does the pattern matching occur?

November 24, 2010 - 5:23am #4

No, sorry, that's closed source.

- Kim

Re: Where does the pattern matching occur?

November 24, 2010 - 1:36am #3

I am just interested in how it's actually done.
Is this code available to see?

Re: Where does the pattern matching occur?

November 23, 2010 - 5:53am #2

Yes, this is compiled in. If you let us know what you're trying to do we might be able to help.

- Kim

Log in or register to post comments