Sign in to follow this  
spudmastaflash

Sprite Drawing Bug

Recommended Posts

Some of my sprites are appearing with small artifacts and I'm wondering if anyone has had this problem before or knows the reason. Screenshot: http://i175.photobucket.com/albums/w153/spudmastaflash/Bug1.jpg?t=1204662161 I havn't had this happen on my primary computer, but after running it on another machine this popped up. Any help is appreciated.

Share this post


Link to post
Share on other sites
Hopw are you drawing sprites? Are you using ID3DXSprite, or are you drawing sprites yourself as a triangle list / strip? If you're using lists / strips, are you offsetting your vertices by 0.5 pixels, as the docs recommend?

Share this post


Link to post
Share on other sites
I'm using ID3DXSprite, but I think the problem was the parameters I was passing to D3DXCreateTextureFromFileExA().

Converting back to D3DXCreateTextureFromFile() resolved it.

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