Jump to content
  • Advertisement

Archived

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

Steve132

Blending AND fonts?

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

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
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).

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

  • 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!