Log in or register to post comments


March 7, 2012 - 1:59pm #1

I'm tring to learn to create my own AR app but I'm unable to make any progress. I looked every file of the samples but I'm afraid I couldn't understand anyone. So I would like to know if there is any tutorial or somewhere where I could know what exacli I have to modify from the sample.


Re: Tutorial

March 9, 2012 - 9:34am #5

Instead of setContentView try using addContentView. This will add the view on top of the existing views, instead of replacing them.

- Kim

Re: Tutorial

March 9, 2012 - 3:19am #4

I was trying to create a simple TextView on my screen when a trackable appear but I couldn't. I've add this code to onResume method (with the appropriate handle call) but it didn't appear.


ImageTargetsRenderer.mainActivityHandler = new Handler() {

public void handleMessage(Message msg) {
Context context = getApplicationContext();

RelativeLayout r1 = (RelativeLayout) new RelativeLayout(context);
TextView texto = (TextView) new TextView(context);

I think I need set which is the content view is but when I put the setContentView before that code, when the app detect the trackable the screen change to a black screen with my text. How I can do this behind the camera screen?

Thanks. Cesar

Re: Tutorial

March 8, 2012 - 4:38am #3

In fact I dont want to add any 3D Model to the sceen, I want just add some TextViews or something else from de Android UI.

Thanks for your reply.

Re: Tutorial

March 7, 2012 - 3:53pm #2

There isn't a tutorial, the samples stand on their own. I suggest starting with the renderFrame method in ImageTargets.cpp. That is responsible for handling the currently visible targets and rendering 3D content on top of them.

If you aren't familiar with C++ and OpenGL, I might suggest looking into Unity and our Unity extension. It provides a simpler starting point for beginners. It just depends on what you want to do though. Unity is great for 3D rendering, but if you want to leverage the Android UI it might be best to go native.

- Kim

Log in or register to post comments