Advertisement

alpha blend sprites with D3D primitive

Started by December 07, 1999 07:42 AM
-1 comments, last by Zargoun 25 years, 2 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