PDA

View Full Version : Writing text on a Geometric Figure



queries
11-02-2004, 10:38 PM
Hi,

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

Thanx in Advance,

Queries

mikael_aronsson
11-02-2004, 11:54 PM
Hi !

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

Mikael

queries
11-04-2004, 08:32 PM
Hi.....

Thanks....

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.

regards,
Queries

CrazyButcher
11-05-2004, 12:23 AM
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