Jump to content

  • Log In with Google      Sign In   
  • Create Account

alpha blend sprites with D3D primitive


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Zargoun   Members   -  Reputation: 122

Like
Likes
Like

Posted 07 December 1999 - 01:42 AM

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



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS