Log in or register to post comments

Drawing text instead of 3D models

July 12, 2012 - 8:26am #1

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?

Drawing text instead of 3D models

March 25, 2016 - 7:14am #8

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 !

Drawing text instead of 3D models

July 17, 2012 - 1:09am #7

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.

 

I will now try to understand (just concentrating on Android) how to get those Sprite Text working together with the Vuforia SDK (if possible).  I will let you know ;)

Drawing text instead of 3D models

July 16, 2012 - 9:06am #6

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.  

The moment you start to want to be able to do that much more than the standard samples, the more expertise you will need in OpenGL ES, plus as you pointed out you need to have a strategy if you want to deliver across platforms on iOS and Android.

The alternative is to consider the Unity based solution which will bypass these problems, provide the portability you seek and it will help you to deliver a nicer user experience much more quickly.  This is exactly the reason for offering a Unity based solution.

HTH

N

Drawing text instead of 3D models

July 16, 2012 - 6:40am #5

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.

Drawing text instead of 3D models

July 13, 2012 - 1:24am #4

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? 

 

Like, how the java code can be informed about the positive detection of a marker, and what about its position?

Drawing text instead of 3D models

July 13, 2012 - 1:21am #3

Hi, thanks for the reply.

I actually would like a 3D text, so to have a nicer experience with the AR app. And also, I would also consider potential portability. The text should also be somehow dynamic, first because I could need many trackables, and preparing such a great number of "text picture" could be very painful, and second because I would like the information i want to show t change in time.

 

In an other Desktop application I was able to find this function "printw" (http://mycodelog.com/2010/03/23/printw/) that let me to print strings exactly like a printf. But this solutions seems not to be working with OpenGL ES.

 

I would go through the link you suggested me. but if you guys have any further ideas, let me know. :)

Drawing text instead of 3D models

July 12, 2012 - 9:01am #2

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.

If you do need to use OpenGL, here are some solutions - http://stackoverflow.com/questions/1339136/draw-text-in-opengl-es-android

Log in or register to post comments