Jump to content
  • Advertisement


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


Transparency with TLVertex

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

im having a problem getting the green channel of my 24 bit bitmap becoming transparent. I''m almost positive it has to do with the way my settexturestagestate is set up. I''m using D3DXCreateTextureFromFileEx() and the green just turns black, any ideas? heres a little of my code: D3DXCreateTextureFromFileEx( g_pd3ddevice, "interior.bmp", 0, 0, 0, 0, D3DFMT_A1R5G5B5, D3DPOOL_MANAGED, D3DX_FILTER_TRIANGLE, D3DX_FILTER_TRIANGLE, D3DCOLOR_ARGB(255, 0, 255, 0), NULL, NULL, &g_ptexhud); and: g_pd3ddevice->SetTexture(0, g_ptexhud); g_pd3ddevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); g_pd3ddevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_SELECTARG1); g_pd3ddevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); g_pd3ddevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1); Thanks in advance

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!