View Full Version : Drawing facing front text

Manel Goucha
12-28-2010, 11:21 PM
Is there any way to draw text that is always facing the camera?
I've looked a way to draw text, and it isn't working

I'm using this:

glRasterPos2f(X, Y);
Temp := Text;
glCallLists(TextSize, GL_UNSIGNED_BYTE, Temp);

is there any way to draw text, using only openGL?

12-28-2010, 11:45 PM
For bitmapped fonts, I think you may use a basic texture mapping vertex/fragment shader which looks up the font image from a 2D texture. For drawing, you can use an orthographic projection and put the geometry textured with the bitmap texture anywhere you like.

On a side note, a similar thread has already been answered. You may refer to it for details http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=279788