Sign in to follow this  
Yours3!f

how to disable mip-mapping?

Recommended Posts

Yours3!f    1532
Hi,

I've enabled anisotropic filtering in my app, and for some reason mip-mapping got enabled as well, despite I didn't enable it.

I enabled anisotropic filtering like this:
[code]
dx_dev->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_ANISOTROPIC);
dx_dev->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_ANISOTROPIC);

D3DCAPS9 caps;
dx_dev->GetDeviceCaps(&caps);
dx_dev->SetSamplerState(0, D3DSAMP_MAXANISOTROPY, caps.MaxAnisotropy);
[/code]

How can I explicitly order the API to disable mip-mapping?

Best regards,
Yours3!f

Share this post


Link to post
Share on other sites
Yours3!f    1532
[quote name='rdragon1' timestamp='1311064832' post='4837261']
Using anisotropic filtering implies you want mip mapping. Anisotropic filtering requires mip maps to work
[/quote]

Ok, you're right...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this