Jump to content
  • Advertisement

Archived

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

BeRSeRKeR[DGT]

TGA Alpha channel and D3D

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

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.

Share this post


Link to post
Share on other sites
Advertisement

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