Results 1 to 2 of 2

Thread: Drawing facing front text

  1. #1
    Member Newbie
    Join Date
    Dec 2010
    Posts
    33

    Drawing facing front text

    Is there any way to draw text that is always facing the camera?
    I've looked a way to draw text, and it isn't working

    I'm using this:

    glRasterPos2f(X, Y);
    Temp := Text;
    glCallLists(TextSize, GL_UNSIGNED_BYTE, Temp);

    is there any way to draw text, using only openGL?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: Drawing facing front text

    For bitmapped fonts, I think you may use a basic texture mapping vertex/fragment shader which looks up the font image from a 2D texture. For drawing, you can use an orthographic projection and put the geometry textured with the bitmap texture anywhere you like.

    On a side note, a similar thread has already been answered. You may refer to it for details http://www.opengl.org/discussion_boa...;Number=279788

    Regards,
    Mobeen
    Regards,
    Mobeen

Similar Threads

  1. Drawing many user facing objects
    By jas511 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-23-2011, 11:25 AM
  2. Drawing in Front buffer deosn't work
    By mehdi in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-19-2003, 05:51 PM
  3. ActiveX altering OpenGL's front facing polygon mode
    By cin311 in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-17-2003, 07:21 AM
  4. Determining front-facing vertex order
    By jefftkd in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-26-2002, 09:03 AM
  5. Front to back drawing...
    By Anonymous Coward in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 01-05-2001, 03:59 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