View Full Version : 3DText
ReneMiner
10-11-2012, 15:03
Colorful :)
But I expected something else. I'm really interested in 3d-Text. At the time I try to figure some function to create meshes from any font (or is there one already?) Problem is: I get the borders right but not the cover, so I can just make hollow text meshes..
EDIT: I was busy searching the web for many hours and found some Ne-He Lesson and also something else. It appears that OpenGL provides some real 3d-Text but I have no idea how to access that Build3dFont-Function - is it possible to create Meshes from TTF in thinBasic?
(http://www.opengl.org/discussion_boards/showthread.php/134118-Text-3D)
Petr Schreiber
11-11-2012, 10:28
Hi Peter,
proggie worked nicely, but it crashed when exiting.
Rene,
When you look at the code listing of Build3Dfonts, you will see it uses
wglUseFontOutlines
This function is accesible via:
#include "thinbasic_wgl.inc"
Petr
ReneMiner
11-11-2012, 13:43
Ahhh, ok. Does not build meshes from the letters then, just some outlined font that I can easily create myself using TBGL-Fontcreator + some painting-program. So this was not what I'm looking for. I know, D3D can build font-meshes from just one call. Isn't there a similar function for GL?
@Peter: none of your examples crashed on my xp
Thanks Petr,
A crash is an old theme. It seem that I have another Windows7.
Let me carry out an experiment. Just a crazy idea, but can be good.
Try this please.
Have you got a crash ?
Petr Schreiber
11-11-2012, 16:41
Hi Peter,
snake runs around the window as it should, but once I hit ESC key, it GPFs again.
Rene - I think the functions for 3D text are usually not used on other place than ... tutorials. In real world computer games, if there is need for 3D letters (like name of hotel on building), it is created offline in editor as model.
But wglUseFontOutlines actually does create 3D object, but you can't access its vertex data - it creates set of display lists, one for each letter.
Petr