PDA

View Full Version : bevel in text



HaPpyWorld
08-07-2002, 10:49 PM
can i use bevel in Text?

I want use TTF fonts.

i can draw my text in 3D.
but can't draw beveled text.

if u know how to... would you tell me the way?

are there no way to use bevel in text?

henryj
08-08-2002, 12:43 PM
1. First you need to extract the geometry from the character. Go here ...
http://homepages.paradise.net.nz/henryj/code/index.html#FTGL

to see how to do this.

2. Next get the characters outline at a slightly larger font size. Offset this outline back along the Z axis.

3. Create a tri strip linking the vertices of the outline (2) with the corresponding vertices in the character geometry(1).

4. draw

Actually if you look at how extruded fonts are done in the above library, you can do the same thing but just scale the front and back meshes different amounts.