Jump to content
  • Advertisement
Sign in to follow this  
lacky

lesson 13 - opengl text, antialiased

This topic is 3492 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi there, the tutorial from lesson 13 helped me much, finally i can use text in opengl very simple. but i don't know how you can get the text antialiased. in the tutorial, it looks very simple by putting the quality parameter to ANTIALIASED_QUALITY. but there is no AA :( even in the sample program without modifying anything, the text is non-AA.. what am i doing wrong, or have i forgotten something? it would be great if anyone could help me.. and that reminds me of a second question: is there a (simple) way to make the text outlined, surrounded with a border? i tried for myself a bit but got no good results.. any ideas? thanks, lacky

Share this post


Link to post
Share on other sites
Advertisement
To get antialliased text you need either to use one of the antialising modes, or use glEnable( GL_POLYGON_SMOOTH ); it only affects the alpha value so you have to use a blending mode.

for outlines, look at lesson 37, it might give you some clues on how to fake it.
but the correct way is of cause to to have a real text renderer like in lesson 43.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!