PDA

View Full Version : scale wglUseFontBitmaps after creation ?



fetz
12-15-2003, 03:04 AM
Hi everyone,

Is it possible to scale the bitmap display lists created with wglUseFontBitmaps() *after* the have been created ? I know it's possible to scale them before creation, but creating them every time i need another size is painfully slow. Anyone a suggestion ??

Thanx,
fetz

ZbuffeR
12-15-2003, 03:15 AM
You probably have to glCopyTexSubImage your rendered text and map it to a quad, then you can enlarge and distord it as needed. (like "match begins in : 3,2,1,..." zooming text in Quake 3 Arena). It will be much faster.

fetz
12-15-2003, 04:24 AM
Isn't there a more straight-forward method ? Reading the framebuffer and mapping the data on a quad sounds reasonable for a single piece of text (What I suggest Quake does when it says, "match begins ..." -- sorry I'm no gamer http://www.opengl.org/discussion_boards/ubb/confused.gif ) [edit.... i knew i am not confident with those smilies...]
What I need to do is draw a coordinate system and label the axes (which results in at least 20 single pieces of text, scattered everywhere in 3D space). Additionally, the labels should "be billboarded", so currently I'm using glCallLists with bitmap fonts at a certain glRasterPos. If only I could make the labels that are nearer to the viewer look larger than the labels that are far away....

[This message has been edited by fetz (edited 12-15-2003).]

knackered
12-15-2003, 04:41 AM
Yeah I know, it's a bummer isn't it? If only openGL were a 3d API life would be so much easier...