Sign in to follow this  
Headkaze

Edges of quads showing texture edge

Recommended Posts

Headkaze    607
I have quads with textures that look fine when using texture clamping. But when I use texture wrapping the edges of the quads show part of the wrapped texture. This looks like a line of pixels around the edges of the quad. Is there a simple way to use wrapping or mirroring without showing part of the repeated texture? I'm not too fond of the idea of changing the tu and tv coords to 0.01f etc. But is that the only way?

Share this post


Link to post
Share on other sites
Lifepower    136
Can you show a screenshot of the problem, just to be sure? From what you are saying, it looks like linear interpolation issue. You may want trying to specify D3DTEXF_POINT in SetSamplerState for both D3DSAMP_MAGFILTER and D3DSAMP_MINFILTER.

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