Results 1 to 5 of 5

Thread: text-printing in OrthoMode

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    12

    text-printing in OrthoMode

    Hello.
    Im writting an OS-like GUI that uses
    ortho-mode.
    I have no problem with blending, textures
    etc. but i cant figure out how to print
    text on the screen using system-fonts.
    NeHe´s 13th tutoriol shows you how to
    print text using system-fonts,
    but only in perspective-mode .
    Does anyone know how to print text on
    the screen in Ortho-mode?
    I could write a text-drawning function
    using textures and bitmaps, but that
    would take alot of time and theres
    probally a much easier way.

    Any help is greatly appriciated!!

    PS: Sorry for my english, Im a swed DS

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    196

    Re: text-printing in OrthoMode

    You only have to draw the text last and before drawing text in ortho mode disable depth testing.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    12

    Re: text-printing in OrthoMode

    Okey ill try that.
    Thanks.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    234

    Re: text-printing in OrthoMode

    Well, you shouldn't have any problems with drawing a text if you know how to do it in perspective-mode. There isn't any difference while drawing in ortographic mode. Like glYaro suggest your text is probably hidden behind some other objects. Try using glOrtho2D - using this projection when drawing guarantee that your primitives will lie on the same plane.

    Hope it helped

    Orzech

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Sweden
    Posts
    12

    Re: text-printing in OrthoMode

    Okey now it works.
    I dont know what i did wrong in my previous
    code, but it works now so it doesnt
    really matter .

    Thank you for help!

    [This message has been edited by Whisky Bob (edited 06-24-2003).]

Similar Threads

  1. Printing text
    By DmanPwns in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-12-2009, 08:30 AM
  2. Printing Text
    By Pyroclastic Flow in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-18-2009, 10:09 AM
  3. Replies: 0
    Last Post: 11-15-2002, 02:58 AM
  4. Printing text
    By imported_Ramesh in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-22-2000, 01:46 PM
  5. printing text
    By nfect in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-08-2000, 05:57 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