TGA Alpha channel and D3D
Hi all.
As I say some days ago, I''m porting a OpenGL font class to D3D. Now that I solved the orthographic projection question, I have a texturing problem. I use for the font class the BigChars.TGA char set from q3a. If you see this image, it contains only the alpha channel but is 32 bits data..ok. I have the quad (2 triangle strip) where the texture must be set. The color of the quad is the color of the character. But how can I configure the D3D stages to blend this TGA alpha channel on to the quad?...I don''t know I you understand me (my english is very horrible)...the alpha channel black part mast be transparent and the white part must be blended on to the quad with the quad color. Do you understand me?? ;-(....ah!!, the texture coordinates are set correctly.
Thanks a lot.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement