View Full Version : 2D font in 3D space
01-02-2001, 09:48 AM
I would like to know if anyone has a way of drawing scalable, bitmap fonts in a 3D scenegraph. I am currently using wglUseFontBitmaps, but for some reason I cannot modify the Z value in any rotations or translations. My goal is to create a string of variable length and content that can be placed any where in a 3D environment, while facing the camera much like a billboard. I can get it to work with fontOutlines and partially with rasterPos, but fontOutlines absorbs polygons much too quickyly, and the rasterPos never seems to scale with distance. If anyone has any ideas or suggestions please let me know. Thanks.
use a polygon with a font texture on it.
u can draw it in your scene either billboarded or using 2d different matrices. one 3d and one 2d
01-03-2001, 09:57 AM
look at nehe.gamedev.net in the tutorials select for various font implementations. To locate the font in 3d you need to use the glTranslate function
01-03-2001, 11:05 PM
The GLTT (http://gltt.sourceforge.net) library gives you a lot of true type font functionality. Not only bitmapped fonts, but also anti-aliased fonts as 3D polygonized fonts, from true type fonts.
Hope this helps,
Daniel Palomo van Es.
01-04-2001, 11:50 AM
IU've a example who display a rotating cube with a FPS counter.
If you want the source code, send me a mail at : email@example.com
The comments are in french.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.