Skip to main content
gamedev.net
🔒 Locked

Sprite Drawing Bug

Started by spudmastaflash 1 reply 650+ views
Original Post
spudmastaflash
spudmastaflash
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.
Evil Steve
Evil Steve
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?
spudmastaflash
spudmastaflash
I'm using ID3DXSprite, but I think the problem was the parameters I was passing to D3DXCreateTextureFromFileExA().

Converting back to D3DXCreateTextureFromFile() resolved it.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.