render problem

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




Answer this question

render problem

  • DennisF

    Take a look at how sprite overlays are done in the 2D sprite sample in the October SDK.

  • render problem