PDA

View Full Version : help with text display



fitt0
09-27-2009, 10:39 PM
hi,
i'm new in OpenGL.

i try to display text in front of a 3D model using a bmp image that contain characters.
the thing is the text don't appear.
i read few threads here and try it too. but it's not helping me.
can somebody tell me, how should i display the text?

thank you.

dletozeun
09-28-2009, 03:26 AM
The idea is to draw a textured screen aligned quad using orthographic projection.

You have to check carrefully first if the projection you are using is correct, depth test is disabled, culling mode is correct (try with culling disabled first) and 2d texturing is setup correctly.

look at the opengl wiki first, you will find many tips about opengl basics like 2d texturing:

http://www.opengl.org/wiki/Main_Page