- Home /
problem with small sprites/ missing pixels and flicker when moving
Hello,
I think this related to something called half pixel or texel or z-fighting but I couldn't find any solution on google, I have been searching for five hours.
I tried to change filter mode, max size and format of the texture but it didn't work. I use point filter and truecolor format with orthographic camera
this is the sprite when it is big :
and this is the sprite when it is small :
do you see the missing black lines when the sprite is small !! this also happens when I increase the size of the orthographic camera. and this also happens if the texture size was power of 2 like 32x64 or anything like that so that is not the solution.
and when I move the small sprite, the black lines keeps being visible then invisible.
did I missed something ? why is this happening ?
Answer by Jeff-Kesselman · May 25, 2014 at 10:34 PM
Your problem is much simpler then you think.
Your lines are too thin. When you down-size, it has to remove pixels. The single row and column those single width lines are on are simply too narrow and end up being removed.
Then "flicker" comes about because exactly which lines are removed depends on the sprite's position on screen.
Use thicker lines or, better yet, reduce that sprite to the actually size you are going to use in a paint package and replace any missing lines before you import it.