• Advertisement

Archived

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

alpha blend sprites with D3D primitive

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

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........

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement