Blending h8s me!!!
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
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.
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
Anyway thanks
GL_ONE, GL_DST_ALPHA? Weird. I generally just go ahead with GL_ONE, GL_ONE since my text is very bright.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement