Advertisement

Fonts for Dummies :-))

Started by August 20, 2001 04:52 PM
3 comments, last by Frank Henry 23 years, 6 months ago
hi again. next prob: :-)) i want to make a display (like quake, with hp, armor ect.) problem is that even with the lesson 17 code i''m not getting any results (besides that the three texture-font-tutorials do everything differently!) has anyone had similar exp.? in my create func i''m loading the texture and creating the displaylist in one step. is this o.k.? any help would be greatly appreciated. working code would be great also. thanks
You don''t really want to use outline fonts generated from Win32 -slow, unportable, ...

Bitmapped fonts aren''t as easy, but they are what you are looking for in this case. Use the great tool "Bitmap Font Builder" from LMNOpc to create your bitmap, then the NeHe tut will load them. Alpha blending and an orthographic projection will achieve your desired HUD effect.

Hope that helps...

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
Advertisement
yeah, what i meant. the other are uuugly!!!
i''ll have to check out alpha blending.
havent used it yet. got a example?
btw: the nehe/D''Agata (lessons 17 + 21)
the texture positioning was totally of, i.e. upside down.
is it just my code?
Well, I''ll ask you if you did the completely-stupid-but-completely-possible-thing. (I know I''ve done so many stupid things over the years ) Did you remember that the y-axis (er... v-axis?) for texture coords goes down?

~ Dragonus
uhhh...????
i edited the code to work correctly (???)
it works so i''m happy! ;-)
do you use any 3rd party lib''s?
in a old post i read u use one from flipcode, correct?
is it any good?
i just got the ''game programming gems'' book and they have
a font-lib included. heard of it?

This topic is closed to new replies.

Advertisement