Advertisement Jump to content
Sign in to follow this  
FancyZero

UV Problem of 2D Sprite

This topic is 4927 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!