Skip to main content
GameDev.net gamedev.net
🔒 Locked

[glut] stroke character missing pixels

Started by eelke_folmer Apr 2, 2007 at 3:46 PM 0 replies 950+ views
Original Post
eelke_folmer
eelke_folmer
mabye a N00b question but i've searched the Faq & previous posts & the web but couldn't find an answer to this question i am having some trouble generating stroke text.

    glLineWidth(width);
    glColor3fv(colors[color]);
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    glEnable(GL_BLEND);
    glEnable(GL_LINE_SMOOTH);
    glEnable(GL_POINT_SMOOTH);				
    for (p = text; *p; p++) glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN, *p);
The text apears to miss pixels here and there which only gets worse when you increase the line width. See I've experimented with Line& point smoothing but nothing seems to help it get better. I'm doing some scaling when before I draw the font. Any suggestions? or is this the smoothest you can get stroke fonts? Hmmm i've checked the on blender example but after increasing the linewidth the same thing shows up. ...might be mac only? ...but i doubt it. [Edited by - eelke_folmer on April 3, 2007 12:05:13 AM]
Game Engineering ResearcherSee www.helpyouplay.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.