View Full Version : Fonts???
Is there any way that I can blit bitmaps onto the screen, while using the perspective project mode, or does anybody know of any sites that have tutorials of how to load a TrueType font and display it? (while in perspective project mode)
as a rule of thumb, don't blit anything!
put textures on a quad instead.
blitting wit glCopyPixels() is very slow, where texturing is much faster.
this way your text will behave just like another opengl object, underlying to glTranslate(), glRotate() and the other matrix functions.
to render text with perspective on, just set the modelview matrix to the identity, then draw textured quads with some ascii on them.
01-20-2004, 05:58 PM
I'm having the same issues as you it sounds. The first part I can answer for you the second (about the true type fonts) is a loss in my opinion.
So, in order to draw 2D graphics on top of a 3D view, think of it like layers in photo shop, render the scene with:
gluPerspective(FOV, aspect, nearClip, farClip);
then switch to:
gluOrtho2D(left, right, top, bottom);
Render3DView(); and Render2D(); are just theoretical functions supplied by you but I think you understand. Don't forget to glEnable all the blending and stuff like that.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.