Precise textures

Started by
1 comment, last by d07RiV 11 years ago

I'm using Direct3d(9) to render textures in my UI, but I'm getting a very bad precision when textures are scaled. No matter what min/mag filters I use, frame borders are moving back and forth by 1 pixel as I resize the window. This is strange, as the X coordinates do not change at all, yet the texture moves in X direction.

Is there a way to force D3D to render textures more precisely, perhaps I should use sprites instead? Although I wanted to avoid using DXSDK so I don't have D3DX available.

Advertisement

You might find http://msdn.microsoft.com/en-gb/library/windows/desktop/bb219690%28v=vs.85%29.aspx useful.

Oh, completely forgot about that, I've been through that on my old project. Thanks, I'll give it a try!

e: Yep, works perfectly now.

This topic is closed to new replies.

Advertisement