|
|
I am a chinese,I'm sorry my english is bad.The question is I use DX version DX9.0c.)
LPD3DXSPRITE spr;
LPDIRECT3DTEXTURE9 tex;
D3DXCreateTextureFromFile(Device,"One.dds",&tex);
D3DCreateSprite(Device,&spr);
Device->BeginScene();
...
spr->Begin(D3DXSPRITE_ALPHABLEND);
spr->Draw(tex,NULL,NULL,NULL,0xFFFFFFFF);
spr->End();
...
Device->EndScene();
It would have a transparent effect,yes,I did see transparenty.But the alpha channel edge has a flash.My mean is the image flash on the edge of transparent
part.Why? I fuss .I want to make a crosshairs on the scene.Have a another idea?
help!!!
这是我在微软论坛上发的帖子 居然没人回来,其他的帖子几乎都回答了,美国人真不杂的!看国内的兄弟能不能回答!主要是一个精灵,2D图像透明的问题,在透明的边缘有闪烁,是怎么回事?这个代码只能在DX9.0c中运行!! |
|