Drawing sprites alpha blended

Started by
1 comment, last by Kackurot 18 years, 8 months ago
Ok question, Does anyone know how to draw a sprite in direct3d alpha blended? I already got it to show up and colorkeyed but I want to alpha blend only the sprite. I tried to do it with using vertex alpha,but it made the colorkey part show up blended with the sprite. So, can anyone help with my problem?
[file:///C:/My%20Documents/kack.gif]
Advertisement
Hi there Kackurot, How are you doing?
How are you doing?

[The Problem]
Drawing alpha blended sprites in Direct3D?

[The Solution]
You have to specify the D3DXSPRITE_ALPHABLEND flag when you prepare a device for drawing sprites.

example:
sprite.Begin(D3DXSPRITE_ALPHABLEND);sprite.Draw(...);sprite.End();


I hope this helps.
Im not using d3dx..... Not using d3dxsprite interface, using two tris.
[file:///C:/My%20Documents/kack.gif]

This topic is closed to new replies.

Advertisement