🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

alpha blend sprites with D3D primitive

Started by
-1 comments, last by Zargoun 24 years, 6 months ago
Well, i'm working on alpha blend sprites with D3D primitive. So I init the D3D device, load a texture, etc.. and build a square on which I map this texture.
Then I init the rendering subsystem to enable alpha blending with : device3D->SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE,TRUE);
device3D->SetRenderState(D3DRENDERSTATE_DESTBLEND, D3DBLEND_INVSRCCOLOR);

This works fine with almost every kind of video cards except on matrox G100, where I get a black square.
So I've checked the caps of the driver on this card and on all I get is :
Hardware Triangle primitive caps :
- Blend factor is (As, As, As, As).

So please how do I use this blend mode ???

thanks........

This topic is closed to new replies.

Advertisement