Sprites whithout antialiasing

Hi,

I'm drawing sprites, but directx is rendering them with antialiasing. Does anybody knows how can I remove this antialiasing?

I'm using ID3DSprite->Draw() method.
I'm already using MIP_NOFILTER in the D3DXCreateTextureEx().
I've already set the D3DRS_MULTISAMPLEANTIALIAS render state to false.

Thanks

[325 byte] By [Torpedo] at [2007-12-22]
# 1
I finally find the answer for this problem!

To disable that antialiasing while drawing sprites, you have to set the sampler state:

d3dSprite->Begin(0);
d3dDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXTF_POINT);
d3dDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXTF_POINT);

Draw sprites
d3dSprite->End();

Now my game is starting to look great!

Torpedo at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...