Jump to content
  • Advertisement
Sign in to follow this  
FancyZero

UV Problem of 2D Sprite

This topic is 4866 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'm developing a game that use two triangle(squard) to draw a 2d sprite. and have UV animation,so the UV alwayse a part of a big picture, I add the 0.5 pixel to the uv,and I set D3DSAMP_MAGFILTER to LINEAR ,so when the sprite is not scaled it's look fine,but when I draw a scaled sprite,it not draw the correct image,it will draw one pixel more at right and bottom,so the sprite looks like have a "border". and this will not happen when the D3DSAMP_MAGFILTER = POINTER that's all :( thanx for helping me

Share this post


Link to post
Share on other sites
Advertisement
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!