Jump to content
  • Advertisement

Archived

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

zip_256

Colors blending...

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

Whenever I am rendering my screen in OpenGL and I use a color for text or something similar it bleeds over onto all of my bitmap textures on the screen and sort of discolors everything. What would be the cause of this? I am using glColor3ub to define my colors and I am loading the textures without any alpha values. Any suggestions would be helpful. Thanks..

Share this post


Link to post
Share on other sites
Advertisement
Once you set the color it stays that way until you set it to something else. Set it back to white after you''re done rendering colored primitives.

Share this post


Link to post
Share on other sites
The colors only bleed whenever I enable the textures. The last color in the texture is red and it makes all of my white text and other light objects the same color if they don''t have a texture on them. Thanks!

Share this post


Link to post
Share on other sites
Likewise with colors staying on until you disable them, textures stay enabled (with the last texture coordinate) until you disable them. So, disable the textures when you''re done rendering textured primitives.

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!