Writing text on a Geometric Figure


Please tell me how can we display text on any 3D Geometric Figure.How to proceed with it?

Thanx in Advance,


Hi !

Put the text on a texture and put that to the geometry.




I have mapped the Texture. This texture contanied the text which i wanted ti Display on my geometric figure.

Can u tell me now how to map only the text contained on texture .I dont want that the color of texture affecting the color of my geometric figure(e.g Cube).

I mean that if I want to Write CUBE on my 3D figure.I want that the color of cube shud remain whatever it was before writing the Text.


use a alpha channel in that text texture and apply it using glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE, GL_DECAL)

for your texture mode