- Sort Posts
- 7 replies
- Last post
Drawing text instead of 3D models
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
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
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
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
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
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 !