• Advertisement
Sign in to follow this  

Nehe Lesson 43: Some characters not printing

This topic is 376 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

When I run Nehe lesson 43 as is using Test.ttf at 16 height a few characters won't print. The uppercase Y, the lowercase g,p, and y. And when I alter the height it gets different. Different characters are missing when I put in height of 48 instead. I add    glPixelStorei(GL_PACK_ALIGNMENT, 1); and glPixelStorei(GL_UNPACK_ALIGNMENT, 1); to the init code and no change. Anyone had this issue or have any idea what might be happeing? Adding glPixelStore and changing the height is the only way I altered the original tutorial source, btw

Share this post


Link to post
Share on other sites
Advertisement

You know that tutorial is very, very old right?  It still uses OpenGL 2.x.  There are far more modern examples out there.

https://learnopengl.com/#!In-Practice/Text-Rendering

But from the sounds of your post, you might be jumping in beyond your knowledge of programming and graphics.  Check out the link above, should serve you much better unless there is a reason you want to use tech that is almost 10 years old? (OpenGL 3.0 was released in 2008)

Share this post


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

  • Advertisement