Advertisement

Blending h8s me!!!

Started by December 19, 2001 04:07 PM
6 comments, last by BeyondDeath 23 years, 2 months ago
Im trying to figure out the proper blend function to blend tga textured fonts over my scene without the black background of the font texture. Ive been able todo it, but it makes the text unreadable... Thanks
try lesson 20 on masking
Advertisement
If you''ve got the alpha channel set up properly in the texture, then you should be able to use glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

Even better, buy the OpenGL Programming Guide.
quote:
Original post by didilabu2
try lesson 20 on masking

In general, masking is technique to avoid in most real time code. Of course, there''s sometimes exceptions, but doing text output isn''t one of them.

[Resist Windows XP''s Invasive Production Activation Technology!]
Yay... that wasnt it... but I figured it out... (lucky guess basically) I needed glBlendFunc (GL_ONE, GL_DST_ALPHA);
Anyway thanks
GL_ONE, GL_DST_ALPHA? Weird. I generally just go ahead with GL_ONE, GL_ONE since my text is very bright.
Advertisement
Note : doing an alpha test instead of blending is much faster.
Actually gl_one gl_one works ... better actaully Thanks ;-)

This topic is closed to new replies.

Advertisement