Jump to content
  • Advertisement
Sign in to follow this  
HD86

Spaces/lines between textures with anisotropic filtering

This topic is 393 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

Hello,

I am drawing polygons that have different textures with DirectX9. If I leave the default texture filtering (D3DTEXF_POINT), I get pixelated textures. If I change the filtering to D3DTEXF_ANISOTROPIC, I get spaces or lines between the textures.

EZ62I.jpg

 

How can I get rid of the lines between the textures when I use anisotropic filtering? I tried setting D3DSAMP_MAXANISOTROPY to the maximum value on my device but that did not seem to do anything.

Before using DirectX9 I was using the Viewport3D of the .NET Framework, which is built on DirectX9. I had the same problem but I managed to solve it by using RenderOptions.SetBitmapScalingMode(Viewport3D, BitmapScalingMode.Fant). This command gave me textures that were non-pixelated and also without spaces between them. I wonder how I could do the same in DirectX9.

Share this post


Link to post
Share on other sites
Advertisement

I can't delete posts. I can't edit posts. Is this forum supposed to be this way?

Share this post


Link to post
Share on other sites

Since your solution for this problem can be useful to anybody encountering the same issue, it is a good thing that you can't delete your post ;)

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!