Log in or register to post comments

Customize Vuforia's Augmented reality sample code for user-Defined Target

July 18, 2013 - 10:08pm #1

I have gone through Vuforia's sample code for **user Defined Target** (ios). I really dont find any clues on modifying the sample code to render some text instead of rendering the 3D model(the teapot). Can anyone help me understand how to change the sample code to render a text?

Customize Vuforia's Augmented reality sample code for user-Defin

July 22, 2013 - 3:05am #7

If it works ok as described in the other threads, then it should be fine unless you see a problem.

 

N

Customize Vuforia's Augmented reality sample code for user-Defin

July 21, 2013 - 10:02pm #6

Thank you so much Nalin and Alessandro. I was able to render a UILabel instead of the Teapot. The method from which i called my code to render a UILabel is renderFrameQCAR. Please advise if this is the right place to  implement it or do u suggest some other way?

Customize Vuforia's Augmented reality sample code for user-Defin

July 19, 2013 - 3:27am #5

Renu,

when a match is found, the trackable results can be retrieved using the getNumTrackableResults() and getTrackableResult( i ), as you can see in the code; so, thats' your starting point.

You can use the article Nalin is point to, but in general, how to display a UILabel is just about Objective-C programming (nothing specific from the Vuforia SDK).

 

Customize Vuforia's Augmented reality sample code for user-Defin

July 19, 2013 - 3:25am #4

Customize Vuforia's Augmented reality sample code for user-Defin

July 19, 2013 - 3:17am #3

I need an UILabel to be displayed instead of a teapot. The match is found in the method "renderFrameQCAR" in class EAGLView.mm. But i guess the renderFrameQCAR method is exclusive for OpenGLES. I donot have any experience in OpenGLES. So can you tel me in which method exactly Should i put up my UILabel to be displayed when the match is found?

Customize Vuforia's Augmented reality sample code for user-Defin

July 19, 2013 - 2:37am #2

I really dont find any clues on modifying the sample code to render some text instead of rendering the 3D model(the teapot)

Not sure why you would expect to find this?

 

Vuforia deals with detection and tracking, while the augmentation is left up to you.  In the sample we show a teapot, but you can put what you want there.

Instead, this is more of an OpenGL ES issue of how to render text.  If you want to do this in 3D space and you have no experience of OpenGL ES then you have two options:

1 - develop or find some code that can help you do this, but be assured it is non trivial.

2 - save yourself a month's effort by switching to Unity.

 

Log in or register to post comments