Log in or register to post comments

Multiple Image Target 4 Dummies :O

March 24, 2012 - 9:21pm #1

I'm a beginner and I can create an Image Target App whit just one trackable, but i need use many trackables (9) how can I do it? please, help me and be so specific!!

Re: Multiple Image Target 4 Dummies :O

March 28, 2012 - 8:26pm #4

Sure, take a look at the FrameMarkers sample. It renders a different model on each marker. Start with the renderFrame method in FrameMarkers.cpp.

- Kim

Re: Multiple Image Target 4 Dummies :O

March 28, 2012 - 12:45pm #3

ksiva,

Is there a way to render something different per each trackable?
So render a cube if you see image A and a triangle if you see image B?

Re: Multiple Image Target 4 Dummies :O

March 25, 2012 - 6:50pm #2

Add all of your images to a single project in the online TMS, select them all, and download them as a single dataset. Add this to your Android project, and update the native code (e.g. ImageTargets.cpp) to load your dataset.

To track multiple targets simultaneously, set the following hint:

QCAR::setHint(QCAR::HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS, 2);

You can find that in the onQCARInitializedNative method in ImageTargets.cpp. You can set that to something higher, we recommend 5 simultaneous targets as a practical limit but you can try more.

- Kim

Log in or register to post comments