Blending AND fonts?

Started by
1 comment, last by Steve132 21 years, 3 months ago
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
Advertisement
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).
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
- JonoRule #1: If you build it, they will come -- to hack and cheat.

This topic is closed to new replies.

Advertisement