hello,
i am android developer and for now i am revising c++ to use the NDk
i uploaded the image in trackable and obtained it's information and replaced chips in the imagetarget sample with my project image (uploaded in the attachment) , i want to display text on the image like the tea cup
so which class i will edit and how , and how to display image like notification (this is roman ) for example on the image or near image in the mobile screen frame in case the camera sees this image of course ,
thanks .
awaiting for your replies
You can find the center point of the target in screen space using the method described in this thread: http://ar.qualcomm.at/node/2000570
If you want to render the text in 3D on the target you'll need to use OpenGL. Unfortunately the OpenGL API doesn't support text directly, so you'll have a bit of work to do. See this thread for some ideas: http://stackoverflow.com/questions/1339136/draw-text-in-opengl-es-android
- Kim