Archived

This topic is now archived and is closed to further replies.

Steve132

Blending AND fonts?

Recommended Posts

Hey there, does anyone out there know about why, when using the lesson 13 stuff for fonts in combination with the stuff on blending and moving 2d textures in 3d space, any font writing i do is colored differently depending on the colors of the texture i use. in fact, if the texture is white, the fonts dissapear entirely. I am using blending mode as described in moving bitmaps tutorial, but i have a suspicion that that is where the problem lies. however, since i know nothing about how blending works, could someone possibly help me out? Thanks a lot! --Steve

Share this post


Link to post
Share on other sites
Just before drawing the font, try disabling blending and textures. After you''ve finished with writing whatever, just re-enable texturing and blending (Either using glPushAttrib/glPopAttrib or calls to glDisable/glEnable).

Share this post


Link to post
Share on other sites
make shore that the vertex color is 1,1,1,1 befor you draw or else the color of the last vertex you colored will be used.
Thats that happened when i added lesson 8 to 10.


- Jono AH

Share this post


Link to post
Share on other sites