Results 1 to 3 of 3

Thread: Fonts???

  1. #1


    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)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    milano, italy

    Re: Fonts???

    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.


  3. #3
    Junior Member Newbie
    Join Date
    Jan 2004

    Re: Fonts???


    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.


Similar Threads

  1. bitmap fonts vs texture fonts
    By ehsan2004 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-31-2005, 03:24 AM
  2. Fonts
    By Sektor in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-02-2003, 03:22 PM
  3. fonts
    By incognito in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-06-2002, 01:03 AM
  4. Fonts: HW vs. SW
    By chennes in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-22-2001, 12:25 PM
  5. Fonts
    By BrSchnitz in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 09-22-2000, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean