Jump to content
  • Advertisement
Sign in to follow this  
Riktovitch

Pixelated Texture, Anisotropic Filtering?

This topic is 1619 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I noticed that Minecraft has an option to enable anisotropic filtering. I was wondering, what settings would I need to put into a D3D11_SAMPLER_DESC to achieve this without blurring the textures? I'm using pixelated textures so I'd like AF to not blur them. The only way I've been able to fix this is to upscale the textures, but that seems... wrong.

samplerdesc.Filter = D3D11_FILTER_ANISOTROPIC;
samplerdesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
samplerdesc.MaxAnisotropy = 16;
samplerdesc.ComparisonFunc = D3D11_COMPARISON_ALWAYS;
samplerdesc.MaxLOD = D3D11_FLOAT32_MAX;

Thanks smile.png

Share this post


Link to post
Share on other sites
Advertisement

Have you tried it to see what your results are? There is not secrete to AF, it is on or off. And it is a sampling method, if anything it is less blurry.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!