"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Drawing text instead of 3D models

Hi, 

I am facing this problem. 

 

I would like to draw some text lines, in order to give specific information to the user. The idea is that when the App recgnize the trackable, it should show the specific text instead of a 3D model. 

 

can you help me with that?

DavidBeard

Thu, 07/12/2012 - 16:01

if the text is consistent, you could render it as an image which you'd map to a plane and present in the same way as a 3D model. I can give you some code for this approach.

If the text changes, I would recommend handling this as a UI View rather than within the OpenGL context.

frantxesco

Fri, 07/13/2012 - 08:24

a further question...

 

If I go for a UI View text, so something directly managed at higher level by the Android/iOS app, how can I retrieve information about the trackable position in the scene? 

 

frantxesco

Mon, 07/16/2012 - 13:40

No further help?

The problem I'm facing is that every example I can find on the web is related on openGL use in Java, while vuforia is written in native libraries. How can I merge those things?

 

I kind of feel it is not difficult, but I cannot find a solution yet.

Hi frantxesco,

Just a thought while looking at your post.

It seems that you want to deliver a really nice user experience with fonts or you may choose to do something else.  

frantxesco

Tue, 07/17/2012 - 08:09

Hi NalinS, 

 

thanks for your comment. Unfortunately I cannot use Unity because of economic reasons :).

 

 I am trying to develop a simple application for a small project as a student, and I really have no possibility to go for Unity.

 

Hi !

I used this library : http://fractiousg.blogspot.fr/2012/04/rendering-text-in-opengl-on-android.html

With that you can render text with the font you want !