Log in or register to post comments

how to replace teapot

February 20, 2012 - 4:23am #1

how to replace teapot in imagetarget sample app?
what are the types of responses can be used in place of Teapot?

how to replace teapot

May 1, 2018 - 7:48pm #6

I have the same question! But I can't find "imagetargets.cpp" in jni. Is there some thing wrong with my package?

And another way to initialize a "banana.java" don't work either.Because jar has updated and mRenderer.drawVideoBackground() can't be used in renderFrame method.

how to replace teapot

June 2, 2014 - 11:16pm #5

plz send the code

Re: how to replace teapot

February 22, 2012 - 6:11pm #4

For the first section you're editing the renderFrame method in ImageTargets.cpp. Study that function to figure out where this fits in. Also add lastTrackableId as a global variable in that file.

The second section is added to ImageTargetsRenderer.java. Copy and paste that code directly into the class, it's a new static member variable and a new method.

The final section is added to ImageTargets.java. Edit the existing OnResume method to define the handler.

- Kim

Re: how to replace teapot

February 21, 2012 - 9:12pm #3


thanks for reply..i seen the thread for adding the toast.i followed the steps but i cant figured out actually where i have to modify the code?
please explain it bit more...
thanks in advance.

Re: how to replace teapot

February 20, 2012 - 2:27pm #2

That will help if you want to render a 3D object instead of a teapot. If you want to respond in some other way (e.g. play a sound, show some info, open a webpage) you may want to call a Java method when the target is found. This post will should you how to display an Android Toast message with the target name:

http://ar.qualcomm.at/node/2000032

- Kim

Log in or register to post comments